From fa717b42574fe1a7c0c07393f6790595d39c33ae Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 May 2020 06:58:11 +0200 Subject: Add lexer mode data --- libbuild2/lexer.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/lexer.hxx') diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx index c7e96fb..6dc5027 100644 --- a/libbuild2/lexer.hxx +++ b/libbuild2/lexer.hxx @@ -121,7 +121,8 @@ namespace build2 virtual void mode (lexer_mode, char pair_separator = '\0', - optional escapes = nullopt); + optional escapes = nullopt, + uintptr_t data = 0); // Enable attributes recognition for the next token. // @@ -163,6 +164,7 @@ namespace build2 struct state { lexer_mode mode; + uintptr_t data; bool attributes; char sep_pair; -- cgit v1.1