Made the grammer fit the README description more and it seems to work the same. Tests in other projects confirmed, but may need to watch it.
This commit is contained in:
parent
88bc6f9123
commit
9e6038dd7d
2 changed files with 7 additions and 6 deletions
|
@ -33,8 +33,9 @@ namespace lel {
|
|||
number = digit+ >{ start = fpc; } %token;
|
||||
setw = ("(" number %setwidth ("," number %setheight)? ")") ;
|
||||
modifiers = (percent | center | expand | valign | halign | setw);
|
||||
id = modifiers* ((alpha | '_')+ :>> (alnum | '_')*) >{start = fpc;} %id;
|
||||
row = space* ltab space* id space* (col space* id space*)* space* rtab space*;
|
||||
id = ((alpha | '_')+ :>> (alnum | '_')*) >{start = fpc;} %id;
|
||||
cell = modifiers* id;
|
||||
row = space* ltab space* cell space* (col space* cell space*)* space* rtab space*;
|
||||
|
||||
main := row+;
|
||||
}%%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue