unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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
[parent not found: <mailman.3412.1118010266.25862.help-gnu-emacs@gnu.org>]

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 --
2005-06-05 22:24 Word Boundary problem with regex Tim Johnson
     [not found] <mailman.3412.1118010266.25862.help-gnu-emacs@gnu.org>
2005-06-05 22:55 ` Pascal Bourguignon
2005-06-06  8:37 ` Tim X
2005-06-06 16:56   ` Tim Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).