File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 252
252
{ ' include' : ' #ref_lifetime' }
253
253
# Operators
254
254
{
255
- ' comment' : ' Operator'
256
- ' name' : ' keyword.operator.rust'
257
- ' match' : ' (\\ +|-|/|\\ *|=|<=|>=|\\ ^|&|\\ ||!|%|::|\\ bas\\ b|<<|>>|>|<)'
255
+ ' comment' : ' Miscellaneous operator'
256
+ ' name' : ' keyword.operator.misc.rust'
257
+ ' match' : ' (=>|::|\\ bas\\ b)'
258
+ }
259
+ {
260
+ ' comment' : ' Comparison operator'
261
+ ' name' : ' keyword.operator.comparison.rust'
262
+ ' match' : ' (&&|\\ |\\ ||==|!=)'
263
+ }
264
+ {
265
+ ' comment' : ' Assignment operator'
266
+ ' name' : ' keyword.operator.assignment.rust'
267
+ ' match' : ' (\\ +=|-=|/=|\\ *=|%=|\\ ^=|&=|\\ |=|<<=|>>=|=)'
268
+ }
269
+ {
270
+ ' comment' : ' Arithmetic operator'
271
+ ' name' : ' keyword.operator.arithmetic.rust'
272
+ ' match' : ' (!|\\ +|-|/|\\ *|%|\\ ^|&|\\ ||<<|>>)'
273
+ }
274
+ {
275
+ ' comment' : ' Comparison operator (second group because of regex precedence)'
276
+ ' name' : ' keyword.operator.comparison.rust'
277
+ ' match' : ' (<=|>=|<|>)'
258
278
}
259
279
# Standard types and traits
260
280
{ ' include' : ' #core_types' }
You can’t perform that action at this time.
0 commit comments