Skip to content

Highlighting regular expression %TODO does not work correctly #3398

@betz-michael

Description

@betz-michael

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions