tree-sitter / tree-sitter-haskell

Haskell grammar for tree-sitter.
MIT License
151 stars 35 forks source link

Literate Haskell not supported #125

Open zenzike opened 1 month ago

zenzike commented 1 month ago

It seems that Literate Haskell, as in .lhs files, are not supported. In lhs files, every line is a comment unless the line is prepended with a > symbol, or between lines that say \begin{code} and \end{code}. Additionally, code that should not be compiled but should be highlighted is indicated in a line that starts with <, or between lines that say \begin{spec} and \end{spec}.

ObserverOfTime commented 1 month ago

What you need is a literate-haskell parser with the appropriate haskell injections.