You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to add some more reasoning for why this is needed. Currently the glossaries and glossaries-extra bundles' cwls use the label/ref namespace, e.g. glossaries.cwl contains lines like
\newglossaryentry{label}{keyvals}#l
and
\gls{label}#r
However these commands do not actually use the \label/\ref namespace. The completion files were written this way out of convenience (before my time) but this results in pollution of the autocompleter for both \gls and \ref, among all the other affected commands. This could be fixed with %specialDef, something like
But the glossaries documentation consistently adds new lines after commands like \newglossaryentry. For example in glossaries-user-example001.tex you find
which does not add pi and distance to the gls-label namespace because of the bug reported above. (Ideally there would also be highlighting like for \label/\ref, but that's a separate issue.) So while a user could just write it as
Environment
Expected behavior
It shouldn't matter if a label-generating command has its argument on a new line.
Actual behavior
This is true for commands in LaTeX's label/ref namespace (so
#l
and#r
in cwls) but not for%specialDef
arguments.How to reproduce
Here's an example showing the difference.
The text was updated successfully, but these errors were encountered: