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}