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.