Skip to content

Commit fea72cc

Browse files
authored
Merge pull request #6 from nicolasstucki/master
Fix expression and type quotes
2 parents 439fc82 + 5b8e76e commit fea72cc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

language-configuration.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"brackets": [
1010
["{", "}"],
1111
["[", "]"],
12-
["(", ")"]
12+
["(", ")"],
13+
["'{", "}"],
14+
["'[", "]"],
15+
["'(", ")"]
1316
],
1417
// symbols that are auto closed when typing
1518
"autoClosingPairs": [

syntaxes/Scala.tmLanguage

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
<key>include</key>
153153
<string>#scala-symbol</string>
154154
</dict>
155+
<dict>
156+
<key>include</key>
157+
<string>#scala-quoted</string>
158+
</dict>
155159
<dict>
156160
<key>include</key>
157161
<string>#special-identifier</string>
@@ -843,6 +847,13 @@
843847
<key>name</key>
844848
<string>constant.other.symbol.scala</string>
845849
</dict>
850+
<key>scala-quoted</key>
851+
<dict>
852+
<key>match</key>
853+
<string>'\{'|'\('|'\['|'\{|'\(|'\[</string>
854+
<key>name</key>
855+
<string>constant.other.quoted.scala</string>
856+
</dict>
846857
<key>script-header</key>
847858
<dict>
848859
<key>captures</key>

0 commit comments

Comments
 (0)