summaryrefslogtreecommitdiff
path: root/Source/cmListFileLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-01 16:49:37 -0400
committerBrad King <brad.king@kitware.com>2005-08-01 16:49:37 -0400
commitbccf040b00ecbea0d754d7cc4ecf5bba34b065e4 (patch)
treefe4bfbdd1674490dd5b6b214768b0185d834f499 /Source/cmListFileLexer.in.l
parent0592f3adbc045c45baa5532175fb40f841eaccdb (diff)
downloadcmake-bccf040b00ecbea0d754d7cc4ecf5bba34b065e4.tar.gz
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 a28b9827d8..176db2ef0c 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;