all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Word Boundary problem with regex
@ 2005-06-05 22:24 Tim Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Johnson @ 2005-06-05 22:24 UTC (permalink / raw)


In case of word wrapping the text between (but not including) the lines
of asterisks should be on one line:

I am using the following expression
*******************************************************************************
\\([^][ \t\r\n{}()]+\\):[ ]*\\(d\\(ef\\|oes\\)\\|func\\(tion\\)\\|has\\|sub?\\)
*******************************************************************************

To colorize the following words: "def" "does" "func" "function" "has"
"sub" - which define subroutines.

When I type the following:  test: def[val][print val], "def" is
colorized properly. One would exect that adding a letter to "def" would
turn off the target color, but does not. This suggests to me that
I have not properly defined the word boundary in the expression above.

Can anyone tell me what I am doing wrong?

FYI: This is for the rebol programming language (www.rebol.com), it
     should be noted that in lispish fashion, a subroutine is an
     expression, not an immutable control structure.

thanks
tim

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

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

end of thread, other threads:[~2005-06-06 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3412.1118010266.25862.help-gnu-emacs@gnu.org>
2005-06-05 22:55 ` Word Boundary problem with regex Pascal Bourguignon
2005-06-06  8:37 ` Tim X
2005-06-06 16:56   ` Tim Johnson
2005-06-05 22:24 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.