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
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/419
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
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