From 3b320206e96176a41bf7883bf78e21951d0b30b5 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Wed, 10 Apr 2024 22:44:20 +1000 Subject: [PATCH] Changed from square brackets to parenthesis This leaves the square brackets free for lists --- cmdlang/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdlang/ast.go b/cmdlang/ast.go index 0943a95..5fe41be 100644 --- a/cmdlang/ast.go +++ b/cmdlang/ast.go @@ -12,7 +12,7 @@ type astLiteral struct { type astCmdArg struct { Literal *astLiteral `parser:"@@"` - Sub *astPipeline `parser:"| '[' @@ ']'"` + Sub *astPipeline `parser:"| '(' @@ ')'"` } type astCmd struct {