[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-source-highlight] Regular Expression Explanation for 'function.lan
From: |
Peter Willis |
Subject: |
[Help-source-highlight] Regular Expression Explanation for 'function.lang' |
Date: |
Fri, 20 May 2011 07:57:24 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
Hello,
I have made an IDL syntax highlight file:
rsiidl.lang
One of the included files is 'function.lang'.
This works fine for functions that return a value
since the call syntax for functions is:
VARIABLE = SOMEFUNC(variable , variable, ...)
I now want to define 'procedure.lang' where
the call syntax is:
SOMEPROC, variable, variable, ...
As you can see the call to a procedure in IDL does
not include parenthesis.
'function.lang' reads as follows:
vardef FUNCTION = '(?:[[:alpha:]]|_)[[:word:]]*[[:blank:]]*(?=\()'
function = $FUNCTION
What format (of regex ??) is being used here?
How might I change this to test just the 'procedure' case?
Thanks
Peter
- [Help-source-highlight] Regular Expression Explanation for 'function.lang',
Peter Willis <=