summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/code.l2
-rw-r--r--src/scanner.l2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index b0c7104..ba35f7d 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2602,7 +2602,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
BEGIN( g_lastStringContext );
}
}
-<RawString>[^)]+ { g_code->codify(yytext); }
+<RawString>[^)\n]+ { g_code->codify(yytext); }
<RawString>. { g_code->codify(yytext); }
<RawString>\n { codifyLines(yytext); }
<SkipVerbString>[^"\n]+ {
diff --git a/src/scanner.l b/src/scanner.l
index 50b3e8a..bbe90a3 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -2902,7 +2902,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN(lastRawStringContext);
}
}
-<RawGString>[^)]+ {
+<RawGString>[^)\n]+ {
*pCopyRawGString+=yytext;
}
<RawGString>. {