indent notes anchored to field
Recognize named multiline notes in indentation regex. These notes look something like this: note top of Foo::bar some description end note This only supports a single "::". In case multiple levels should be supported, change the "?" to a "*". Fixes: #153
This commit is contained in:
parent
ab39d4c81f
commit
ef05da9950
|
@ -573,7 +573,7 @@ Uses prefix (as PREFIX) to choose where to display it:
|
||||||
Plantuml elements like skinparam, rectangle, sprite, package, etc.
|
Plantuml elements like skinparam, rectangle, sprite, package, etc.
|
||||||
The opening { has to be the last visible character in the line (whitespace
|
The opening { has to be the last visible character in the line (whitespace
|
||||||
might follow).")
|
might follow).")
|
||||||
(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-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+.+\\|$\\)"
|
(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.
|
"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
|
Two variants for groups: keyword is either followed by whitespace and some text
|
||||||
|
|
Loading…
Reference in New Issue