Skip to content

Commit

Permalink
[Markdown] Fix syntax based folding of fenced code blocks (#3823)
Browse files Browse the repository at this point in the history
This commit adjusts fenced code block related patterns to scope EOL `meta.fold`,
to provide reliable single char tokens for syntax based folding and adjusts fold
rules accordingly.

Reported at SublimeText-Markdown/MarkdownEditing#733
  • Loading branch information
deathaxe authored Nov 1, 2023
1 parent 9c4f7d8 commit 20b93e7
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 98 deletions.
4 changes: 2 additions & 2 deletions Markdown/Fold.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</dict>
<dict>
<key>begin</key>
<string>meta.code-fence.definition.begin</string>
<string>meta.fold.code-fence.begin</string>
<key>end</key>
<string>meta.code-fence.definition.end</string>
<string>meta.fold.code-fence.end</string>
<key>excludeTrailingNewlines</key>
<true/>
</dict>
Expand Down
Loading

0 comments on commit 20b93e7

Please sign in to comment.