File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ feedback you can use [GitHub issues][issues].
77
88* Respect ` set_unsaved_view_name ` setting (#704 )
99* Fix ` markup.raw ` auto-pairing key bindings (#707 )
10+ * Fix ST freezing due to SETEXT headings with trailing spaces
1011
1112## New Features
1213
Original file line number Diff line number Diff line change @@ -918,12 +918,24 @@ contexts:
918918 - include : setext-heading-content
919919
920920 setext-heading-content :
921+ - include : setext-hard-line-breaks
921922 - include : emphasis
922923 - include : images
923924 - include : literals
924925 - include : links
925926 - include : markups
926927
928+ setext-hard-line-breaks :
929+ # This context consumes what 'hard-line-breaks' does for normal
930+ # paragraphs to avoid deadlock of ST's syntax engine.
931+ #
932+ # as workaround for
933+ # https://github.com/sublimehq/sublime_text/issues/5415
934+ # causing
935+ # https://github.com/sublimehq/Packages/issues/3494
936+ - match : ' [ ]{2,}$'
937+ - match : ' \\\n'
938+
927939 paragraph :
928940 # https://spec.commonmark.org/0.30/#paragraphs
929941 - meta_scope : meta.paragraph.markdown
You can’t perform that action at this time.
0 commit comments