diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-14 17:22:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-14 17:22:08 (GMT) |
commit | 40d289dd686184cfb856734226f52900e5dfcf1b (patch) | |
tree | f9173ac13f2e1786fc99de37c79c80e6bb32101d /Source/cmCommandArgumentLexer.in.l | |
parent | 24a5c0a72e5a50637a285c1dd5427a6bb498ca06 (diff) | |
download | CMake-40d289dd686184cfb856734226f52900e5dfcf1b.zip CMake-40d289dd686184cfb856734226f52900e5dfcf1b.tar.gz CMake-40d289dd686184cfb856734226f52900e5dfcf1b.tar.bz2 |
ENH: Improve variable name regular expression
Diffstat (limited to 'Source/cmCommandArgumentLexer.in.l')
-rw-r--r-- | Source/cmCommandArgumentLexer.in.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentLexer.in.l b/Source/cmCommandArgumentLexer.in.l index d314f00..e2fdb72 100644 --- a/Source/cmCommandArgumentLexer.in.l +++ b/Source/cmCommandArgumentLexer.in.l @@ -85,13 +85,13 @@ Modify cmCommandArgumentLexer.h: %% -\$[A-Za-z0-9_]+\{ { +\$[A-Za-z0-9/_.-]+\{ { //std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl; yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2); return cal_NCURLY; } -@[A-Za-z0-9_]+@ { +@[A-Za-z0-9/_.-]+@ { //std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl; yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2); return cal_ATNAME; @@ -118,7 +118,7 @@ Modify cmCommandArgumentLexer.h: return cal_AT; } -[A-Za-z0-9_.]+ { +[A-Za-z0-9/_.-]+ { //std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl; yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext)); return cal_NAME; |