chiark / gitweb /
@@ -1,9 +1,11 @@
[userv.git] / lexer.l.m4
index c55c2e26495dec3ae05f6a1b1aec1f0223b1824b..7b26c1507c6c44981be7a1f89746a2ae29d5cde0 100644 (file)
@@ -171,7 +171,8 @@ changequote({*,*})
                          lr_max=-1;
                          return tokv_fdstoend;
                        }
                          lr_max=-1;
                          return tokv_fdstoend;
                        }
-[\ \t]+                        return tokv_lwsp;
+([\ \t]*\\[\ \t]*\n[\ \t]*)+   return tokv_lwsp;
+[\ \t]+                                return tokv_lwsp;
 [\ \t]*\n              cstate->lineno++; return tokv_newline;
 [\ \t]*\#[^\n]*\n      cstate->lineno++; return tokv_newline;
 [\ \t]*\#[^\n]*                {
 [\ \t]*\n              cstate->lineno++; return tokv_newline;
 [\ \t]*\#[^\n]*\n      cstate->lineno++; return tokv_newline;
 [\ \t]*\#[^\n]*                {
@@ -185,7 +186,7 @@ changequote({*,*})
                          parseerrprint("misquoted or unterminated string");
                          return tokv_error;
                        }
                          parseerrprint("misquoted or unterminated string");
                          return tokv_error;
                        }
-[^\ \t\n]+             return tokv_barestring;
+[^\ \t\n\\]+           return tokv_barestring;
 <<EOF>>                        return tokv_eof;
 *}
 changequote(`,')
 <<EOF>>                        return tokv_eof;
 *}
 changequote(`,')