From 1886b2a4811a4d9adbfc509505a095848cc655eb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 10 May 2019 17:15:29 +0200 Subject: pkg/ast: refactor COLON handling This prepared for handling of bytesize[parent:foo:bar] expressions by allowing multiple identifiers after colon. No functional changes for now, just preparation for storing more than one identifier after colon. --- pkg/ast/testdata/all.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/ast/testdata') diff --git a/pkg/ast/testdata/all.txt b/pkg/ast/testdata/all.txt index 6e4e72d2c..e5a1839dd 100644 --- a/pkg/ast/testdata/all.txt +++ b/pkg/ast/testdata/all.txt @@ -27,6 +27,7 @@ define FOO `bar` define FOO `bar ### C expression is not terminated foo(x int32[1:2:3, opt]) ### unexpected ':', expecting ']' +foo2(x int32[1[2]:2]) ### unexpected ':', expecting ']' s0 { f0 string[""] -- cgit mrf-deployment