Skip to content

Commit

Permalink
Merge branch 'topic/gnatcheck_diagnose_parsing' into 'master'
Browse files Browse the repository at this point in the history
Correct the GNATcheck diagnose parsing to avoid Ada file name errors

See merge request eng/libadalang/langkit-query-language!113
  • Loading branch information
HugoGGuerrier committed Oct 3, 2023
2 parents 3463f3a + 7cfdc12 commit aea9b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lkql_checker/lalcheck/gnatcheck-diagnoses.adb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ package body Gnatcheck.Diagnoses is
package LCO renames Libadalang.Common;

Match_Diagnosis : constant Pattern_Matcher :=
Compile ("^(.*)?:(\d+)?:(\d+)?: (.*)$");
Compile ("^([^:]*)?:(\d+)?:(\d+)?: (.*)$");
-- Matcher for a diagnostic

Match_Rule_Name : constant Pattern_Matcher :=
Expand Down

0 comments on commit aea9b60

Please sign in to comment.