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

            Bug ID: 387915
           Summary: Bash highlighting breaks when using \{ \} with =~
                    regular exp.
           Product: kate
           Version: 16.08
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: jimmyoh...@gmail.com
  Target Milestone: ---

Created attachment 109381
  --> https://bugs.kde.org/attachment.cgi?id=109381&action=edit
The script.

Version 16.08.2
KDE Frameworks 5.26.0
Qt 5.6.1
Opensuse 42.2.20170721


I've written a bash script to convert .sub to .vtt Subtitle files.
The script works perfectly.
This line screws up highlighting 

[[ $line_name =~ \{([0-9]{1,})\}\{([0-9]{1,})\}(.*) ]]

>From here down, Highlighting is broken.

This line reads "{123}{128}Some Subtitle text."
it's the \{ \} escapes that mess it up.

Also, I've noticed that it doesn't correctly highlight a line like this.

[[ $name =~ (.*)_(S[0-9]{2})(E[0-9]{2,3}[a-z]{0,1})_(.*) ]]

All good until {2} then all blue to the )_( near the end.
This does not break highlighting in the rest of the file.

I'm new to this, So be kind ;)

Jim

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

Reply via email to