Skip to content

Commit 71ccb98

Browse files
committed
Do not apply semantic tokens to unresolved identifiers
1 parent fd2b0d5 commit 71ccb98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/ada/lsp-ada_highlighters.adb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,9 @@ package body LSP.Ada_Highlighters is
652652
if Node.P_Is_Operator_Name then
653653
Highlight_Token (Node.Token_Start, operator);
654654
else
655-
-- Fallback to some default for any unresolved identifier
656-
Highlight_Token (Node.Token_Start, modifier);
655+
-- In case of unresolved identifiers, do not set any semantic
656+
-- highlighting
657+
null;
657658
end if;
658659
end Highlight_Name;
659660

0 commit comments

Comments
 (0)