| Summary: | Wrong braces matching with macro \textcolor when syntax highlighting a LaTeX file | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Raphaël Jakse <raphael.kde> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
\textcolor and unbalanced braces
\textcolor and balanced braces |
||
Created attachment 121542 [details]
\textcolor and balanced braces
Looks fixed in master, the highlighted brace is correct See https://bugs.kde.org/415384 *** This bug has been marked as a duplicate of bug 415384 *** |
Created attachment 121541 [details] \textcolor and unbalanced braces SUMMARY Braces are not matched correctly when using \textcolor STEPS TO REPRODUCE 1. In kate, type \textcolor{h}{{} 2. Enable LaTeX syntax highlighting 3. put the cursor on the last brace. OBSERVED RESULT The last brace is matched with the second opening brace. If a closing brace is added to balance braces, the last brace is not matched with any brace. EXPECTED RESULT The last brace should be matched with the third opening brace. If a closing brace is added to balance braces, the last brace should be matched with the second opening brace. SOFTWARE/OS VERSIONS: latest Neon unstable docker image