diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2024-04-07 16:04:23 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2024-04-07 16:04:23 +0100 |
commit | 7162ae8c641314846f0b565d7614ac8d71dbd628 (patch) | |
tree | fba1b545e6d20dac7f958bedf83afc61fcbbc256 /main/parse.go | |
parent | 658900fcae610caace83a112ac0ee865108ebc92 (diff) | |
download | stred-go-7162ae8c641314846f0b565d7614ac8d71dbd628.tar |
Add merge command
Diffstat (limited to 'main/parse.go')
-rw-r--r-- | main/parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/parse.go b/main/parse.go index 3e0e80b..3c24e6c 100644 --- a/main/parse.go +++ b/main/parse.go @@ -69,6 +69,8 @@ func (p *parser) parseBasicCommand(commands []Command, commandChar rune) []Comma return append(commands, NextCommand{}) case 'N': return append(commands, AppendNextCommand{}) + case 'm': + return append(commands, MergeCommand{}) case 's': ast := p.parseSubex() subex := subex.CompileTransducer(ast) |