From 0f8c90c9bb7f6eb15b661fbdbbeed31493af9f39 Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:17:02 +0100 Subject: [PATCH] mod: syntax highlighting: (fix `note across`) That fixes #571 --- syntaxes/plantuml.yaml-tmLanguage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntaxes/plantuml.yaml-tmLanguage b/syntaxes/plantuml.yaml-tmLanguage index 465c8fe..fc024b5 100644 --- a/syntaxes/plantuml.yaml-tmLanguage +++ b/syntaxes/plantuml.yaml-tmLanguage @@ -131,15 +131,15 @@ repository: '1': {name: keyword.other.note.source.wsd} '2': {name: constant.numeric.caption.source.wsd} - comment: inline note - match: (?i)^\s*(note\s(left|right))\s*:\s*(.+)\s*$ + match: (?i)^\s*([rh]?note\s*(left|right|across))\s*:\s*(.+)\s*$ captures: '1': {name: keyword.other.note.source.wsd} '3': {name: meta.comment.note.source.wsd} - comment: multiple note - begin: (?i)^\s*(note\s(left|right))\s*$ + begin: (?i)^\s*([rh]?note\s*(left|right|across))\s*$ beginCaptures: '1': {name: keyword.other.note.source.wsd} - end: (?i)^\s*(end\s*note) + end: (?i)^\s*(end\s*[rh]?note) endCaptures: '1': {name: keyword.other.note.source.wsd} patterns: