https://bugs.kde.org/show_bug.cgi?id=418979

            Bug ID: 418979
           Summary: Wrong LaTeX syntax highlighting after braces in
                    optional argument of \cite
           Product: kate
           Version: 19.04.3
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: m...@ranocha.de
  Target Milestone: ---

Created attachment 126863
  --> https://bugs.kde.org/attachment.cgi?id=126863&action=edit
Screenshot of the wrong highlighting.

SUMMARY
If a cite command with () inside the optional argument
is used, all text is highlighted thereafter.

STEPS TO REPRODUCE
1. Open a new document.
2. Enable LaTeX syntax highlighting (Tools->Highlighting->Markup->LaTeX).
3. Add the following text.
    Text should be black.
    \cite[eq. 1.1]{some_reference}
    After a reference without braces inside [...],
    everything is fine.
    \cite[eq. (1.1)]{some_reference}
    Now, the text goes on in orange forever...

OBSERVED RESULT
"(1.1)]{some_reference}" and "Now, the text goes on in orange forever..."
are highlighted in orange.

EXPECTED RESULT
"(1.1)]{some_reference}" and "Now, the text goes on in orange forever..."
are not highlighted.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to