Skip to content

Commit d9ade98

Browse files
committed
Merge branch 'topic/sem-highlight' into 'master'
Simplify obsolescent highlighting logic See merge request eng/ide/ada_language_server!1204
2 parents cc259b5 + 9398445 commit d9ade98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/ada/lsp-ada_highlighters.adb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,9 @@ package body LSP.Ada_Highlighters is
626626
end;
627627

628628
begin
629-
if Def.P_Has_Aspect (Self.Obsolescent)
630-
or else not Def.P_Get_Pragma (Self.Obsolescent).Is_Null
631-
then
629+
-- P_Has_Aspect checks the existence of either an aspect or a
630+
-- pragma.
631+
if Def.P_Has_Aspect (Self.Obsolescent) then
632632
Highlight_Token (Node.Token_Start, deprecated);
633633
end if;
634634
exception

0 commit comments

Comments
 (0)