We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb68614 + ffb8e41 commit 4c44b88Copy full SHA for 4c44b88
source/ada/lsp-ada_highlighters.adb
@@ -626,9 +626,9 @@ package body LSP.Ada_Highlighters is
626
end;
627
628
begin
629
- if Def.P_Has_Aspect (Self.Obsolescent)
630
- or else not Def.P_Get_Pragma (Self.Obsolescent).Is_Null
631
- then
+ -- P_Has_Aspect checks the existence of either an aspect or
+ -- a pragma.
+ if Def.P_Has_Aspect (Self.Obsolescent) then
632
Highlight_Token (Node.Token_Start, deprecated);
633
end if;
634
exception
0 commit comments