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

            Bug ID: 487932
           Summary: Syntax highlighting breaks if last line is blank
    Classification: Applications
           Product: kate
           Version: 24.02.2
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: ayl...@posteo.net
  Target Milestone: ---

Created attachment 170067
  --> https://bugs.kde.org/attachment.cgi?id=170067&action=edit
Adding and deleting an empty line to/from the end of a file in Kate to make the
bug appear.

SUMMARY
Syntax highlighting breaks if last line is blank or contains only whitespace

STEPS TO REPRODUCE
1.  Open a file that's syntax highlighted
2.  Scroll to the end
3.  Add a new empty line if the last line is not blank

OBSERVED RESULT
Syntax highlighting breaks: functions, etc aren't colored anymore. (See
attachment)

EXPECTED RESULT
Syntax highlighting works even if the last line of the file is empty 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora Linux 40
(available in About System)
KDE Plasma Version:  6.0.5
KDE Frameworks Version:  6.2.0
Qt Version:  6.7.1

ADDITIONAL INFORMATION
Also reproduced on the latest git master branch (as of writing this)

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

Reply via email to