diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 10:06:58 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 10:06:58 +0100 |
commit | 40276dc66bffda2692096fb1facbc7cf44e18fde (patch) | |
tree | 03055914c6c1acdb890c5c85f6b35938ac0116a3 /main/parse.go | |
parent | f1e5bc37723a4faa30bbfeed392c31489914eb50 (diff) | |
download | stred-go-40276dc66bffda2692096fb1facbc7cf44e18fde.tar |
Add ^xyz^ as a shorthand for ="xyz"= in subex
Diffstat (limited to 'main/parse.go')
-rw-r--r-- | main/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |