https://bugs.kde.org/show_bug.cgi?id=449186
Bug ID: 449186 Summary: Extglob patterns break Bash syntax highlighting Product: frameworks-syntax-highlighting Version: 5.90.0 Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: mixosaurus+bugs...@pm.me CC: walter.von.entfer...@posteo.net Target Milestone: --- SUMMARY Extglob patterns break the parsing. Everything following a string expansion with an extglob pattern is highlighted as "string" (in red) or "normal text" (in black). STEPS TO REPRODUCE 1. open a shell file 2. notice highlighting problems OBSERVED RESULT ``` # in quotes "${var#lo+(r)em}" # everything that follows is treated as "string" (red) ``` and ``` # without quotes ${var#lo+(r)em} # everything that follows is treated as "normal text" (black) ``` It happens with all extglob patterns: ?(...), *(...), +(...), @(...), !(...) EXPECTED RESULT The third line in both examples should be treated as a comment (light grey). SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Follow-up on bug #430668. -- You are receiving this mail because: You are watching all bug changes.