From 497793c854b9dfbf70c2c23813b6b7f06012bcc2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Nov 2019 15:00:25 +0200 Subject: Generalize attributes to be comma-separated with arbitrary values Before: x = [string null] After: x = [string, null] --- libbuild2/test/script/lexer.cxx | 2 +- libbuild2/test/script/parser+pre-parse.test.testscript | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libbuild2/test') diff --git a/libbuild2/test/script/lexer.cxx b/libbuild2/test/script/lexer.cxx index a65eb25..11913d5 100644 --- a/libbuild2/test/script/lexer.cxx +++ b/libbuild2/test/script/lexer.cxx @@ -131,7 +131,7 @@ namespace build2 // assert (ps == '\0' || m == lexer_mode::eval || - m == lexer_mode::attributes); + m == lexer_mode::attribute_value); base_lexer::mode (m, ps, esc); return; diff --git a/libbuild2/test/script/parser+pre-parse.test.testscript b/libbuild2/test/script/parser+pre-parse.test.testscript index f98512a..b2839eb 100644 --- a/libbuild2/test/script/parser+pre-parse.test.testscript +++ b/libbuild2/test/script/parser+pre-parse.test.testscript @@ -5,19 +5,19 @@ : attribute : { - : pair + : name : $* <>EOE != 0 - x = [foo=bar] + x = [foo] EOI - testscript:1:5: error: unknown value attribute foo=bar + testscript:1:5: error: unknown value attribute foo EOE - : pair-empty + : name-value : $* <>EOE != 0 - x = [foo=] + x = [foo=bar] EOI - testscript:1:5: error: unknown value attribute foo + testscript:1:5: error: unknown value attribute foo=bar EOE } -- cgit v1.1