From fbd71a516e68ea8b106261f450c7f215349b24c4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 7 Jul 2017 09:24:51 +0200 Subject: [PATCH] parser: fix parsing escaped characters --- src/parser.c | 4 ++-- src/parser.re | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2