summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-01 20:49:37 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-01 20:49:37 (GMT)
commitbccf040b00ecbea0d754d7cc4ecf5bba34b065e4 (patch)
treefe4bfbdd1674490dd5b6b214768b0185d834f499 /Source/cmListFileLexer.in.l
parent0592f3adbc045c45baa5532175fb40f841eaccdb (diff)
downloadCMake-bccf040b00ecbea0d754d7cc4ecf5bba34b065e4.zip
CMake-bccf040b00ecbea0d754d7cc4ecf5bba34b065e4.tar.gz
CMake-bccf040b00ecbea0d754d7cc4ecf5bba34b065e4.tar.bz2
BUG: Unquoted arguments can have quotes that are not at the beginning, but only an even number of them.
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 a28b982..176db2e 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\(\)#\\\"]|\\.)*\")* {
lexer->token.type = cmListFileLexer_Token_ArgumentUnquoted;
cmListFileLexerSetToken(lexer, yytext, yyleng);
lexer->column += yyleng;