fix: narrow the case where angle brackets are seen as comparison operators
This commit is contained in:
parent
eae54b5f72
commit
efdcfcfb61
1 changed files with 19 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue