Skip to content

Commit

Permalink
Fix special id's more specific
Browse files Browse the repository at this point in the history
Use a more specific matching pattern for special id after def/var/val
  • Loading branch information
sellmerfud committed May 21, 2012
1 parent 8d64bcc commit 5cbe1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Syntaxes/Scala.tmLanguage
Expand Up @@ -385,7 +385,7 @@
<key>match</key>
<string>(?x)
\b(def)\s+
(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[(\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\t .,;()\[\]{}'"`\w])(?=[(\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
</dict>
<dict>
<key>captures</key>
Expand Down Expand Up @@ -446,7 +446,7 @@
</dict>
</dict>
<key>match</key>
<string>\b(?:(val)|(var))\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)|(?=\())</string>
<string>\b(?:(val)|(var))\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\t .,;()\[\]{}'"`\w])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)|(?=\())</string>
</dict>
<dict>
<key>captures</key>
Expand Down

0 comments on commit 5cbe1d0

Please sign in to comment.