From 39a43c7528aff05e0b75180ded2562b1ee6acdd1 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 29 Jun 2021 11:45:21 +0000 Subject: fix formatting for font style macros --- man.sublime-syntax | 5 ++--- 1 file 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 -- cgit v1.2.3-18-g5258