summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-09-19 21:20:48 (GMT)
committerBrad King <brad.king@kitware.com>2005-09-19 21:20:48 (GMT)
commitdbe997e63b6d01617e63cf938d10588ae5b064d6 (patch)
tree308766b267261c934beceb71df4e8b48f82e1544 /Source/cmListFileLexer.in.l
parentec36660ca88b36743c21774426a8c7981e12fb9a (diff)
downloadCMake-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.l2
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;