Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix problem with var|val declarations with tuples.

For example  `var (a, b) = ...`
  • Loading branch information...
commit 5109447c13823597174af778dc2d00a7ce33d517 1 parent f799d9a
@sellmerfud sellmerfud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Syntaxes/Scala.tmLanguage
View
4 Syntaxes/Scala.tmLanguage
@@ -381,7 +381,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]*(?:_[^\s])(?=[(\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
</dict>
<dict>
<key>captures</key>
@@ -442,7 +442,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]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)|(?=\())</string>
</dict>
<dict>
<key>captures</key>

0 comments on commit 5109447

Please sign in to comment.
Something went wrong with that request. Please try again.