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

            Bug ID: 444506
           Summary: Syntax highlighting on nested parentheses is incorrect
           Product: kate
           Version: 21.08.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: postmaster+...@gusted.xyz
  Target Milestone: ---

SUMMARY

The syntax highlighting is incorrect when nested parentheses are present.

STEPS TO REPRODUCE
1. Open up a file that has the `.html` extension type.
2. Paste the following content into the text editor:
```
<!DOCTYPE html>
<html>
  <head>
    <style>
        body {
            background-color: hsl(0, 0%, calc(95% - 3%)) !important;
        }
    </style>
  </head>
  <body>
  </body>
</html>
```
3. Ensure that you have HTML syntax highlighting.

OBSERVED RESULT
`hsl(` is colored purple(breeze dark color scheme). 
The first next following parentheses `3%))` is colored.
                                        ^
EXPECTED RESULT
`hsl(` is colored purple(breeze dark color scheme). 
The correct next following corresponding parentheses `3%))` should be colored.
                                                         ^
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.14.14-arch1-1
(available in About System)
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

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

Reply via email to