Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

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

Open
m4lvin opened this issue Apr 20, 2017 · 2 comments
Open

Comments

@m4lvin
Copy link

m4lvin commented Apr 20, 2017

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
Copy link
Owner

nscaife commented Jun 6, 2017

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
Copy link
Author

m4lvin commented Jun 6, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants