diff options
-rw-r--r-- | man.sublime-syntax | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/man.sublime-syntax b/man.sublime-syntax index afd6665..4f1dadd 100644 --- a/man.sublime-syntax +++ b/man.sublime-syntax @@ -15,7 +15,6 @@ variables: font_size: (SM|SB)\b font_alt: (BI|IB|RI|IR|BR|RB)\b font_style: ([BRI]) - end_format: (?={{escape}}|{{cc}}) contexts: main: @@ -25,7 +24,7 @@ contexts: - match: (?={{escape}}{{font_style}}) push: font_styles with_prototype: - - match: '{{end_format}}' + - match: '(?={{escape}}|{{cc}})' meta_content_scope: markup.regular.man pop: true @@ -48,7 +47,7 @@ contexts: scope: keyword.control.man push: font_styles with_prototype: - - match: '{{end_format}}' + - match: '(?={{escape}}|$)' pop: true pop: true |