Skip to content

Commit 3d1f7b4

Browse files
author
Winston Liu
authored
Merge pull request #61 from mahmoudkassem/master
added standard arithmetic, logical, bitwise, relational, list and seq…
2 parents a1ad4b4 + 7803fa8 commit 3d1f7b4

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

grammars/scala.cson

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
'name': 'support.function.type-of.scala'
448448
}
449449
{
450-
'match': '\\b(else|if|do|while|for|yield|match|case)\\b'
450+
'match': '\\b(else|if|do|while|for|yield|match|case|until|to)\\b'
451451
'name': 'keyword.control.flow.scala'
452452
}
453453
{
@@ -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)