Home Download Buy Blog Forum Support

Syntax definition problem (bug maybe)

Syntax definition problem (bug maybe)

Postby aya on Fri Dec 07, 2012 2:03 pm


Can someone give me some info about syntax definition logic.
I'm have next problem

Next file is to highlight
Code: Select all

and next rules under patterns
Code: Select all
    "name": "entity.name.tag.z",
    "match": "\\b(nav|a)\\b"
    "name": "support.type.property-name.z",
    "match": "\\s*[A-z_-]+"

Assumed so both 'nav' anv 'a' be highlighted by first rule, but for some reason 'nav' goes fine but 'a' get highlight from 2nd rule,
As far as we non have 2nd rule both highlighted by first rule as assumed.
So it strange, does once rule #1 works it non get override by 2nd?
Cos region excluded as written in docs. Or there is some non normal rules order / precedence?
Posts: 11
Joined: Sun Mar 06, 2011 1:01 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 18 guests