Skip to content
Show errors in the parsing of a file when using a tree-sitter grammar
Branch: master
Clone or download
Aerijo Merge pull request #3 from notengrafik/ensure-initial-lint
Make sure initial lint is successful
Latest commit e370900 Oct 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Make sure initial lint is successful Oct 9, 2018
.gitignore
LICENSE Initial commit Jun 27, 2018
README.md Initial commit Jun 27, 2018
package.json

README.md

linter-tree-sitter

Show errors in the parsing of a file when using a tree-sitter grammar in Atom.

It will use the editor's parser, so no tree-sitter dependencies are required. It will apply itself to all editors using tree-sitter grammars, keeping track of grammar changes and updating accordingly.

Linting is redone each time TextEditor.onDidStopChanging() calls it.

Right now, errors are given a generic Error! error, and missing fields are given a warning. I tried using the .isMissing() property of the nodes, but it didn't seem to work. Instead, it will throw a missing warning when an error is detected somewhere inside the node, and the range is zero width.

You can’t perform that action at this time.