diff options
| author | Stefan Monnier | 2004-05-19 16:38:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-05-19 16:38:34 +0000 |
| commit | 669fa600c6d72a2c343a195a0061c72a3ddb6169 (patch) | |
| tree | 4bb3b34dce3b880befcb49697e48b19df85f09d0 /src/bytecode.c | |
| parent | 29f89fe7ea0a0942202b4d8f56d816e0f7720796 (diff) | |
| download | emacs-669fa600c6d72a2c343a195a0061c72a3ddb6169.tar.gz 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 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions