help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a colon as a word boundary for syntax highlighting


From: Tim Johnson
Subject: Re: Adding a colon as a word boundary for syntax highlighting
Date: Mon, 18 Feb 2008 10:23:14 -0900
User-agent: KNode/0.10.5

Stefan Monnier wrote:

 
> No, it doesn't.  "\\(" is a regexp element that marks the beginning of
> a sub-regexp.  It needs a closing "\\)" before the regexp is valid.
> It does nothing to parenthesis characters.
> 
> Emacs doesn't know "word boundary characters".  All it knows is that
> some characters are word-constituents and others aren't.  And "\\<" is
> a regexp that matches an empty string on the condition that the char on
> the left is a non-word-constituent and the char on the right is
> a word-constituent.
 Thank you for explaining the logic of this. 

> : by default is not considered as a word-constituent.  I'm not sure what
> you mean by "adding a colon as a word boundary".
 Perhaps my thinking should be revised to mean 
  "eliminate ':' as a word constituent"
Regards
Tim
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]