"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Greg Klanderman writes:
> It would be really nice if we had regex syntax for beginning/end of
> *identifier*, analogous to \< and \> so we could easily fix all the
> font lock keywords which brokenly fontify for example a reserved word
> when it appears within an identifier as a separate word.
That's a whole different question, though, so I've split the thread.
Emacs has the following (don't ask me about my opinion concerning its
choice of syntax), would that help?
`\_<'
matches the empty string, but only at the beginning of a symbol.
A symbol is a sequence of one or more symbol-constituent
characters. A symbol-constituent character is a character whose
syntax is either `w' or `_'. `\_<' matches at the beginning of the
buffer only if a symbol-constituent character follows.
`\_>'
matches the empty string, but only at the end of a symbol. `\_>'
matches at the end of the buffer only if the contents end with a
symbol-constituent character.
--
David Kastrup
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta