[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Word Boundary problem with regex
From: |
Tim Johnson |
Subject: |
Word Boundary problem with regex |
Date: |
Sun, 5 Jun 2005 14:24:42 -0800 |
User-agent: |
Mutt/1.4.2.1i |
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
- Word Boundary problem with regex,
Tim Johnson <=