<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-21 10:06:58 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-21 10:06:58 +0100
commit40276dc66bffda2692096fb1facbc7cf44e18fde (patch)
tree03055914c6c1acdb890c5c85f6b35938ac0116a3 /main
parentf1e5bc37723a4faa30bbfeed392c31489914eb50 (diff)
downloadstred-go-40276dc66bffda2692096fb1facbc7cf44e18fde.tar
Add ^xyz^ as a shorthand for ="xyz"= in subex
Diffstat (limited to 'main')
-rw-r--r--main/parse.go2
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