From fbe60247444bab6210b368b0025c84dfb8846b9b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 11 Sep 2022 02:06:19 +0200 Subject: [PATCH] :art: linter indent --- src/import/import_internals.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/import/import_internals.c b/src/import/import_internals.c index 2a7a52b7..d1fc0283 100644 --- a/src/import/import_internals.c +++ b/src/import/import_internals.c @@ -30,8 +30,9 @@ ANN void gwi_reset(const Gwi gwi) { } ANN static m_bool run_with_doc(const Gwi gwi, m_bool (*f)(const Gwi)) { - struct LintState ls = {.builtin = true}; - Lint linter = {.mp = gwi->gwion->mp, .ls = &ls}; + struct LintState ls = {.builtin = true, }; + Lint linter = {.mp = gwi->gwion->mp, .ls = &ls, .nindent = 2}; + lint_indent(&linter); lint(&linter, "{-}#!+ %s{0}\n", gwi->gwion->env->name); gwi->lint = &linter; return f(gwi); -- 2.43.0