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

            Bug ID: 473471
           Summary: Syntax highlighting broke after the `${!}` expansion
                    for Bash scripts
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
           Version: 5.92.0
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: buo.ren....@gmail.com
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

Created attachment 161018
  --> https://bugs.kde.org/attachment.cgi?id=161018&action=edit
Example script for bug reroduction

SUMMARY

The exclamation mark (!) is a special parameter that will "expands to the
process ID of the job most recently placed into the background, whether
executed as an asynchronous command or using the bg builtin" according to the
Bash manual, however currently when encountering the `"${!}"` (opening
double-quote, dollar sign, opening curly braces, exclamation mark, closing
curly braces, closing double-quote) character sequence all text are highlight
as red until the next occurrence of `"${!}"`.

Expansion without the curly braces pair,(`$!`), however, does not reproduce
such problem.

STEPS TO REPRODUCE
1. Download attached reproducing script
2. Open the script with Kate, etc.
3. Profit.

OBSERVED RESULT

Text between two `"${!}"`s is highlighted red.

EXPECTED RESULT

Text between two `"${!}"`s shouldn't be highlighted red.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 22.04LTS
KDE Frameworks Version: 5.92.0 (also reproduced in 5.105.0 snap)
Qt Version: 5.15.3 (also reproduced in 5.105.9 snap)

ADDITIONAL INFORMATION

Also reproduced with the definition file of commit ca42b1ed.

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

Reply via email to