From bb02e152dc036879ab0b2d1d8aa2cb19084b8e16 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 25 May 2021 13:42:41 +0200 Subject: Recognize quoting of first character in token Use this to relax the pattern inclusion/exclusion syntax to only require unquoted +/-. --- libbuild2/lexer.test.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbuild2/lexer.test.cxx') diff --git a/libbuild2/lexer.test.cxx b/libbuild2/lexer.test.cxx index 24f0528..6d48885 100644 --- a/libbuild2/lexer.test.cxx +++ b/libbuild2/lexer.test.cxx @@ -84,7 +84,11 @@ namespace build2 } if (q != '\0') - cout << " [" << q << (t.qcomp ? "/C" : "/P") << ']'; + cout << " [" + << q + << (t.qcomp ? "/C" : "/P") + << (!t.qcomp && t.qfirst ? "/F" : "") + << ']'; } cout << endl; -- cgit v1.1