diff options
author | Brad King <brad.king@kitware.com> | 2005-09-19 21:20:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-09-19 21:20:48 (GMT) |
commit | dbe997e63b6d01617e63cf938d10588ae5b064d6 (patch) | |
tree | 308766b267261c934beceb71df4e8b48f82e1544 /Source/cmListFileLexer.in.l | |
parent | ec36660ca88b36743c21774426a8c7981e12fb9a (diff) | |
download | CMake-dbe997e63b6d01617e63cf938d10588ae5b064d6.zip CMake-dbe997e63b6d01617e63cf938d10588ae5b064d6.tar.gz CMake-dbe997e63b6d01617e63cf938d10588ae5b064d6.tar.bz2 |
BUG: When an unquoted argument contains a pair of matching double quotes spaces and tabs should be allowed in-between. This allows arguments like -DFOO='"bar zot"' to work.
Diffstat (limited to 'Source/cmListFileLexer.in.l')
-rw-r--r-- | Source/cmListFileLexer.in.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListFileLexer.in.l b/Source/cmListFileLexer.in.l index 176db2e..02ad520 100644 --- a/Source/cmListFileLexer.in.l +++ b/Source/cmListFileLexer.in.l @@ -132,7 +132,7 @@ MAKEVAR \$\([A-Za-z0-9_]*\) return 1; } -({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.)({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.|\"({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.)*\")* { +({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.)({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.|\"({MAKEVAR}|[^\r\n\(\)#\\\"]|\\.)*\")* { lexer->token.type = cmListFileLexer_Token_ArgumentUnquoted; cmListFileLexerSetToken(lexer, yytext, yyleng); lexer->column += yyleng; |