Require spaces after start-of-line tokens in line with spec text.

This commit is contained in:
Jos van den Oever 2024-09-04 17:05:00 +02:00
parent 304f90a0b5
commit 1decf93f56

View file

@ -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 : ' ' ;