Variables are highlighted as types in if statement #9
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?
Local variables (parameters) are highlighted as types in an
ifstatement, when using the official Lezercpppackage andclassHighlighter.Example (image):
image link
I understand that it can be complicated to differentiate variable and type names in C++, but still. Maybe it would be better to avoid type tokens at all, if it's too complicated to recognise them correctly.
Code of the example:
Attached patches, released in @lezer/lr 1.4.5 and @lezer/cpp 1.1.4 should improve this.