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 249
249
{ ' include' : ' #pub' }
250
250
# Operators
251
251
{
252
- ' comment' : ' Operator'
253
- ' name' : ' keyword.operator.rust'
254
- ' match' : ' (\\ +|-|/|\\ *|=|<=|>=|\\ ^|&|\\ ||!|%|::|\\ bas\\ b|<<|>>|>|<)'
252
+ ' comment' : ' Miscellaneous operator'
253
+ ' name' : ' keyword.operator.misc.rust'
254
+ ' match' : ' (=>|::|\\ bas\\ b)'
255
+ }
256
+ {
257
+ ' comment' : ' Comparison operator'
258
+ ' name' : ' keyword.operator.comparison.rust'
259
+ ' match' : ' (&&|\\ |\\ ||==|!=)'
260
+ }
261
+ {
262
+ ' comment' : ' Assignment operator'
263
+ ' name' : ' keyword.operator.assignment.rust'
264
+ ' match' : ' (\\ +=|-=|/=|\\ *=|%=|\\ ^=|&=|\\ |=|<<=|>>=|=)'
265
+ }
266
+ {
267
+ ' comment' : ' Arithmetic operator'
268
+ ' name' : ' keyword.operator.arithmetic.rust'
269
+ ' match' : ' (!|\\ +|-|/|\\ *|%|\\ ^|&|\\ ||<<|>>)'
270
+ }
271
+ {
272
+ ' comment' : ' Comparison operator (second group because of regex precedence)'
273
+ ' name' : ' keyword.operator.comparison.rust'
274
+ ' match' : ' (<=|>=|<|>)'
255
275
}
256
276
# Standard types and traits
257
277
{ ' include' : ' #core_types' }
You can’t perform that action at this time.
0 commit comments