From 5ec57d68a5205173a02c34a24d7129347d43196c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Nov 2019 12:55:54 +0200 Subject: Tighten up attribute recognition during parsing Now it should be possible to use `[]` for wildcard patterns, for example: foo = foo.[hit]xx Note that a leading bracket expression will still be recognized as attributes and escaping or quoting it will inhibit pattern matching. To resolve this case we need to specify an empty attribute list: foo = [] [abc]-foo.cxx --- libbuild2/lexer+eval.test.testscript | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libbuild2/lexer+eval.test.testscript') diff --git a/libbuild2/lexer+eval.test.testscript b/libbuild2/lexer+eval.test.testscript index 963f3d0..46452a7 100644 --- a/libbuild2/lexer+eval.test.testscript +++ b/libbuild2/lexer+eval.test.testscript @@ -6,7 +6,7 @@ test.arguments = eval : punctuation : -$* <:'x:x{x}x[x]x$x?x,x(x)' >>EOO +$* <:'x:x{x}x$x?x,x(x)' >>EOO 'x' : 'x' @@ -14,10 +14,6 @@ $* <:'x:x{x}x[x]x$x?x,x(x)' >>EOO 'x' } 'x' -[ -'x' -] -'x' $ 'x' ? -- cgit v1.1