Skip to content

Commit bd220c1

Browse files
committed
Remove special ↩ handling
In favor of built-in snippet from the Source bundle, also support empty braces.
1 parent 8e22a1c commit bd220c1

File tree

3 files changed

+40
-33
lines changed

3 files changed

+40
-33
lines changed

Snippets/Special: Return Inside parentheses.tmSnippet

-18
This file was deleted.

Syntaxes/Scala.tmLanguage

+40-11
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
</dict>
148148
<dict>
149149
<key>include</key>
150-
<string>#empty-parentheses</string>
150+
<string>#empty-blocks</string>
151151
</dict>
152152
<dict>
153153
<key>include</key>
@@ -459,20 +459,49 @@
459459
</dict>
460460
</array>
461461
</dict>
462-
<key>empty-parentheses</key>
462+
<key>empty-blocks</key>
463463
<dict>
464-
<key>captures</key>
465-
<dict>
466-
<key>1</key>
464+
<key>patterns</key>
465+
<array>
467466
<dict>
467+
<key>captures</key>
468+
<dict>
469+
<key>1</key>
470+
<dict>
471+
<key>name</key>
472+
<string>punctuation.definition.parentheses.begin.scala</string>
473+
</dict>
474+
<key>2</key>
475+
<dict>
476+
<key>name</key>
477+
<string>punctuation.definition.parentheses.end.scala</string>
478+
</dict>
479+
</dict>
480+
<key>match</key>
481+
<string>(\()(\))</string>
468482
<key>name</key>
469-
<string>meta.bracket.scala</string>
483+
<string>meta.parentheses.scala</string>
470484
</dict>
471-
</dict>
472-
<key>match</key>
473-
<string>(\(\))</string>
474-
<key>name</key>
475-
<string>meta.parentheses.scala</string>
485+
<dict>
486+
<key>captures</key>
487+
<dict>
488+
<key>1</key>
489+
<dict>
490+
<key>name</key>
491+
<string>punctuation.definition.parentheses.begin.scala</string>
492+
</dict>
493+
<key>2</key>
494+
<dict>
495+
<key>name</key>
496+
<string>punctuation.definition.parentheses.end.scala</string>
497+
</dict>
498+
</dict>
499+
<key>match</key>
500+
<string>(\{)(\})</string>
501+
<key>name</key>
502+
<string>meta.braces.scala</string>
503+
</dict>
504+
</array>
476505
</dict>
477506
<key>imports</key>
478507
<dict>

info.plist

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
<string>Mads Hartmann</string>
99
<key>mainMenu</key>
1010
<dict>
11-
<key>excludedItems</key>
12-
<array>
13-
<string>E364F26E-C766-4068-BAAF-C010FA1F5F92</string>
14-
</array>
1511
<key>items</key>
1612
<array>
1713
<string>DDFBBCF9-D333-4077-8D4F-EF6F2CA62220</string>

0 commit comments

Comments
 (0)