Skip to content

Commit c3e02df

Browse files
committed
added standard arithmetic, logical, bitwise, relational, list and sequence operators
1 parent a1ad4b4 commit c3e02df

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

grammars/scala.cson

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,37 @@
458458
'captures':
459459
'2':
460460
'name': 'keyword.operator.scala'
461-
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(<-|←|->|→|=>|⇒|\\?|\\:+|@|\\|)+([^!#%&*+\-/:<=>?@\\\\^|~])'
461+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(\\+\\+|:::|\\+:|::|:\\+|<-|←|->|→|=>|⇒|\\?|@)+([^!#%&*+\-/:<=>?@\\\\^|~])'
462462
}
463463
{
464464
'captures':
465465
'2':
466466
'name': 'keyword.operator.assignment.scala'
467-
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(=)([^!#%&*+\-/:<=>?@\\\\^|~])'
467+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(=|\\+=|-=|\\*=|\\/=|%=|<<=|>>=|&=|\\^=|\\|=)([^!#%&*+\-/:<=>?@\\\\^|~])'
468+
}
469+
{
470+
'captures':
471+
'2':
472+
'name': 'keyword.operator.arithmetic.scala'
473+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(\\+|-|\\*|\\/|%)+([^!#%&*+\-/:<=>?@\\\\^|~])'
474+
}
475+
{
476+
'captures':
477+
'2':
478+
'name': 'keyword.operator.logical.scala'
479+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])?(&&|\\|\\||!)+([^!#%&*+\-/:<=>?@\\\\^|~])'
480+
}
481+
{
482+
'captures':
483+
'2':
484+
'name': 'keyword.operator.bitwise.scala'
485+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])?(&|\\||\\^|~|<<|>>|>>>)+([^!#%&*+\-/:<=>?@\\\\^|~])'
486+
}
487+
{
488+
'captures':
489+
'2':
490+
'name': 'keyword.operator.relational.scala'
491+
'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(==|!=|<|>|<=|>=)+([^!#%&*+\-/:<=>?@\\\\^|~])'
468492
}
469493
]
470494
'meta-brackets':

0 commit comments

Comments
 (0)