Skip to content

Handle syntax without syntax or indent files - #48

Merged
leafOfTree merged 1 commit into
masterfrom
missing-syntax-indent
Oct 21, 2026
Merged

leafOfTree merged 1 commit into
masterfrom
missing-syntax-indent

Conversation

@leafOfTree

Copy link
Copy Markdown
Owner
  • A syntax in the config without a syntax file, like postcss, showed E484 on opening a file. Skip loading it, with a warning in debug.
  • A syntax without an indent file used cindent, which broke indent of languages like pug or stylus without their plugins, or toml. Keep the indent instead. Lines outside blocks still use cindent.

ExpectIndentEachLine() takes -1 as keeping the indent.

Test: no-syntax-indent-file.

A syntax in the config without a syntax file, like postcss, showed
E484 on opening a file. Skip loading it, with a warning in debug.

A syntax without an indent file used cindent, which broke indent of
languages like pug, stylus without their plugins, or toml. Keep the
indent instead. Lines outside blocks still use cindent.
@leafOfTree
leafOfTree merged commit f812fac into master Oct 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant