xslthl (2.0.2-4) add_sh.patch

Summary

 highlighters/sh-hl.xml |   78 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

    
download this patch

Patch contents

Description: add sh syntax highlighting
Author: Mathieu Malaterre <mathieu.malaterre@gmail.com>
Last-Update: 2011-11-27
Bug: http://sourceforge.net/tracker/?func=detail&aid=3036514&group_id=153524&atid=788113
Index: xslthl-2.0.2/highlighters/sh-hl.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ xslthl-2.0.2/highlighters/sh-hl.xml	2011-11-27 15:33:22.000000000 +0100
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Syntax highlighting definition for SH
+
+xslthl - XSLT Syntax Highlighting
+http://sourceforge.net/projects/xslthl/
+Copyright (C) 2010 Mathieu Malaterre
+
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
+
+-->
+<highlighters>
+  <highlighter type="oneline-comment">#</highlighter>
+  <highlighter type="heredoc">
+    <start>&lt;&lt;</start>
+    <quote>'</quote>
+    <quote>"</quote>
+    <noWhiteSpace/>
+  </highlighter>
+  <highlighter type="string">
+    <string>"</string>
+    <escape>\</escape>
+  </highlighter>
+  <highlighter type="string">
+    <string>'</string>
+    <escape>\</escape>
+    <spanNewLines/>
+  </highlighter>
+  <highlighter type="hexnumber">
+    <prefix>0x</prefix>
+    <ignoreCase/>
+  </highlighter>
+  <highlighter type="number">
+    <point>.</point>
+    <pointStarts/>
+    <ignoreCase/>
+  </highlighter>
+  <highlighter type="keywords">
+    <keyword>break</keyword>
+    <keyword>cd</keyword>
+    <keyword>chdir</keyword>
+    <keyword>continue</keyword>
+    <keyword>eval</keyword>
+    <keyword>exec</keyword>
+    <keyword>exit</keyword>
+    <keyword>kill</keyword>
+    <keyword>newgrp</keyword>
+    <keyword>pwd</keyword>
+    <keyword>read</keyword>
+    <keyword>readonly</keyword>
+    <keyword>return</keyword>
+    <keyword>shift</keyword>
+    <keyword>test</keyword>
+    <keyword>trap</keyword>
+    <keyword>ulimit</keyword>
+    <keyword>umask</keyword>
+    <keyword>wait</keyword>
+    <keyword>contained</keyword>
+    <keyword>elif</keyword>
+    <keyword>else</keyword>
+    <keyword>then</keyword>
+  </highlighter>
+</highlighters>