-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for syntax-based folding (#191)
Regions, comment blocks, and heredocs can now be folded. Additionally, region names are now searchable using ctrl-r.
- Loading branch information
1 parent
7b9767e
commit a0ceb7f
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>scope</key> | ||
<string>source.powershell</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>foldScopes</key> | ||
<array> | ||
<dict> | ||
<key>begin</key> | ||
<string>meta.fold.begin</string> | ||
<key>end</key> | ||
<string>meta.fold.end</string> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>punctuation.definition.comment.block.begin</string> | ||
<key>end</key> | ||
<string>punctuation.definition.comment.block.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>string.quoted.double.heredoc punctuation.definition.string.begin</string> | ||
<key>end</key> | ||
<string>string.quoted.double.heredoc punctuation.definition.string.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>string.quoted.single.heredoc punctuation.definition.string.begin</string> | ||
<key>end</key> | ||
<string>string.quoted.single.heredoc punctuation.definition.string.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>punctuation.section.group.begin</string> | ||
<key>end</key> | ||
<string>punctuation.section.group.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>punctuation.section.braces.begin</string> | ||
<key>end</key> | ||
<string>punctuation.section.braces.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters