Skip to content

fix: Some variables are incorrectly highlighted as errors#2690

Merged
paxcut merged 2 commits intomasterfrom
fix/highlighting_issues
Mar 20, 2026
Merged

fix: Some variables are incorrectly highlighted as errors#2690
paxcut merged 2 commits intomasterfrom
fix/highlighting_issues

Conversation

@paxcut
Copy link
Collaborator

@paxcut paxcut commented Mar 19, 2026

Non-auto function arguments of custom types defined inside a namespace made the highlighter unable to check if member uses inside the function are valid. Argument types were not parsed as fully qualified types and the problem is corrected by making sure that fully qualified names are used when they are found in function arguments.

An example of a pattern that shows the error is id3.hexpat in the which uses unqualified types. In order to obtain the correct highlighting then you have to add the namespace to all custom types even if they are being used inside the namespace. Type names without namespace are considered by the syntax highlighting code as belonging to the global scope regardless of where the use takes place.

paxcut and others added 2 commits March 19, 2026 03:46
Non-auto function arguments of custom types defined inside a namespace made the highlighter unable to check if member uses inside the function are valid. Argument types were not parsed as fully qualified types and the problem is corrected by making sure that fully qualified  names are used when they are found in function arguments.
@paxcut paxcut merged commit 854535f into master Mar 20, 2026
23 of 24 checks passed
@paxcut paxcut deleted the fix/highlighting_issues branch March 20, 2026 17:45
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

Successfully merging this pull request may close these issues.

1 participant