diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-13 16:56:45 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-13 16:56:45 -0400 |
commit | 58e48dd139cf34f64bdcfda2b559378df1ba04ca (patch) | |
tree | 1cb181d7f2b81315e35169200d56a34db0250feb | |
parent | 0807ca82d9936a329b16953ff611ff6589d0d14b (diff) | |
download | runes-58e48dd139cf34f64bdcfda2b559378df1ba04ca.tar.gz runes-58e48dd139cf34f64bdcfda2b559378df1ba04ca.zip |
another comment
-rw-r--r-- | parser.l | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -148,6 +148,9 @@ void runes_parser_process_string(RunesTerm *t, char *buf, size_t len) YY_BUFFER_STATE state; yyscan_t scanner; + /* XXX this will break if buf ends with a partial escape sequence or utf8 + * character. we need to detect that and not consume the entire input in + * that case */ yylex_init_extra(t, &scanner); state = runes_parser_yy_scan_bytes(buf, len, scanner); runes_parser_yylex(scanner); |