From b866ad5f670febe3d3ee0f4839e7b1e0d58e7916 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 6 Apr 2024 09:19:58 -0700 Subject: [PATCH] Always catch symbol cap --- examples/test.modal | 4 ++-- src/modal.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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