linter-chktex icon indicating copy to clipboard operation
linter-chktex copied to clipboard

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

Open m4lvin opened this issue 7 years ago • 2 comments

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.

m4lvin avatar Apr 20 '17 11:04 m4lvin

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.

nscaife avatar Jun 06 '17 13:06 nscaife

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?

m4lvin avatar Jun 06 '17 21:06 m4lvin