Bug 439211 - shuf is printed in bold blue. but it is a command like head or tail and not a function
Summary: shuf is printed in bold blue. but it is a command like head or tail and not a...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-27 09:18 UTC by Toralf Förster
Modified: 2021-12-18 18:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2021-06-27 09:18:51 UTC
SUMMARY
syntax highlighting wrong

Gentoo Linux
Comment 1 Christoph Cullmann 2021-07-03 14:52:07 UTC
Hi,

I assume you are talking about some broken syntax highlighting, could you specify which one?
Comment 2 Toralf Förster 2021-07-03 15:21:08 UTC
$ cat << EOF > p.sh
> #!/bin/sh
> date | head
> date | shuf
> EOF

$ kate p.sh 

shows blue "shuf" not in the colour of "head".
Comment 3 Jonathan Poelen 2021-07-09 21:13:53 UTC
Settings -> Configure Kate -> Color Themes -> Highlighting Text Styles -> color of OtherCommand
Comment 4 Toralf Förster 2021-07-10 08:12:13 UTC
(In reply to Jonathan Poelen from comment #3)
> Settings -> Configure Kate -> Color Themes -> Highlighting Text Styles ->
> color of OtherCommand

what makes "shuf" differing from "head", "cp", "mv" or others ???
Comment 5 Jonathan Poelen 2021-07-11 17:44:46 UTC
I would say commands that are found basic on all or almost all Linux distributions or which are frequently used (there is no explanation in the file). Those of GNU Core Utilities for example.

And after verification, shuf is in GNU Core Utilities... '^^
Comment 6 Bug Janitor Service 2021-12-18 02:15:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/282
Comment 7 Christoph Cullmann 2021-12-18 18:32:04 UTC
Git commit 4fee60315b1e204ebc9b1808dad2d0576e3ab7f6 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 18/12/2021 at 18:29.
Pushed by cullmann into branch 'master'.

Bash: more unixcommands (GNU coreutils and some others)

M  +34   -0    data/syntax/bash.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/4fee60315b1e204ebc9b1808dad2d0576e3ab7f6