Bug 463890 - Add syntax highlighting for Haskell cabal files
Summary: Add syntax highlighting for Haskell cabal files
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-05 18:12 UTC by hololeap
Modified: 2023-01-14 19:01 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hololeap 2023-01-05 18:12:33 UTC
Cabal files are description files for Haskell packages using the Cabal library/executable. Syntax highlighting is available for other text editors and should be available for KDE applications as well. This would also allow haskell-language-server to be used on .cabal files in kate.

Vim (the first is for .cabal files, the others are for related file types):
- https://github.com/vim/vim/blob/master/runtime/syntax/cabal.vim
- https://github.com/vim/vim/blob/master/runtime/syntax/cabalconfig.vim
- https://github.com/vim/vim/blob/master/runtime/syntax/cabalproject.vim

Atom:
- https://github.com/atom-haskell/language-haskell/blob/master/grammars/cabal.cson

VSCode:
- https://github.com/JustusAdam/language-haskell/blob/master/syntaxes/cabal.YAML-tmLanguage

Official documentation:
- https://cabal.readthedocs.io/en/stable/cabal-package.html#package-descriptions
Comment 1 Bug Janitor Service 2023-01-08 23:59:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/419
Comment 2 Christoph Cullmann 2023-01-12 20:08:00 UTC
Git commit a7b12583cb945b0181757af8b6502c1d237feb36 by Christoph Cullmann, on behalf of jonathan poelen.
Committed on 12/01/2023 at 20:07.
Pushed by cullmann into branch 'master'.

Add Cabal syntax

A  +54   -0    autotests/folding/highlight.cabal.fold
A  +61   -0    autotests/html/highlight.cabal.dark.html
A  +61   -0    autotests/html/highlight.cabal.html
A  +54   -0    autotests/input/highlight.cabal
A  +54   -0    autotests/reference/highlight.cabal.ref
A  +398  -0    data/syntax/cabal.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/a7b12583cb945b0181757af8b6502c1d237feb36
Comment 3 Christoph Cullmann 2023-01-14 19:01:15 UTC
Git commit 4b6ac2c38e8d4b50833e3ccbe9ad6046fe7fe618 by Christoph Cullmann, on behalf of jonathan poelen.
Committed on 14/01/2023 at 19:01.
Pushed by cullmann into branch 'kf5'.

Add Cabal syntax

A  +54   -0    autotests/folding/highlight.cabal.fold
A  +61   -0    autotests/html/highlight.cabal.dark.html
A  +61   -0    autotests/html/highlight.cabal.html
A  +54   -0    autotests/input/highlight.cabal
A  +54   -0    autotests/reference/highlight.cabal.ref
A  +398  -0    data/syntax/cabal.xml

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