Skip to content

Commit fec0023

Browse files
authored
Match scala symbols composed of valid punctuation
Scala symbols can either be composed of word characters or the following punctuation characters: `\/*&^%#@!~<>|=+-` Fixed the regex to allow for the punctuation case.
1 parent 559beec commit fec0023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/Scala.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
<key>scala-symbol</key>
793793
<dict>
794794
<key>match</key>
795-
<string>'\w+(?=[^'\w])</string>
795+
<string>('\w+(?=[^'\w])|'[\/*&^%#@!~<>|=+-]+(?=[^'\/*&^%#@!~<>|=+-]))</string>
796796
<key>name</key>
797797
<string>entity.name.type.symbol.scala</string>
798798
</dict>

0 commit comments

Comments
 (0)