From ddfdeb72247d1343c03acc2fcc47bb5dfd03b3d8 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 27 Aug 2024 11:37:18 +0200 Subject: [PATCH] fix: rule priority --- takentaal.g4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/takentaal.g4 b/takentaal.g4 index 0682035..d0781f2 100644 --- a/takentaal.g4 +++ b/takentaal.g4 @@ -78,14 +78,14 @@ WS : [ \r\n\t]+ -> skip ; -TEXT - : TEXTHEAD TEXTBODY* - ; - INT : DIGIT+ ; +TEXT + : TEXTHEAD TEXTBODY* + ; + fragment LETTER : [a-zA-Z\u0080-\u00FF_] ; @@ -96,6 +96,7 @@ fragment DIGIT fragment TEXTHEAD : LETTER + | DIGIT ; fragment TEXTBODY