summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cparse/cparse_lex.l10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cparse/cparse_lex.l b/src/cparse/cparse_lex.l
index 49f8d47..8fcd5f3 100644
--- a/src/cparse/cparse_lex.l
+++ b/src/cparse/cparse_lex.l
@@ -170,6 +170,16 @@ free_str()
append_str(cparse_text);
}
+<sQStr>\\\"\n {
+ append_str("\\");
+ set_ret_str();
+ cparse_lval.str = strdup(out_buf);
+ free_str();
+ ++cparse_lineno;
+ BEGIN(INITIAL);
+ return VALUE;
+}
+
<sQStr>\\. {
/* this will consume the \" sequence */
append_str(cparse_text);