Skip to content

Commit 2928469

Browse files
committed
Fix characters being absorbed with keyword.operator and keword.operator.assignment
1 parent a1ad4b4 commit 2928469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/scala.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@
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': '([^!#%&*+\-/:<=>?@\\\\^|~_])(=)(?=[^!#%&*+\-/:<=>?@\\\\^|~])'
468468
}
469469
]
470470
'meta-brackets':

0 commit comments

Comments
 (0)