X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=lexer.l.m4;h=7b26c1507c6c44981be7a1f89746a2ae29d5cde0;hp=5aaeff088b312349b22732ce2ce0bca3738731a4;hb=c7ad3b51358d0b7704e5670d973ad1a376caf4e1;hpb=7bc3c582a0a80d34d2c9c86ed9a588b3983e0db1 diff --git a/lexer.l.m4 b/lexer.l.m4 index 5aaeff0..7b26c15 100644 --- a/lexer.l.m4 +++ b/lexer.l.m4 @@ -1,7 +1,7 @@ dnl userv - lexer.l.m4 dnl lexer, passed through m4 with defs from langauge.i4 /* - * Copyright (C)1996-1997 Ian Jackson + * Copyright (C)1996-1997,1999 Ian Jackson * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by @@ -171,7 +171,8 @@ changequote({*,*}) 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]* { @@ -185,11 +186,16 @@ changequote({*,*}) parseerrprint("misquoted or unterminated string"); return tokv_error; } -[^\ \t\n]+ return tokv_barestring; +[^\ \t\n\\]+ return tokv_barestring; <> return tokv_eof; *} changequote(`,') %% + +const char *const builtinservicehelpstrings[]= { +undivert(5)dnl + 0 +}; ` #include "parser.c" '