Skip to content

Commit

Permalink
indent named multiline notes
Browse files Browse the repository at this point in the history
Recognize named multiline notes in indentation regex.  These notes look
something like this:

note as N1
    some description
end note

Fixes: skuro#154
  • Loading branch information
cynhr authored Jan 3, 2022
1 parent ea45a13 commit ab39d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plantuml-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab39d4c

Please sign in to comment.