]> git.eshelyaron.com Git - emacs.git/commit
Add support for new '\_<' and '\_>' regexp operators, matching the
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 16:38:34 +0000 (16:38 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 16:38:34 +0000 (16:38 +0000)
commit669fa600c6d72a2c343a195a0061c72a3ddb6169
tree4bb3b34dce3b880befcb49697e48b19df85f09d0
parent29f89fe7ea0a0942202b4d8f56d816e0f7720796
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.
src/ChangeLog
src/regex.c