]> git.armaanb.net Git - opendoas.git/blobdiff - parse.y
s/authorization/authentication/g
[opendoas.git] / parse.y
diff --git a/parse.y b/parse.y
index f4309a3d0db0b61b95542b6e2dd03e4c20e787d3..c50378a5784c0001f2011a12eaa7cc9c101b6e25 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -278,6 +278,8 @@ repeat:
                        if (escape) {
                                nonkw = 1;
                                escape = 0;
+                               yylval.colno = 0;
+                               yylval.lineno++;
                                continue;
                        }
                        goto eow;
@@ -309,8 +311,10 @@ repeat:
                        }
                }
                *p++ = c;
-               if (p == ebuf)
+               if (p == ebuf) {
                        yyerror("too long line");
+                       p = buf;
+               }
                escape = 0;
        }