diff options
author | Brad King <brad.king@kitware.com> | 2005-09-19 17:20:48 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-09-19 17:20:48 -0400 |
commit | dbe997e63b6d01617e63cf938d10588ae5b064d6 (patch) | |
tree | 308766b267261c934beceb71df4e8b48f82e1544 /Source/cmListFileLexer.in.l | |
parent | ec36660ca88b36743c21774426a8c7981e12fb9a (diff) | |
download | cmake-dbe997e63b6d01617e63cf938d10588ae5b064d6.tar.gz |
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 176db2ef0c..02ad5208c8 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; |