astoff / digestif

A language server for TeX and friends
Other
251 stars 6 forks source link

ConTeXt environment-style section defintions don’t result in TOC entries #44

Closed flying-sheep closed 2 years ago

flying-sheep commented 2 years ago

Example document:

\section{a}
\startsection[title={b}]
\stopsection

This should result in a TOC entry for both a and b with the same section_level but I only see a

astoff commented 2 years ago

I've pushed a fix. It has the side-effect that all start/stop commands are now treated as ordinary commands, e.g. they are available for completion. This seems all right to me but may have undesirable consequences. Let me know if you find any.

flying-sheep commented 2 years ago

Awesome! This indeed fixes it.

I think autocompleting \start* commands is a very nice thing, what kind of consequences do you expect?

astoff commented 2 years ago

Nothing in particular, I just mentioned it because I don't use ConTeXt very often.