chiark / gitweb /
Fix quoted strings. Oops.
[userv.git] / lexer.l.m4
index 0b7e705f8f521ea57f2d3c84a7c65c27bcdbaad0..5aaeff088b312349b22732ce2ce0bca3738731a4 100644 (file)
@@ -178,14 +178,14 @@ changequote({*,*})
                          parseerrprint("missing newline at eof after comment");
                          return tokv_error;
                        }
-[^\ \t\n]+             return tokv_barestring;
-\"([^\\\"\n]|\\[a-z]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2}|\\[:punct:]|\\[ \t]*\n)*\" {
+\"([^\\\"\n]|\\[a-z]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2}|\\[[:punct:]]|\\[ \t]*\n)*\" {
                          return dequote(yytext);
                        }
 \".*                   {
                          parseerrprint("misquoted or unterminated string");
                          return tokv_error;
                        }
+[^\ \t\n]+             return tokv_barestring;
 <<EOF>>                        return tokv_eof;
 *}
 changequote(`,')