From: fennecdjay Date: Sun, 11 Sep 2022 00:06:19 +0000 (+0200) Subject: :art: linter indent X-Git-Tag: nightly~259 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fbe60247444bab6210b368b0025c84dfb8846b9b;p=gwion.git :art: linter indent --- 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);