diff --git a/examples/test.modal b/examples/test.modal index 449017b..39bf16d 100644 --- a/examples/test.modal +++ b/examples/test.modal @@ -1,4 +1,4 @@ -<> ([c]) () -<> (c) ([c]) +<> ([a]) () +<> (a) ([a]) (abc) \ No newline at end of file diff --git a/src/modal.c b/src/modal.c index 8297ae9..3c5786f 100644 --- a/src/modal.c +++ b/src/modal.c @@ -63,7 +63,7 @@ match(char *p, Rule *r) if(c != *b) return NULL; a++, b++; } - return b; + return spacer(*b) ? b : NULL; } static int