From: Michael Wallner Date: Fri, 7 Jul 2017 07:24:51 +0000 (+0200) Subject: parser: fix parsing escaped characters X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fbd71a516e68ea8b106261f450c7f215349b24c4;p=m6w6%2Fext-psi parser: fix parsing escaped characters --- diff --git a/src/parser.c b/src/parser.c index 30cbbbf..a536466 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.16 on Fri Mar 31 10:18:09 2017 */ +/* Generated by re2c 0.16 on Mon Jul 3 17:18:11 2017 */ #line 1 "src/parser.re" /******************************************************************************* Copyright (c) 2016, Michael Wallner . @@ -10373,7 +10373,7 @@ yy604: yy606: ++cur; #line 459 "src/parser.re" - { escaped = !escaped; } + { escaped = !escaped; goto character; } #line 10378 "src/parser.c" } #line 473 "src/parser.re" diff --git a/src/parser.re b/src/parser.re index d5d1078..e573536 100644 --- a/src/parser.re +++ b/src/parser.re @@ -456,7 +456,7 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input /*!re2c EOL { NEWLINE(); goto character; } - "\\" { escaped = !escaped; } + "\\" { escaped = !escaped; goto character; } "'" { if (escaped) { escaped = false;