plantuml-mode icon indicating copy to clipboard operation
plantuml-mode copied to clipboard

Bug: Comment Highlighting Applied Within Lines

Open vnayar opened this issue 1 year ago • 0 comments

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:

image

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".

vnayar avatar Sep 12 '23 08:09 vnayar