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

            Bug ID: 521369
           Summary: Fish language (fish shell's language) syntax
                    highlighting is out of date.
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: syntax
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
When editing a `.fish` file in KWrite, which iirc uses the syntax-highlighting
framework, the highlighting is wrong/out of date. It seems to not consider
valid syntax introduced in newer versions of fish. I have found several issues
so far:

1. commands in "string $(command)"-style command substitution are not
highlighted.
e.g.
```fish
echo "$(git config --global user.name) <$(git config --global user.email)>"
```
https://fishshell.com/docs/current/language.html#command-substitution

2. short-variant --description string, -d is highlighted differently than the
--description variant.
e.g. 
```fish
function __autofetch_recent -a fetch_head --description 'Return success if this
repo was fetched within the refresh interval'
    test -e "$fetch_head"; or return 1
    test (path mtime --relative "$fetch_head" 2>/dev/null) -lt
$__autofetch_interval
end
```
highlights `'Return success if this repo was fetched within the refresh
interval'` in light-red for me, while:
```
function __autofetch_recent -a fetch_head -d 'Return success if this repo was
fetched within the refresh interval'
    test -e "$fetch_head"; or return 1
    test (path mtime --relative "$fetch_head" 2>/dev/null) -lt
$__autofetch_interval
end
```
highlights it in dark-red.
-d for description should be supported according to:
https://fishshell.com/docs/current/cmds/function.html

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 7.0.9-205.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7300HQ CPU @ 2.50GHz
Memory: 24 GiB of RAM (23.3 GiB usable)
Graphics Processor 1: Intel® HD Graphics 630
Graphics Processor 2: NVIDIA GeForce GTX 1050 Ti
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: FX502VE
System Version: 1.0

ADDITIONAL INFORMATION
Fish shell version: 4.6.0 installed through dnf, from repo fedora

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

Reply via email to