mirror of
https://codeberg.org/NLnet/takentaal.git
synced 2025-08-29 14:00:06 +00:00
Require spaces after start-of-line tokens in line with spec text.
This commit is contained in:
parent
304f90a0b5
commit
1decf93f56
1 changed files with 6 additions and 6 deletions
12
takentaal.g4
12
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 : ' ' ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue