fix: narrow the case where angle brackets are seen as comparison operators

This commit is contained in:
Dusty Pomerleau 2020-10-26 20:16:26 +11:00
parent eae54b5f72
commit efdcfcfb61

View File

@ -641,10 +641,28 @@
},
{
"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"
}
}
},