fix: narrow the case where angle brackets are seen as comparison operators
},
{
"comment": "less than, greater than (special case)",
- "match": "(^|\\s)(?<!=)([<>])\\s",
+ "match": "(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([<>])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))",
"captures": {
+ "1": {
+ "name": "punctuation.brackets.round.rust"
+ },
"2": {
+ "name": "punctuation.brackets.square.rust"
+ },
+ "3": {
+ "name": "punctuation.brackets.curly.rust"
+ },
+ "4": {
"name": "keyword.operator.comparison.rust"
+ },
+ "5": {
+ "name": "punctuation.brackets.round.rust"
+ },
+ "6": {
+ "name": "punctuation.brackets.square.rust"
+ },
+ "7": {
+ "name": "punctuation.brackets.curly.rust"
}
}
},
