diff options
Diffstat (limited to 'definitions.c')
| -rw-r--r-- | definitions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/definitions.c b/definitions.c index 8216e1d..43bfe3c 100644 --- a/definitions.c +++ b/definitions.c @@ -33,8 +33,7 @@ def_t *with_def(def_t *defs, size_t namelen, const char *name, pat_t *pat) // def_t *load_grammar(def_t *defs, file_t *f) { - const char *str = after_spaces(f->start); - while (*str == '\r' || *str == '\n') str = after_spaces(++str); + const char *str = after_spaces(f->start, true); pat_t *pat = bp_pattern(f, str); if (!pat) file_err(f, str, f->end, "Could not parse this file"); if (pat->end < f->end) file_err(f, pat->end, f->end, "Could not parse this part of the file"); |
