nscaife / linter-chktex

An Atom Linter plugin for LaTeX, using chktex
https://atom.io/packages/linter-chktex
MIT License
14 stars 10 forks source link

check LaTeX parts in other file types, for example Literate Haskell (.lhs) #37

Open m4lvin opened 7 years ago

m4lvin commented 7 years ago

Is there a way to run chktex on .lhs files which contain LaTeX? Currently the chktex linter is only available when the current file is named .tex.

nscaife commented 7 years ago

This runs on the following grammar scopes:

grammarScopes: ['text.tex.latex', 'text.tex.latex.beamer', 'text.tex.latex.memoir', 'text.tex.latex.knitr']

If you know the correct scope to add for Literate Haskell (and chktex works on it), I am happy to add it.

m4lvin commented 7 years ago

The scope seems to be text.tex.latex.haskell. However, after adding this to grammarScopes, a lot of errors in the code environments are marked, so apparently chktex is not compatible with literate haskell files. Or is there a away to ignore certain environments?