function folding question
Posted: 01 Oct 2010 02:26
Sorry for a newbie question. Maybe it is answered somewhere else, but I was not able to find it.
I have to edit the post processor files for our CNC machines. The so called gpp files are a simple scripting language. Functions are defined like this:
@function1
.
. something happens here
.
endp
@anotherfunction
....
endp
So, they always start with '@....' and end with 'endp'.
At the moment I use SuperEdi to edit them. There I use the following regular expression to highlight the function line: ^[@]{[:_A-Za-z0-9]+}
( = @ at start of line, followed by some alphanumerics)
That highlights the line, but it does not support code folding.
I tried to use @ as block start, region start, etc., because I would love to use the code folding function for those areas.
Could someone show me how to set up the syntax file for this? I'd really like to drop SuperEdit, RJ TextED looks much more capable :D
Cheers,
Rainer
I have to edit the post processor files for our CNC machines. The so called gpp files are a simple scripting language. Functions are defined like this:
@function1
.
. something happens here
.
endp
@anotherfunction
....
endp
So, they always start with '@....' and end with 'endp'.
At the moment I use SuperEdi to edit them. There I use the following regular expression to highlight the function line: ^[@]{[:_A-Za-z0-9]+}
( = @ at start of line, followed by some alphanumerics)
That highlights the line, but it does not support code folding.
I tried to use @ as block start, region start, etc., because I would love to use the code folding function for those areas.
Could someone show me how to set up the syntax file for this? I'd really like to drop SuperEdit, RJ TextED looks much more capable :D
Cheers,
Rainer