Page 2 of 2

Posted: 08.05.2014 08:06
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.

Posted: 08.05.2014 15:14
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/