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

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

Regex Problem => "overlapping words"


From: Tim Johnson
Subject: Regex Problem => "overlapping words"
Date: Fri, 2 Dec 2005 10:35:27 -0900
User-agent: Mutt/1.4.2.1i

I have a regex problem: the form containing the regex should appear
as one line between two lines of asterisks:
******************************************************************************************************************************
'("\\([^][ \t\r\n{}()]+\\):[ 
]*\\(d\\(ef\\|oes\\)\\|func\\(tion\\)\\|has\\|sub?\\)\\>" (1 prepend) (2 
font-lock-keyword-face))
******************************************************************************************************************************

The intent is that the following 'words': def, does, func, function,
has, sub

Should be highlighted as per 'font-lock-keyword-face.

'function' is *not* highlighted, so I have not handled
the "overlapping" words properly. 

All others are displayed as intended

I hope that someone can show me what I have done wrong.
thanks
tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com




reply via email to

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