Bug 451400 - Please add proper support for syntax highlighting of the nix language
Summary: Please add proper support for syntax highlighting of the nix language
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-11 15:05 UTC by m.pedramfar
Modified: 2022-04-04 18:54 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 m.pedramfar 2022-03-11 15:05:29 UTC
Following https://bugs.kde.org/show_bug.cgi?id=365006 kate treats .nix files as bash scripts which is not ideal.
Comment 1 Waqar Ahmed 2022-03-12 20:17:20 UTC
Hi,

No one in Kate team uses these files so it's unlikely to get supported soon because no one knows the nix file syntax. However, if someone who uses these files regularly steps up to support it that would be great. No C++ knowledge is required. Maybe you want to help?
Comment 2 Christoph Cullmann 2022-03-13 20:37:15 UTC
Hi,

yes, more highlighting modes are naturally welcome.

But we can't have issues open for all modes that are missing.

If you are interested to help out, even as non-programmer you can provide some patch.

See here for docs:

https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/README.md
Comment 3 m.pedramfar 2022-03-15 18:16:25 UTC
Hi,

Thanks for the fast response and the link! I've started learning Nix recently, so it could take a while before I'm comfortable with submitting a patch for it.
Comment 4 m.pedramfar 2022-04-04 18:54:44 UTC
It looks like the proper syntax highlighting was added a while ago. I just didn't see them since kubuntu package repos are not bleeding edge.

https://kde.org/announcements/frameworks/5/5.88.0/
https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/data/syntax/nix.xml