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

Highlighting regular expression %TODO does not work correctly #3398

Closed
betz-michael opened this issue Dec 3, 2023 · 2 comments
Closed

Highlighting regular expression %TODO does not work correctly #3398

betz-michael opened this issue Dec 3, 2023 · 2 comments

Comments

@betz-michael
Copy link

betz-michael commented Dec 3, 2023

Environment

  • TeXstudio: 4.7.0
  • Qt: 6.6.1
  • OS: Windows 10)
  • TeX distribution: miktex

Expected behavior

With Version 4.6.3 every character after the %TODO key got highlighted for the whole document.

Actual behavior

With Version 4.7.0 just the %TODO key before the \begin{document} command are highlighted.
Commenting out %\begin{document}, saving the file, opening it again, leads to all %TODO keys being highlighted.
The same behaviour occurs with other environment like \begin{figure}. %TODO keys in those environments are not highlighted after opening a .tex file.

Newly added %TODO keys are highlighted in all cases.
Therefore the issue is connected to opening a file.

How to reproduce

Open a .tex-file which contains %TODO keys before and after the \begin{document} or in another environment command.

@betz-michael betz-michael changed the title Highlighting regular expression %TODO Highlighting regular expression %TODO does not work correctly Dec 3, 2023
@sunderme
Copy link
Member

sunderme commented Dec 3, 2023

not reproducible.
please provide a complete example with files and screenshot.

@sunderme
Copy link
Member

sunderme commented Dec 3, 2023

apparently it needs to be a single file 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

2 participants