summaryrefslogtreecommitdiffstats
path: root/src/lexer.in.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.in.cc')
-rw-r--r--src/lexer.in.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lexer.in.cc b/src/lexer.in.cc
index 1df1f06..c5d73e1 100644
--- a/src/lexer.in.cc
+++ b/src/lexer.in.cc
@@ -180,7 +180,7 @@ bool Lexer::ReadEvalString(EvalString* eval, bool path, string* err) {
start = p;
/*!re2c
[^$ :\n|\000]+ {
- eval->Add(EvalString::RAW, StringPiece(start, p - start));
+ eval->AddText(StringPiece(start, p - start));
continue;
}
[ :|\n] {
@@ -190,27 +190,27 @@ bool Lexer::ReadEvalString(EvalString* eval, bool path, string* err) {
} else {
if (*start == '\n')
break;
- eval->Add(EvalString::RAW, StringPiece(start, 1));
+ eval->AddText(StringPiece(start, 1));
continue;
}
}
"$$" {
- eval->Add(EvalString::RAW, StringPiece("$", 1));
+ eval->AddText(StringPiece("$", 1));
continue;
}
"$ " {
- eval->Add(EvalString::RAW, StringPiece(" ", 1));
+ eval->AddText(StringPiece(" ", 1));
continue;
}
"$\n"[ ]* {
continue;
}
"${"varname"}" {
- eval->Add(EvalString::SPECIAL, StringPiece(start + 2, p - start - 3));
+ eval->AddSpecial(StringPiece(start + 2, p - start - 3));
continue;
}
"$"simple_varname {
- eval->Add(EvalString::SPECIAL, StringPiece(start + 1, p - start - 1));
+ eval->AddSpecial(StringPiece(start + 1, p - start - 1));
continue;
}
"$". {