MFC r271167:

Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR:		192968
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2014-09-17 08:25:48 +00:00
parent 595559f064
commit e073d019f5

View File

@ -48,6 +48,7 @@ extern int yylex(void);
%option noyywrap %option noyywrap
%% %%
\"[^"]+\" { yytext++; yytext[strlen(yytext) - 1] = '\0'; return STR; };
[a-zA-Z0-9\.\+-_/\:\[\]$&{}]+ { return STR; } [a-zA-Z0-9\.\+-_/\:\[\]$&{}]+ { return STR; }
#.*\n { lineno++; return NEWLINE; }; #.*\n { lineno++; return NEWLINE; };
\\\n { lineno++; }; \\\n { lineno++; };