Bug 365006

Summary: enable nix syntax highlighting
Product: [Applications] kate Reporter: Joachim Schiele <js>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 3.14.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: highligthing-kate-nix.patch

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