Partial multi-line comments are not highlighted #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Multi-line comments are not highlighted until closed. Which is a bit unusual, I'd say, for a code editor.
btw
lang-javahas the same problem, but notlang-javascript,lang-go,lang-rust. So the behaviour seems a bit inconsistent.Example (image):
Code:
Each parser can make its own decisions about how to parse comments. Some treat them as a single token, which will make them not match if the end marker is missing, and others as separate opening tokens, content tokens, and end tokens. The latter is more efficient when re-parsing large comment blocks, so attached patch makes the cpp parser work this way as well.