summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-09-20 12:51:12 (GMT)
committerBrad King <brad.king@kitware.com>2004-09-20 12:51:12 (GMT)
commitbc26a216b49a7ba9367ed5fd7d411a78bbf63394 (patch)
tree83afca4214ead61440d04c2004f3e252ff66c3db /Source/cmListFileLexer.in.l
parentbedb6e899f28b6dc2f16c093342e9a34dd9bc46b (diff)
downloadCMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.zip
CMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.tar.gz
CMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.tar.bz2
BUG#1179: Fix for syntax in unquoted arguments.
Diffstat (limited to 'Source/cmListFileLexer.in.l')
-rw-r--r--Source/cmListFileLexer.in.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmListFileLexer.in.l b/Source/cmListFileLexer.in.l
index e99bc03..aefa7d6 100644
--- a/Source/cmListFileLexer.in.l
+++ b/Source/cmListFileLexer.in.l
@@ -94,6 +94,8 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer);
%pointer
%x STRING
+MAKEVAR \$\([A-Za-z0-9_]*\)
+
%%
\n {
@@ -129,7 +131,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer);
return 1;
}
-([^ \t\r\n\(\)#\\\"]|\\.)([^ \t\r\n\(\)#\\]|\\.)* {
+({MAKEVAR}|[^ \t\r\n\(\)#\\\"]|\\.)({MAKEVAR}|[^ \t\r\n\(\)#\\]|\\.)* {
lexer->token.type = cmListFileLexer_Token_ArgumentUnquoted;
cmListFileLexerSetToken(lexer, yytext, yyleng);
lexer->column += yyleng;