projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
503860f
)
parser: fix parsing escaped characters
author
Michael Wallner
<mike@php.net>
Fri, 7 Jul 2017 07:24:51 +0000
(09:24 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 7 Jul 2017 07:24:51 +0000
(09:24 +0200)
src/parser.c
patch
|
blob
|
history
src/parser.re
patch
|
blob
|
history
diff --git
a/src/parser.c
b/src/parser.c
index 30cbbbff7bc8505428592e8629b2ce9dcaae9cc7..a536466e42d4291b1f005403da18c2e9afcd0a58 100644
(file)
--- 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 <mike@php.net>.
#line 1 "src/parser.re"
/*******************************************************************************
Copyright (c) 2016, Michael Wallner <mike@php.net>.
@@
-10373,7
+10373,7
@@
yy604:
yy606:
++cur;
#line 459 "src/parser.re"
yy606:
++cur;
#line 459 "src/parser.re"
- { escaped = !escaped; }
+ { escaped = !escaped;
goto character;
}
#line 10378 "src/parser.c"
}
#line 473 "src/parser.re"
#line 10378 "src/parser.c"
}
#line 473 "src/parser.re"
diff --git
a/src/parser.re
b/src/parser.re
index d5d10787c1a1a42d8e71b66e65b0f14f531d019a..e57353662c59fef7bef95e4adffeeba710074900 100644
(file)
--- 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; }
/*!re2c
EOL { NEWLINE(); goto character; }
- "\\" { escaped = !escaped; }
+ "\\" { escaped = !escaped;
goto character;
}
"'" {
if (escaped) {
escaped = false;
"'" {
if (escaped) {
escaped = false;