Questionable syntax highlighting #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?
In some cases, the start of a line is highlighted as a type before it's obvious that it's a type.
EXAMPLE 1
In the example below a person starts a statement "System...", but it's eagerly highlighted as a type (green).
At the same time, "System" is not highlighted as a type after
System.out.println("hello")(black).EXAMPLE 2
Well, two identifiers that follow each other do unambiguously indicate a declaration in Java, with the first one being the type and the second the name. It's only at
.outthat this parse becomes invalid. I don't think it's worth adding special rules to the grammar to avoid specific parses of unfinished code.