Bug 381396 - [PATCH] Add support for fish shell highlighting
Summary: [PATCH] Add support for fish shell highlighting
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 400151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-19 10:41 UTC by Matthias
Modified: 2019-04-12 20:06 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.58


Attachments
Syntax highlighter (31.89 KB, text/xml)
2018-12-26 16:46 UTC, Christopher Jacobs
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Dominik Haumann 2017-07-21 17:35:12 UTC
It would be helpful, if you could provide a highlighting file.
Comment 2 adr.fantini 2018-06-22 10:04:37 UTC
I would love to have this.
Comment 3 Nibaldo G. 2018-10-29 05:35:28 UTC
*** Bug 400151 has been marked as a duplicate of this bug. ***
Comment 4 Nibaldo G. 2018-10-29 05:40:50 UTC
I'm not an expert on Fish, but, apparently, we can use the Bash highlight for .fish files
Comment 5 Matthias 2018-10-29 16:53:19 UTC
No, since fish is just partly compatible. You can use it as a basement and adjust it.
Comment 6 Christopher Jacobs 2018-12-26 16:46:32 UTC
Created attachment 117123 [details]
Syntax highlighter

I've got a syntax highlighter for Fish that I whipped up some time ago and have been using myself. If people think it could be useful to them, they're welcome to just pop it into their `~/.local/share/org.kde.syntax-highlighting` (or equivalent).

Fair warning. This was part of a larger "project" I was working on to customize a bunch of the default highlighters (mostly as part of an attempt to force myself to learn how they work). So this thing doesn't even really try to match the XML style of other default highlighters. There's definitely some idiosyncratic stuff in there "code"-wise. It highlights just fine, though.
Comment 7 Christoph Cullmann 2019-04-12 19:39:13 UTC
Git commit 0e2d7e61a256d24831fa90ae7de681b4a95fe85f by Christoph Cullmann.
Committed on 12/04/2019 at 19:41.
Pushed by cullmann into branch 'master'.

Add syntax highlighting for fish shell

Summary:

For fish shell version 2.7.1

References
http://fishshell.com/

Reviewers: #framework_syntax_highlighting, dhaumann, cullmann

Reviewed By: #framework_syntax_highlighting, cullmann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: #framework_syntax_highlighting, #kate, #frameworks

Differential Revision: https://phabricator.kde.org/D20233

A  +462  -0    autotests/folding/highlight.fish.fold
A  +469  -0    autotests/html/highlight.fish.html
A  +462  -0    autotests/input/highlight.fish
A  +462  -0    autotests/reference/highlight.fish.ref
A  +1001 -0    data/syntax/fish.xml

https://commits.kde.org/syntax-highlighting/0e2d7e61a256d24831fa90ae7de681b4a95fe85f