Fixed issue with ?~ register

This commit is contained in:
Devine Lu Linvega 2024-04-14 17:41:22 -07:00
parent b5b6472ebc
commit 8705ebebc6
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
<> (NAME) (Modal)
<> (?: print $) (?:)
<> ($ ?x) (?x $)
<> (listen ?~) (?~ done.)
foo listen stdin bar
$ (Welcome to NAME \nHave fun!\n\n) print

View File

@ -50,7 +50,7 @@ put_reg(char r)
*outp_++ = '?', *outp_++ = r;
return;
}
*ss = walk(s);
ss = walk(s);
if(r == '*') {
if(*s == '(') { /* special implode */
while(s < ss && (c = *s++))