Skip to content

Commit

Permalink
Fix problem with var|val declarations with tuples.
Browse files Browse the repository at this point in the history
For example  `var (a, b) = ...`
  • Loading branch information
sellmerfud committed May 19, 2012
1 parent f799d9a commit 5109447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Syntaxes/Scala.tmLanguage
Expand Up @@ -381,7 +381,7 @@
<key>match</key> <key>match</key>
<string>(?x) <string>(?x)
\b(def)\s+ \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]*(?:_[^\s])(?=[(\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
</dict> </dict>
<dict> <dict>
<key>captures</key> <key>captures</key>
Expand Down Expand Up @@ -442,7 +442,7 @@
</dict> </dict>
</dict> </dict>
<key>match</key> <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]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)|(?=\())</string>
</dict> </dict>
<dict> <dict>
<key>captures</key> <key>captures</key>
Expand Down

0 comments on commit 5109447

Please sign in to comment.