From ab39d4c81f823dab3861135970d97201aa1a34f2 Mon Sep 17 00:00:00 2001 From: cynhr Date: Mon, 3 Jan 2022 22:56:21 +0100 Subject: [PATCH] indent named multiline notes Recognize named multiline notes in indentation regex. These notes look something like this: note as N1 some description end note Fixes: #154 --- plantuml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index e40ba0d..25aedfe 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -573,7 +573,7 @@ Uses prefix (as PREFIX) to choose where to display it: Plantuml elements like skinparam, rectangle, sprite, package, etc. The opening { has to be the last visible character in the line (whitespace might follow).") - (defvar plantuml-indent-regexp-note-start "^\s*\\(floating\s+\\)?[hr]?note\s+\\(right\\|left\\|top\\|bottom\\|over\\)[^:]*?$" "simplyfied regex; note syntax is especially inconsistent across diagrams") + (defvar plantuml-indent-regexp-note-start "^\s*\\(floating\s+\\)?[hr]?note\s+\\(right\\|left\\|top\\|bottom\\|over\\|as\\)[^:]*?$" "simplyfied regex; note syntax is especially inconsistent across diagrams") (defvar plantuml-indent-regexp-group-start "^\s*\\(alt\\|else\\|opt\\|loop\\|par\\|break\\|critical\\|group\\)\\(?:\s+.+\\|$\\)" "Indentation regex for plantuml group elements that are defined for sequence diagrams. Two variants for groups: keyword is either followed by whitespace and some text