Stop parsing names at comment marker
This commit is contained in:
parent
a860998858
commit
c52ba3b6d9
1 changed files with 3 additions and 3 deletions
|
@ -29,8 +29,8 @@ location = >location_header items:{ block } ;
|
||||||
|
|
||||||
|
|
||||||
attributes =
|
attributes =
|
||||||
name:/[^\n]*?(?= +-- | +:: | +€ |\n)/
|
name:/[^\n#]*?(?= +-- | +:: | +€ | *\n| *#)/
|
||||||
[ s '--' ~ s description:/[^\n]*?(?= +:: | +€ |\n)/ ]
|
[ s '--' ~ s description:/[^\n#]*?(?= +:: | +€ | *\n| *#)/ ]
|
||||||
[ s '::' {s ('{' tags+:identifier '}')} ]
|
[ s '::' {s ('{' tags+:identifier '}')} ]
|
||||||
[ [ s '::' ~ ] s price:price ]
|
[ [ s '::' ~ ] s price:price ]
|
||||||
;
|
;
|
||||||
|
@ -78,7 +78,7 @@ n = '\n' {{'\t'} '\n'} ;
|
||||||
|
|
||||||
@name
|
@name
|
||||||
identifier = /[a-z0-9_-]+/ ;
|
identifier = /[a-z0-9_-]+/ ;
|
||||||
string = /[^\n]+/ ;
|
string = /[^\n#]+/ ;
|
||||||
choice_type = 'single_choice' | 'multi_choice' ;
|
choice_type = 'single_choice' | 'multi_choice' ;
|
||||||
|
|
||||||
int = /[0-9]+/ ;
|
int = /[0-9]+/ ;
|
||||||
|
|
Loading…
Reference in a new issue