summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-25 14:05:07 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-25 14:05:07 (GMT)
commit97c97730a6c93b46295284c5a49d285f57a57121 (patch)
tree606736c91364fdd2f3f7adf1214ee6caec5966e1 /Source/cmCommandArgumentLexer.in.l
parentcba6306b8655d70833d2fd9acd68ce259471b7c8 (diff)
downloadCMake-97c97730a6c93b46295284c5a49d285f57a57121.zip
CMake-97c97730a6c93b46295284c5a49d285f57a57121.tar.gz
CMake-97c97730a6c93b46295284c5a49d285f57a57121.tar.bz2
BUG: Character + should be valid in a variable name.
Diffstat (limited to 'Source/cmCommandArgumentLexer.in.l')
-rw-r--r--Source/cmCommandArgumentLexer.in.l18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmCommandArgumentLexer.in.l b/Source/cmCommandArgumentLexer.in.l
index a4357b0..aa4f729 100644
--- a/Source/cmCommandArgumentLexer.in.l
+++ b/Source/cmCommandArgumentLexer.in.l
@@ -59,13 +59,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;
@@ -74,25 +74,25 @@ Modify cmCommandArgumentLexer.h:
"${" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_DCURLYVariable;
+ yylvalp->str = yyextra->DCURLYVariable;
return cal_DCURLY;
}
"}" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_RCURLYVariable;
+ yylvalp->str = yyextra->RCURLYVariable;
return cal_RCURLY;
}
"@" {
//std::cerr << __LINE__ << " here: [" << yytext << "]" << std::endl;
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_ATVariable;
+ yylvalp->str = yyextra->ATVariable;
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;
@@ -114,19 +114,19 @@ Modify cmCommandArgumentLexer.h:
"$" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_DOLLARVariable;
+ yylvalp->str = yyextra->DOLLARVariable;
return cal_DOLLAR;
}
"{" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_LCURLYVariable;
+ yylvalp->str = yyextra->LCURLYVariable;
return cal_LCURLY;
}
"\\" {
//yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- yylvalp->str = yyextra->m_BSLASHVariable;
+ yylvalp->str = yyextra->BSLASHVariable;
return cal_BSLASH;
}