In the user defined language there is an option, prefix mode, that allows ALL WORDS that have a prefix of a key word to be considered a key word (and receive the syntax highlighting)
Ex. if "add" is a key word and prefix mode is enabled, then "addi" is also considered a key word.
I was wondering if a similar mode could be done for postfix.
I want to make labels, which have the form:
"Label:", be recognized as key words (so that they all have the same syntax).
Also, not sure if possible, but can you make prefix / post-fix be on a keyword basis.
Ex. if both "add" and "sub" are keywords, allow "add" to be in prefix/post-fix mode (or both) and keep "sub" as regular (neither prefix or post-fix). Like I said, this might not be feasible, but if you could implement the first request, that would be awesome.
Thanks for any help you can provide, and message me with any questions, if you have any.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This would be a very nice feature for me too. I use the User Defined Languages ALL the time and I could greatly benefit from this with my Primary (Business Rules!) programming language and several other small user defined languages I use regularly.
-john
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm voting for this postfix mode! It becomes very handy in Java/Groovy where you could add an "Exception" keyword and like "ClassNotFoundException" will be colored, too!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the user defined language there is an option, prefix mode, that allows ALL WORDS that have a prefix of a key word to be considered a key word (and receive the syntax highlighting)
Ex. if "add" is a key word and prefix mode is enabled, then "addi" is also considered a key word.
I was wondering if a similar mode could be done for postfix.
I want to make labels, which have the form:
"Label:", be recognized as key words (so that they all have the same syntax).
Also, not sure if possible, but can you make prefix / post-fix be on a keyword basis.
Ex. if both "add" and "sub" are keywords, allow "add" to be in prefix/post-fix mode (or both) and keep "sub" as regular (neither prefix or post-fix). Like I said, this might not be feasible, but if you could implement the first request, that would be awesome.
Thanks for any help you can provide, and message me with any questions, if you have any.
Greate idea
Have anone an idea how can i define a class function as a keyword, for example: (winamp maki script)
globalGroup.findObject("")
where findObjact is a keyword?
This would be a very nice feature for me too. I use the User Defined Languages ALL the time and I could greatly benefit from this with my Primary (Business Rules!) programming language and several other small user defined languages I use regularly.
-john
I'm voting for this postfix mode! It becomes very handy in Java/Groovy where you could add an "Exception" keyword and like "ClassNotFoundException" will be colored, too!