From 1decf93f56810b889f77a277a2ea2637a1e6fdca Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Wed, 4 Sep 2024 17:05:00 +0200 Subject: [PATCH] Require spaces after start-of-line tokens in line with spec text. --- takentaal.g4 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/takentaal.g4 b/takentaal.g4 index 02f75f8..d283966 100644 --- a/takentaal.g4 +++ b/takentaal.g4 @@ -82,16 +82,16 @@ amount : '{' S* INT S* '}' | ; // Lexer rules -PLAN_TOKEN : EOL+ '#' ; +PLAN_TOKEN : EOL+ '# ' ; -TASK_TOKEN : EOL+ '##' ; +TASK_TOKEN : EOL+ '## ' ; // These lexer tokens are combined with EOL so that they only match at the // start of a line. -SUBTASK_NEW_TOKEN : EOL+ '-' ; -SUBTASK_PARTIAL_TOKEN : EOL+ '/' ; -SUBTASK_COMPLETE_TOKEN : EOL+ '*' ; -SUBTASK_OBSOLETE_TOKEN : EOL+ '!' ; +SUBTASK_NEW_TOKEN : EOL+ '- ' ; +SUBTASK_PARTIAL_TOKEN : EOL+ '/ ' ; +SUBTASK_COMPLETE_TOKEN : EOL+ '* ' ; +SUBTASK_OBSOLETE_TOKEN : EOL+ '! ' ; S : ' ' ;