mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 10:10:24 -04:00
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 MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c6efb4c41d
commit
a5e9e2bee7
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ extern int yylex(void);
|
|||
%option noyywrap
|
||||
|
||||
%%
|
||||
\"[^"]+\" { yytext++; yytext[strlen(yytext) - 1] = '\0'; return STR; };
|
||||
[a-zA-Z0-9\.\+-_/\:\[\]$&{}]+ { return STR; }
|
||||
#.*\n { lineno++; return NEWLINE; };
|
||||
\\\n { lineno++; };
|
||||
|
|
|
|||
Loading…
Reference in a new issue