Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Comment Highlighting Applied Within Lines #175

Open
vnayar opened this issue Sep 12, 2023 · 0 comments
Open

Bug: Comment Highlighting Applied Within Lines #175

vnayar opened this issue Sep 12, 2023 · 0 comments

Comments

@vnayar
Copy link

vnayar commented Sep 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant