From 80a087e454c01f2a1c323baabc8e53f4f66c4944 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 1 Aug 2021 19:01:19 -0700 Subject: Minor cleanup --- match.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'match.c') diff --git a/match.c b/match.c index ede5316..bfb860c 100644 --- a/match.c +++ b/match.c @@ -543,10 +543,9 @@ static match_t *match(def_t *defs, file_t *f, const char *str, pat_t *pat, bool } // Subsequent indentation: - while (*str == '\n') ++str; - for (int i = 0; i < dents; i++) { - if (str[i] != denter || &str[i] >= f->end) return NULL; - } + while (*str == '\n' || *str == '\n') ++str; + for (int i = 0; i < dents; i++) + if (&str[i] >= f->end || str[i] != denter) return NULL; return new_match(defs, pat, start, &str[dents], NULL); } -- cgit v1.2.3