SYNTAX SCHEME PROBLEM WITH 2 SYNTAXBLOCKS

Hello I'm using this(https://pastebin.com/eteLgqN3) syntax scheme to colourize the text editor, the problem is that the syntaxblock with indexes 2 and 3 are not working. How can I resolve this?
Regards,
Sergio Aguilar
Hi Sergio,
You should move SyntaxBlock idents to the last position of syntax blocks like this, otherwise it will take priority of other rules:
http://www.alternetsoft.com/forum/test.xml
regards,
Andrew
Ok I see, I tried to set the index only using the property 'index' and that's not enough.
Anyway, if the position of the sintaxblock matters, why the blocks 'dates', 'zip' and 'interpolation' are working good when the syntaxblock 'strings' is first defined?
Thanks for your support,
regards,
Sergio
Hi Sergio,
these blocks work good because regular expression used to define strings do not overlap with ones for identifiers, so these blocks can be in any order.
Lexical analysis tries to apply the very first syntax rule that matches text being parsed, so if you have few rules matching the text, the precedence is important.
regards,
Andrew