Check-in Number:
|
2252 | |
Date: |
2002-Jul-06 20:44:46 (local)
2002-Jul-06 18:44:46 (UTC) |
User: | rse |
Branch: | |
Comment: |
Make sure 'a\b\\\'c' is parsed as "a\\b\\'c" and not "ab\\'c", i.e.
follow the rules of the Perl '...' quoting and process only \\ and \'
and keep all other escape sequences as is. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/cfg/cfg_syn_scan.l 1.5 -> 1.6
--- cfg_syn_scan.l 2002/07/05 20:49:58 1.5
+++ cfg_syn_scan.l 2002/07/06 18:44:46 1.6
@@ -174,7 +174,11 @@
<SS_SQ>\\\n[ \t]* {
/* no-op */
}
-<SS_SQ>\\(.|\n) {
+<SS_SQ>\\[\\\'] {
+ *cpStr++ = yytext[1];
+}
+<SS_SQ>\\[^\\\'] {
+ *cpStr++ = yytext[0];
*cpStr++ = yytext[1];
}
<SS_SQ>[^\\\']+ {
|
|