From 848a1cd6f84e1f907bc96616a55805547b4224ff Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:24:21 +0100 Subject: [PATCH] mod: syntax highlighting: (add `/ note` management) To comply with: - https://forum.plantuml.net/354/sequence-diagram-possibly-multiple-hnotes-vertical-level?show=1156#a1156 --- syntaxes/plantuml.yaml-tmLanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/plantuml.yaml-tmLanguage b/syntaxes/plantuml.yaml-tmLanguage index fc024b5..03b3813 100644 --- a/syntaxes/plantuml.yaml-tmLanguage +++ b/syntaxes/plantuml.yaml-tmLanguage @@ -146,7 +146,7 @@ repository: - name: meta.comment.multiple.note.source.wsd match: .+? - comment: inline note of over - match: (?i)^\s*([rh]?note)(?:\s+(right|left|top|bottom))?\s+(?:(?:(of|over)\s*(?:[^\s\w\d]([\w\s]+)[^\s\w\d]|(?:(".+?"|\w+)(?:,\s*(".+?"|\w+))*)))|(on\s+link))\s*(#\w+)?\s*:\s*(.+)$ + match: (?i)^\/?\s*([rh]?note)(?:\s+(right|left|top|bottom))?\s+(?:(?:(of|over)\s*(?:[^\s\w\d]([\w\s]+)[^\s\w\d]|(?:(".+?"|\w+)(?:,\s*(".+?"|\w+))*)))|(on\s+link))\s*(#\w+)?\s*:\s*(.+)$ captures: '1': {name: keyword.other.noteof.source.wsd} '2': {name: constant.numeric.noteof.source.wsd} @@ -158,7 +158,7 @@ repository: '8': {name: constant.numeric.noteof.source.wsd} '9': {name: meta.comment.noteof.source.wsd} - comment: multi-line note of over - begin: (?i)^\s*([rh]?note)(?:\s+(right|left|top|bottom))?\s+(?:(?:(of|over)\s*(?:[^\s\w\d]([\w\s]+)[^\s\w\d]|(?:(".+?"|\w+)(?:,\s*(".+?"|\w+))*)))|(on\s+link))\s*(#\w+)?\s*$ + begin: (?i)^\/?\s*([rh]?note)(?:\s+(right|left|top|bottom))?\s+(?:(?:(of|over)\s*(?:[^\s\w\d]([\w\s]+)[^\s\w\d]|(?:(".+?"|\w+)(?:,\s*(".+?"|\w+))*)))|(on\s+link))\s*(#\w+)?\s*$ beginCaptures: '1': {name: keyword.other.noteof.source.wsd} '2': {name: constant.numeric.noteof.source.wsd}