vale icon indicating copy to clipboard operation
vale copied to clipboard

Make Vale's format support extensible

Open jdkato opened this issue 2 years ago • 4 comments

See https://github.com/errata-ai/vale/issues/688#issuecomment-1766080782 for a related comment.

jdkato avatar Feb 15 '24 16:02 jdkato

One way to do that is to work with Tree-Sitter grammars the way NeoVim does—it will allow you to analyze comments in every language, depending on the syntax or so-called "injections".

XVilka avatar Mar 15 '24 13:03 XVilka

+1 for tree-sitter- there are grammars for nearly every language and tree-sitter makes it easy to design your own.

weaversam8 avatar Apr 30 '24 21:04 weaversam8

Many of Vale's supported programming languages now use Tree-sitter parsers.

I think an interesting way to make this "extensible" would be to expose the underlying queries, allowing users to decide exactly what parts of the file is linted.

jdkato avatar Jun 27 '24 05:06 jdkato