latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.55k stars 53 forks source link

Thmtool's \declaretheorem should also accept list of environment names #1075

Closed jdujava closed 6 months ago

jdujava commented 6 months ago

The command \declaretheorem should accept comma separated list of environment names, see end of page 3 of the thmtools documentation https://mirrors.nic.cz/tex-archive/macros/latex/contrib/thmtools/doc/thmtools-manual.pdf#page=3.

As of now, for example a following code snippet

\declaretheorem[sibling=table, style=thmbox]{definition, theorem, lemma, corollary, proposition}

results in errors Expecting a curly bracket: "}" and Unexpected "}".

Also, the treesitter isn't handling it properly, should I raise a separate issue, or is this enough?

pfoerster commented 6 months ago

Also, the treesitter isn't handling it properly, should I raise a separate issue, or is this enough?

tree-sitter-latex is now up to date: https://github.com/latex-lsp/tree-sitter-latex/pull/121