Skip to content

Commit

Permalink
match special identifiers in code
Browse files Browse the repository at this point in the history
  • Loading branch information
sellmerfud committed May 21, 2012
1 parent 0b8e02d commit 8d64bcc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Syntaxes/Scala.tmLanguage
Expand Up @@ -152,6 +152,10 @@
<key>include</key>
<string>#scala-symbol</string>
</dict>
<dict>
<key>include</key>
<string>#special-identifier</string>
</dict>
<dict>
<key>include</key>
<string>#char-literal</string>
Expand Down Expand Up @@ -769,6 +773,17 @@
<key>name</key>
<string>entity.name.symbol</string>
</dict>
<key>special-identifier</key>
<dict>
<key>comment</key>
<string>
Match special scala style identifiers that can end with and underscore and
a a not letter such as blank_?. This way the symbol will not be colored
differently.
</string>
<key>match</key>
<string>\b[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\t .,;()\[\]{}'"`\w])</string>
</dict>
<key>storage-modifiers</key>
<dict>
<key>patterns</key>
Expand Down

0 comments on commit 8d64bcc

Please sign in to comment.