File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ package body LSP.Ada_Highlighters is
2828 Highlighter_Debug : constant GNATCOLL.Traces.Trace_Handle :=
2929 GNATCOLL.Traces.Create (" ALS.HIGHLIGHTERS.DEBUG" , GNATCOLL.Traces.Off);
3030
31- Skip : LSP.Enumerations.SemanticTokenTypes renames LSP.Enumerations.macro;
31+ Skip : LSP.Enumerations.SemanticTokenTypes renames
32+ LSP.Enumerations.decorator;
3233 -- A dedicated token type for unsupported tokens
3334
3435 function Is_Ghost_Root_Node
@@ -717,6 +718,8 @@ package body LSP.Ada_Highlighters is
717718 return a_function;
718719 when Ada_Named_Stmt_Decl =>
719720 return namespace;
721+ when Ada_Label_Decl =>
722+ return namespace;
720723 when Ada_Number_Decl =>
721724 return number;
722725 when Ada_Package_Renaming_Decl =>
@@ -725,6 +728,14 @@ package body LSP.Ada_Highlighters is
725728 return variable;
726729 when Ada_Single_Task_Decl =>
727730 return variable;
731+ when Ada_Extended_Return_Stmt_Object_Decl =>
732+ return variable;
733+ when Ada_Abstract_State_Decl
734+ | Ada_Paren_Abstract_State_Decl
735+ | Ada_Multi_Abstract_State_Decl =>
736+ return macro;
737+ when Ada_No_Type_Object_Renaming_Decl =>
738+ return variable;
728739 when others =>
729740 return Skip;
730741 end case ;
You can’t perform that action at this time.
0 commit comments