Bug 365006 - enable nix syntax highlighting
Summary: enable nix syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 3.14.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 14:27 UTC by Joachim Schiele
Modified: 2016-09-06 15:29 UTC (History)
0 users

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


Attachments
highligthing-kate-nix.patch (998 bytes, patch)
2016-07-02 14:28 UTC, Joachim Schiele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Schiele 2016-07-02 14:27:38 UTC
please apply this patch to also have bash syntax highliting for *.nix files.

diff --git a/xml/bash.xml b/xml/bash.xml
index a07de39..07b0562 100644
--- a/xml/bash.xml
+++ b/xml/bash.xml
@@ -8,7 +8,7 @@
         <!ENTITY noword   "(?![\w$+-])">                <!-- no word, $, + or - following -->
         <!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )">     <!-- valid character in a file name -->
 ]>
-<language name="Bash" version="2.17" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="Bash" version="2.17" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile;*.nix" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
 
 <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
     Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)



Reproducible: Always
Comment 1 Joachim Schiele 2016-07-02 14:28:33 UTC
Created attachment 99802 [details]
highligthing-kate-nix.patch
Comment 2 Christoph Cullmann 2016-09-06 15:29:37 UTC
Git commit 3742e3bfa82f317ca7ffb5cf872b45dcc8d629cb by Christoph Cullmann.
Committed on 06/09/2016 at 15:29.
Pushed by cullmann into branch 'master'.

highlight .nix files as bash, guess can't hurt

M  +9    -9    src/syntax/data/bash.xml

http://commits.kde.org/ktexteditor/3742e3bfa82f317ca7ffb5cf872b45dcc8d629cb