summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2004-05-19 16:38:34 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2004-05-19 16:38:34 +0000
commit669fa600c6d72a2c343a195a0061c72a3ddb6169 (patch)
tree4bb3b34dce3b880befcb49697e48b19df85f09d0 /lisp/emacs-lisp
parent29f89fe7ea0a0942202b4d8f56d816e0f7720796 (diff)
downloademacs-669fa600c6d72a2c343a195a0061c72a3ddb6169.tar.gz
emacs-669fa600c6d72a2c343a195a0061c72a3ddb6169.tar.bz2
emacs-669fa600c6d72a2c343a195a0061c72a3ddb6169.zip
Add support for new '\_<' and '\_>' regexp operators, matching the
beginning and ends of symbols. * regex.c (enum syntaxcode): Add Ssymbol. (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword. (re_opcode_t): New opcodes `symbeg' and `symend'. (print_partial_compiled_pattern): Print the new opcodes properly. (regex_compile): Parse the new operators. (analyse_first): Skip symbeg and symend (they match only the empty string). (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and \sw; `symbeg' is mutually exclusive with \S_ and \Sw. (re_match_2_internal): Match symbeg and symend.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions