Re: [Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-06-03 Thread Lorenzo Bettini
Hi Peter due to the syntax of procedure and functions, I doubt that a regular expression that recognizes them can be written: you'd need real parsing, which source-highlight does not provide... do you want this lang definition be included in source-highlight? Could you please provide a test f

Re: [Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-05-27 Thread Peter Willis
Hello, There is a 'Wikipedia' page for IDL located at: http://en.wikipedia.org/wiki/IDL_(programming_language) There is a complete IDL programming manual located: http://idlastro.gsfc.nasa.gov/idl_html_help/Programming_in_IDL.html Normally procedures an functions are called on one line unless

Re: [Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-05-27 Thread Lorenzo Bettini
Hi do procedure (and functions) are always called on a line? I mean, is the procedure name always at the beginning of a line (possibly with some spaces before)? Are commas used also in other contexts besides function and procedure invocation? cheers Lorenzo P.S. some examples of pr

Re: [Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-05-24 Thread Peter Willis
On 5/23/2011 7:10 AM, Lorenzo Bettini wrote: (?=\() checks whether after the name there's a ( but does not consume it can the syntax of your procedure definition be identified with a regular expression? Can you make some examples of procedures? cheers Lorenzo Hello, In 'IDL' procedures a

Re: [Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-05-23 Thread Lorenzo Bettini
On 05/20/2011 04:57 PM, Peter Willis wrote: Hello, Hi Peter 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

[Help-source-highlight] Regular Expression Explanation for 'function.lang'

2011-05-20 Thread Peter Willis
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 ca