Hi. I put together a basic language definition for PowerBuilder 11, but am having trouble getting the Folder Open and Folder Close settings to work.
A subroutine in PowerBuilder might begin with the keywords "public subroutine" and end with "end subroutine". When I add these as the folder open and close keywords, it doesn't seem to work.
The example in the online help shows single keywords with no spaces. Is my problem because open and close folder is based on pairs of keywords? Is there a way to specify "public subroutine" and "end subroutine" as single folder open keywords?
Thanks for any help!
Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have another problom with a spaces and folder open/close. I want to create my language like Lisp, but when I set
Folder Open - "("
Folder close - ")"
It works only if before and after "(" or ")" exist space, tab or something like that.
Example 1:
( defrule statement
......
)
Example 2:
(defrule statement
.......
)
Example 1 - allright, Example 2 - Notepad highlights only ")" and does not highlights "(". But in Lisp it works in both exaples.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe the problem is because of the spaces. I'm not sure if there is a way to escape the spaces, or enclose the string.
Perhaps this should be reported as a feature request for a future version of NP++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I put together a basic language definition for PowerBuilder 11, but am having trouble getting the Folder Open and Folder Close settings to work.
A subroutine in PowerBuilder might begin with the keywords "public subroutine" and end with "end subroutine". When I add these as the folder open and close keywords, it doesn't seem to work.
The example in the online help shows single keywords with no spaces. Is my problem because open and close folder is based on pairs of keywords? Is there a way to specify "public subroutine" and "end subroutine" as single folder open keywords?
Thanks for any help!
Jeff
I have another problom with a spaces and folder open/close. I want to create my language like Lisp, but when I set
Folder Open - "("
Folder close - ")"
It works only if before and after "(" or ")" exist space, tab or something like that.
Example 1:
( defrule statement
......
)
Example 2:
(defrule statement
.......
)
Example 1 - allright, Example 2 - Notepad highlights only ")" and does not highlights "(". But in Lisp it works in both exaples.
I'm having the same problem with dual definitions, as in, if something is in within operator boundaries, keywords do not get added in.
I believe the problem is because of the spaces. I'm not sure if there is a way to escape the spaces, or enclose the string.
Perhaps this should be reported as a feature request for a future version of NP++.