Creating New Lexer for a relatively lesser used language

All questions regarding lexer highlighting schemes are discussed here...
checkid
Posts: 14
Joined: 05.03.2013 15:09

Post by checkid »

Hello,
are there any documentation about Conditions Tab (Index field) in Rules?
2014-05-08 11_29_42-Lexer properties.png
In the above URL what is the meaning of the index fields 0-4?

Problem description is below.
I have two rules.
  • One "Range Start" with condition to look for the word "function" and display that line in tree structure under functions list.
  • Two "Range Start" with condition to look for the word "long" and display that line in tree structure under variables list.
The end result is "do.something() is displayed in both Function & Variable list, because of the way the rule is written.
Having this situation should be common in several languages, i believe.
I am looking for a way to re-write the rule in such a way that, do.something() is picked up only in function list.

Hence looking for the documentation, if I can use the index in such a way to differentiate "function long" and "long".
function long do.something()
{
long variable
}
Thank you in advance.
Regards.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

No docu about "index", it (index) has NO meaning. To disable catching by 2nd rule, pls set this flag in 1st rule: http://shot.qip.ru/00oA19-6s6WVN9T6/
Locked