]> Nishi Git Mirror - dataworks.git/commitdiff
better parsing
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 19 Jun 2024 00:59:41 +0000 (00:59 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 19 Jun 2024 00:59:41 +0000 (00:59 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@357 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Grammar/dw.l

index 9d50a466175dea17fc208f0ea486f47df1220889..c8099f15e0f672a857b931e6bacf77a1a344a70d 100644 (file)
@@ -53,7 +53,7 @@ char* str = NULL;
        str = __dw_strcat(tmp, yytext);
        free(tmp);
 }
-<DQ>\\\"                       {
+<DQ>\\.                                {
        char* tmp = str;
        str = __dw_strcat(tmp, yytext + 1);
        free(tmp);
@@ -77,7 +77,7 @@ char* str = NULL;
        str = __dw_strcat(tmp, yytext);
        free(tmp);
 }
-<SQ>\\\'                       {
+<SQ>\\.                                {
        char* tmp = str;
        str = __dw_strcat(tmp, yytext + 1);
        free(tmp);