Bug 409849

Summary: Wrong braces matching with macro \textcolor when syntax highlighting a LaTeX file
Product: [Applications] kate Reporter: Raphaël Jakse <raphael.kde>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: \textcolor and unbalanced braces
\textcolor and balanced braces

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 ***