Bug 409849 - Wrong braces matching with macro \textcolor when syntax highlighting a LaTeX file
Summary: Wrong braces matching with macro \textcolor when syntax highlighting a LaTeX ...
Status: RESOLVED DUPLICATE of bug 415384
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-16 07:53 UTC by Raphaël Jakse
Modified: 2020-05-04 17:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
\textcolor and unbalanced braces (5.02 KB, image/png)
2019-07-16 07:53 UTC, Raphaël Jakse
Details
\textcolor and balanced braces (4.96 KB, image/png)
2019-07-16 07:54 UTC, Raphaël Jakse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2019-07-16 07:53:49 UTC
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
Comment 1 Raphaël Jakse 2019-07-16 07:54:17 UTC
Created attachment 121542 [details]
\textcolor and balanced braces
Comment 2 Christophe Marin 2020-05-04 17:06:27 UTC
Looks fixed in master, the highlighted brace is correct

See https://bugs.kde.org/415384
Comment 3 Christophe Marin 2020-05-04 17:32:07 UTC

*** This bug has been marked as a duplicate of bug 415384 ***