diff --git a/src/modal.c b/src/modal.c index 7042148..fdde5ac 100644 --- a/src/modal.c +++ b/src/modal.c @@ -23,7 +23,7 @@ walk(char *s) { char c; while((c = *s++)) - if(*s == ')') break; + if(*s == ')' || *s == ' ') break; return s; } diff --git a/test.modal b/test.modal index 627acf3..cd62372 100644 --- a/test.modal +++ b/test.modal @@ -1,5 +1,4 @@ -<> (dup ?x) (?x ?x done) -<> (hello ?x) (bye ?x) -<> (a (b (c))) (end) +<> (foo ?a) (fuu ?a) +<> (?b bar) (?b baz) -(hello world) \ No newline at end of file +(foo bar) \ No newline at end of file