Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

underscores in expl3 environment add to completer like subscripts #3919

Open
mbertucci47 opened this issue Dec 21, 2024 · 0 comments
Open

underscores in expl3 environment add to completer like subscripts #3919

mbertucci47 opened this issue Dec 21, 2024 · 0 comments

Comments

@mbertucci47
Copy link
Contributor

Environment

  • TeXstudio: 4.8.6 git
  • Qt: 6.8.1

Expected behavior

In an expl3 environment, the underscore _ is a letter (in the TeX sense). So it shouldn't add suggestions to the completer as if it were a subscript.

Actual behavior

Screenshot 2024-12-21 113811

The expl3 commands like \fp_new_function:n are adding suggestions like \fp_new to the completer, where it thinks \fp is the base command and new is the subscript.

How to reproduce

\documentclass{article}
\begin{document}
\ExplSyntaxOn
\fp_new_function:n { mult }
\fp_set_function:nnn { mult } { a , b } { a*b }
\fp_eval:n { mult ( 3,4 ) }
\ExplSyntaxOff
\fp

\end{document}

Start the completer after \fp.

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

No branches or pull requests

2 participants