all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regex Problem => "overlapping words"
@ 2005-12-02 19:35 Tim Johnson
  2005-12-02 20:56 ` Tim Johnson
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Johnson @ 2005-12-02 19:35 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-04 17:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.17680.1133552219.20277.help-gnu-emacs@gnu.org>
2005-12-03  3:04 ` Regex Problem => "overlapping words" Stefan Monnier
2005-12-03 20:24   ` Tim Johnson
     [not found]   ` <mailman.17779.1133641535.20277.help-gnu-emacs@gnu.org>
2005-12-03 20:50     ` Johan Bockgård
2005-12-03 21:52     ` Stefan Monnier
2005-12-03 23:09       ` Tim Johnson
     [not found]       ` <mailman.17796.1133651456.20277.help-gnu-emacs@gnu.org>
2005-12-04 15:50         ` Stefan Monnier
2005-12-04 17:13           ` Tim Johnson
2005-12-02 19:35 Tim Johnson
2005-12-02 20:56 ` Tim Johnson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.