Skip to content

Commit 76acf11

Browse files
committed
Use a more specific scope for heredoc folding
This prevents strings that are not heredocs from being foldable.
1 parent 9ecdc80 commit 76acf11

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Fold.tmPreferences

+10-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@
2323
</dict>
2424
<dict>
2525
<key>begin</key>
26-
<string>punctuation.definition.string.begin</string>
26+
<string>string.quoted.double.heredoc punctuation.definition.string.begin</string>
2727
<key>end</key>
28-
<string>punctuation.definition.string.end</string>
28+
<string>string.quoted.double.heredoc punctuation.definition.string.end</string>
29+
<key>excludeTrailingNewlines</key>
30+
<false/>
31+
</dict>
32+
<dict>
33+
<key>begin</key>
34+
<string>string.quoted.single.heredoc punctuation.definition.string.begin</string>
35+
<key>end</key>
36+
<string>string.quoted.single.heredoc punctuation.definition.string.end</string>
2937
<key>excludeTrailingNewlines</key>
3038
<false/>
3139
</dict>

0 commit comments

Comments
 (0)