diff options
author | Brad King <brad.king@kitware.com> | 2004-09-20 12:51:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-09-20 12:51:12 (GMT) |
commit | bc26a216b49a7ba9367ed5fd7d411a78bbf63394 (patch) | |
tree | 83afca4214ead61440d04c2004f3e252ff66c3db /Source/cmListFileLexer.in.l | |
parent | bedb6e899f28b6dc2f16c093342e9a34dd9bc46b (diff) | |
download | CMake-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.l | 4 |
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; |