AdaCore / gnatstudio

GNAT Studio is a powerful and lightweight IDE for Ada and SPARK.
398 stars 52 forks source link

LAL Highlighters (Continuous Build Issue) #176

Open andrewathalye opened 2 months ago

andrewathalye commented 2 months ago

The latest gnatstudio can no longer build with the latest libadalang because lal-highlighters.adb is missing cases for the new Ada_Format_String_Start and Ada_Format_String_End

andrewathalye commented 2 months ago

Fairly banal patch attached:

diff --git a/lal/core/lal-highlighters.adb b/lal/core/lal-highlighters.adb
index 8a4fc46..3f49bec 100644
--- a/lal/core/lal-highlighters.adb
+++ b/lal/core/lal-highlighters.adb
@@ -402,7 +402,10 @@ package body LAL.Highlighters is

          when Ada_Comment =>
             return Aspect_Prefix (Comment, In_Aspect);
-         when Ada_Prep_Line =>
+         when Ada_Prep_Line |
+              Ada_Format_String_Start |
+              Ada_Format_String_Mid   |
+              Ada_Format_String_End  =>
             return Aspect_Prefix (None, In_Aspect);
       end case;
    end To_Style;