fix: narrow the case where angle brackets are seen as comparison operators
This commit is contained in:
parent
eae54b5f72
commit
efdcfcfb61
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user