From 40276dc66bffda2692096fb1facbc7cf44e18fde Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Fri, 21 Apr 2023 10:06:58 +0100 Subject: Add ^xyz^ as a shorthand for ="xyz"= in subex --- main/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/parse.go b/main/parse.go index dc86fd6..0c534e8 100644 --- a/main/parse.go +++ b/main/parse.go @@ -43,7 +43,7 @@ func (p *parser) parseSubex() subex.SubexAST { panic("Missing subex from substitution") } var subexProgram string - if delim.val == "=" || delim.val == "~" || delim.val == "\"" || delim.val == "`" { + if delim.val == "=" || delim.val == "~" || delim.val == "\"" || delim.val == "`" || delim.val == "^" { subexProgram = delim.val + subexProgramToken.val + delim.val } else { subexProgram = subexProgramToken.val -- cgit v1.2.3