aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-26 16:19:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-26 16:19:28 +0200
commit73c7f8615ebfaf76063207fbd071b2ff7b6b5a3f (patch)
treea4b9bfdd5e50dcbe1ec05aa135c171270414f1b7 /build2/test/script/parser
parent757f42e7dea94f8b79b3d55074dedeafd853ddc5 (diff)
Spec testscript regex, add support in token/lexer
Diffstat (limited to 'build2/test/script/parser')
-rw-r--r--build2/test/script/parser6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/test/script/parser b/build2/test/script/parser
index da82df2..ee270d8 100644
--- a/build2/test/script/parser
+++ b/build2/test/script/parser
@@ -102,7 +102,7 @@ namespace build2
int fd; // Redirect fd (0 - in, 1 - out, 2 - err).
string end;
bool literal; // Literal (single-quote).
- bool no_newline; // No final newline.
+ string modifiers;
};
using here_docs = vector<here_doc>;
@@ -116,7 +116,9 @@ namespace build2
parse_here_documents (token&, token_type&,
pair<command_expr, here_docs>&);
string
- parse_here_document (token&, token_type&, const string&, bool);
+ parse_here_document (token&, token_type&,
+ const string&,
+ const string&);
// Execute. Issue diagnostics and throw failed in case of an error.
//