From 9776c8800fa5bcc5d98c2af791ca5679ea7c4300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 27 May 2021 12:40:58 +0200 Subject: [PATCH] Highlight Lk/Mt/Sy/Xr arguments *after* the space --- mandoc.sublime-syntax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mandoc.sublime-syntax b/mandoc.sublime-syntax index 140b307..4ce10f8 100644 --- a/mandoc.sublime-syntax +++ b/mandoc.sublime-syntax @@ -380,7 +380,7 @@ contexts: - include: callable_macro - match: $\n? pop: true - - match: ^[.\'](?:Lk|Mt)(?=\s) + - match: ^[.\'](?:Lk|Mt)\s scope: keyword.mandoc push: - meta_scope: markup.underline.link.mandoc @@ -402,7 +402,7 @@ contexts: scope: entity.other.attribute-name.mandoc - match: $\n? pop: true - - match: ^[.\']Sx(?=\s) + - match: ^[.\']Sx\s scope: keyword.mandoc push: - meta_scope: markup.underline.link.mandoc @@ -410,14 +410,14 @@ contexts: - include: callable_macro - match: $\n? pop: true - - match: ^[.\']Sy(?=\s) + - match: ^[.\']Sy\s scope: keyword.mandoc push: - meta_scope: markup.bold.mandoc - include: callable_macro - match: $\n? pop: true - - match: ^[.\']Xr(?=\s) + - match: ^[.\']Xr\s scope: keyword.mandoc push: - meta_scope: markup.underline.link.mandoc