plantuml-mode
plantuml-mode copied to clipboard
Bug: Comment Highlighting Applied Within Lines
Summary
As seen in the following image, plantuml-mode applies the font-face associated with comments in the middle of a line that contains a single quote:
In this image, the line is:
usecase (Month's End Accruals) as Accruals
The image shows the comment font-face being applied to all characters at and beyond the apostrophe.
According to the PDF manual, sections 21.1 and 16.17, "Everything that starts with a simple quote is a comment": https://plantuml.com/guide
The manual is ambiguous, but two examples resolve the ambiguity:
usecase (Record Invoice) as Invoice ' Ham ham
Syntax Error?
' Ham ham
usecase (Record Invoice) as Invoice
OK
These snippets imply the rule should be interpretted as "Every line that starts with a simple quote is a comment".