all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding a colon as a word boundary for syntax highlighting
@ 2008-02-18  4:27 Tim Johnson
  2008-02-18 12:58 ` Johan Bockgård
  2008-02-18 16:08 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Tim Johnson @ 2008-02-18  4:27 UTC (permalink / raw)
  To: help-gnu-emacs

Hi:
I'm using the following regex subexpression:
"\\<\\("
As the left-hand word boundary for syntax highlighting in
a lisp-style programming language.

"\\(" adds the opening parenthesis as a word boundary.

I would like to add the colon (':') as an additional word
boundary character.
The subexpressions:
"\\<\\(:" and "\\<\\(\\:" don't seem to work.
In addition I have the following entry:
(?: . "w") to the syntax table. 
Could someone advise me on how to make this work correctly.

On a related note, I believe that there is an emacs add-on that
allows the user to test elisp regexes, but for the life of me,
I can't remember where to find it.
TIA
Tim


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

end of thread, other threads:[~2008-02-20 20:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18  4:27 Adding a colon as a word boundary for syntax highlighting Tim Johnson
2008-02-18 12:58 ` Johan Bockgård
2008-02-18 16:00   ` Tim Johnson
2008-02-18 16:08 ` Stefan Monnier
2008-02-18 19:23   ` Tim Johnson
2008-02-20 19:41     ` Stefan Monnier
2008-02-20 20:37       ` 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.