Mercurial > emacs
view src/temacs.opt @ 55690:daeeb5ef2d95
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.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 19 May 2004 16:37:35 +0000 |
parents | 18e524802887 |
children |
line wrap: on
line source
cluster=emacs,,,- DISPNEW.OBJ,- SCROLL.OBJ,- XDISP.OBJ,- WINDOW.OBJ,- TERM.OBJ,- CM.OBJ,- EMACS.OBJ,- KEYBOARD.OBJ,- MACROS.OBJ,- KEYMAP.OBJ,- SYSDEP.OBJ,- BUFFER.OBJ,- FILELOCK.OBJ,- INSDEL.OBJ,- MARKER.OBJ,- MINIBUF.OBJ,- FILEIO.OBJ,- DIRED.OBJ,- FILEMODE.OBJ,- CMDS.OBJ,- CASEFIDDLE.OBJ,- INDENT.OBJ,- SEARCH.OBJ,- REGEX.OBJ,- UNDO.OBJ,- ALLOC.OBJ,- DATA.OBJ,- DOC.OBJ,- EDITFNS.OBJ,- CALLINT.OBJ,- EVAL.OBJ,- FNS.OBJ,- PRINT.OBJ,- LREAD.OBJ,- ABBREV.OBJ,- SYNTAX.OBJ,- MOCKLISP.OBJ,- BYTECODE.OBJ,- PROCESS.OBJ,- CALLPROC.OBJ,- VMSFNS.OBJ,- VMSPROC.OBJ,- DOPRNT.OBJ,- vmsmap.obj,- termcap.obj,- tparam.obj,- lastfile.obj,- alloca.obj,- malloc.obj collect=non_saved_data,- stdin,- stdout,- stderr,- errno,- vaxc$errno,- sys_errlist,- sys_nerr,- environ sys$library:vaxcrtl/library