diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 16:23:03 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 16:23:03 +0100 |
commit | d6ce4e22ad9b98ab06812506f5bec2d4226ee7d2 (patch) | |
tree | 8d8c0435856faf871e7b5eff7d38a3c88da04051 /g.peg | |
parent | 81662aa56b8ad2fa397b1d3e9dd3bb398c7d1798 (diff) |
mandelbrot
Diffstat (limited to 'g.peg')
-rw-r--r-- | g.peg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ list <- { $$ = astnode_new_list(); } number <- < [0-9]+ > (! ident_char) _ { $$ = astnode_new_num(atoi($1)); } ident <- < ident_char+ > _ { $$ = astnode_new_ident(strdup($1)); } -string <- '"' < [^"]+ > '"' _ { $$ = astnode_new_string(strdup($1)); } +string <- '"' < [^"]* > '"' _ { $$ = astnode_new_string(strdup($1)); } ident_char <- [-_a-zA-Z'+*/\\%=0-9<>] _ <- [ \t\n]* |