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

incorrect math highlighting with linebreaks in %formula args #2738

Closed
mbertucci47 opened this issue Dec 7, 2022 · 0 comments
Closed

incorrect math highlighting with linebreaks in %formula args #2738

mbertucci47 opened this issue Dec 7, 2022 · 0 comments

Comments

@mbertucci47
Copy link
Contributor

Environment

  • TeXstudio: 4.4.1
  • Qt: 6.4.1
  • OS: Windows 10
  • TeX distribution: miktex

Expected behavior

Math commands should be recognized in arguments whose cwl entry is of the form {formula} or {arg%formula}.

Actual behavior

If the argument contains a linebreak, then math commands in args of other commands are not recognized, e.g.

Screenshot 2022-12-06 172155

How to reproduce

Source of example:

\documentclass{article}

\begin{document}

\ensuremath{\alpha\sqrt{\alpha}}

\ensuremath{\alpha\sqrt{\alpha}
}

\ensuremath{
\alpha
\sqrt{\alpha}
}

\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant