Commits

Yevgen Muntyan  committed 471bac1

New lang files from upstream

  • Participants
  • Parent commits 832a27d

Comments (0)

Files changed (3)

File moo/mooedit/langs/Makefile.incl

 	langs/diff.lang			\
 	langs/d.lang			\
 	langs/docbook.lang		\
+	langs/dot.lang			\
 	langs/dpatch.lang		\
 	langs/dtd.lang			\
 	langs/eiffel.lang		\
 	langs/verilog.lang		\
 	langs/vhdl.lang			\
 	langs/xml.lang			\
+	langs/xslt.lang			\
 	langs/yacc.lang
 
 langs1 =				\

File moo/mooedit/langs/dot.lang

+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Author: Paolo Borelli <pborelli@gnome.org>
+ Copyright (C) 2008 Paolo Borelli
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+-->
+<language id="dot" name="Graphviz Dot" version="2.0" _section="Others">
+  <metadata>
+    <property name="mimetypes">text/vnd.graphviz</property>
+    <property name="globs">*.dot;*.gv</property>
+    <property name="line-comment-start">//</property>
+    <property name="block-comment-start">/*</property>
+    <property name="block-comment-end">*/</property>
+  </metadata>
+
+  <styles>
+    <style id="comment" _name="Comment" map-to="def:comment"/>
+    <style id="error" _name="Error" map-to="def:error"/>
+    <style id="keyword" _name="Keyword" map-to="def:keyword"/>
+    <style id="attribute" _name="Attribute name" map-to="def:type"/>
+  </styles>
+
+  <definitions>
+
+    <context id="line-comment" style-ref="comment" end-at-line-end="true">
+      <start>//</start>
+      <include>
+        <context ref="def:in-line-comment"/>
+      </include>
+    </context>
+
+    <context id="block-comment" style-ref="comment">
+      <start>/\*</start>
+      <end>\*/</end>
+      <include>
+        <context ref="def:in-comment"/>
+      </include>
+    </context>
+
+    <context id="close-comment-outside-comment" style-ref="error">
+      <match>\*/(?!\*)</match>
+    </context>
+
+    <context id="keywords" style-ref="keyword">
+      <keyword>digraph</keyword>
+      <keyword>edge</keyword>
+      <keyword>node</keyword>
+      <keyword>subgraph</keyword>
+    </context>
+
+    <context id="attributes" style-ref="attribute">
+      <keyword>arrowhead</keyword>
+      <keyword>arrowsize</keyword>
+      <keyword>arrowtail</keyword>
+      <keyword>bgcolor</keyword>
+      <keyword>center</keyword>
+      <keyword>color</keyword>
+      <keyword>constraint</keyword>
+      <keyword>decorateP</keyword>
+      <keyword>dir</keyword>
+      <keyword>distortion</keyword>
+      <keyword>fillcolor</keyword>
+      <keyword>fontcolor</keyword>
+      <keyword>fontname</keyword>
+      <keyword>fontsize</keyword>
+      <keyword>headclip</keyword>
+      <keyword>headlabel</keyword>
+      <keyword>height</keyword>
+      <keyword>labelangle</keyword>
+      <keyword>labeldistance</keyword>
+      <keyword>labelfontcolor</keyword>
+      <keyword>labelfontname</keyword>
+      <keyword>labelfontsize</keyword>
+      <keyword>label</keyword>
+      <keyword>layers</keyword>
+      <keyword>layer</keyword>
+      <keyword>margin</keyword>
+      <keyword>mclimit</keyword>
+      <keyword>minlen</keyword>
+      <keyword>name</keyword>
+      <keyword>nodesep</keyword>
+      <keyword>nslimit</keyword>
+      <keyword>ordering</keyword>
+      <keyword>orientation</keyword>
+      <keyword>pagedir</keyword>
+      <keyword>page</keyword>
+      <keyword>peripheries</keyword>
+      <keyword>port_label_distance</keyword>
+      <keyword>rankdir</keyword>
+      <keyword>ranksep</keyword>
+      <keyword>rank</keyword>
+      <keyword>ratio</keyword>
+      <keyword>regular</keyword>
+      <keyword>rotate</keyword>
+      <keyword>samehead</keyword>
+      <keyword>sametail</keyword>
+      <keyword>shapefile</keyword>
+      <keyword>shape</keyword>
+      <keyword>sides</keyword>
+      <keyword>size</keyword>
+      <keyword>skew</keyword>
+      <keyword>style</keyword>
+      <keyword>tailclip</keyword>
+      <keyword>taillabel</keyword>
+      <keyword>URL</keyword>
+      <keyword>weight</keyword>
+      <keyword>width</keyword>
+    </context>
+
+    <context id="dot">
+      <include>
+        <context ref="line-comment"/>
+        <context ref="block-comment"/>
+        <context ref="close-comment-outside-comment"/>
+        <context ref="keywords"/>
+        <context ref="attributes"/>
+      </include>
+    </context>
+
+  </definitions>
+
+</language>
+

File moo/mooedit/langs/xslt.lang

+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Author: Paolo Borelli <pborelli@katamail.com>
+ Copyright (C) 2008 Paolo Borelli <pborelli@katamail.com>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+-->
+<language id="xslt" name="XSLT" version="2.0" _section="Markup">
+  <metadata>
+    <property name="mimetypes">application/xslt+xml</property>
+    <property name="globs">*.xsl</property>
+    <property name="block-comment-start">&lt;!--</property>
+    <property name="block-comment-end">--&gt;</property>
+  </metadata>
+
+  <styles>
+    <style id="element" name="Element" map-to="def:keyword"/>
+    <style id="namespace" name="Namespace" map-to="xslt:element"/>
+  </styles>
+
+  <definitions>
+
+    <context id="namespace" style-ref="namespace">
+      <match>(?&lt;!:)xsl:</match>
+    </context>
+
+    <context id="xslt-namespace">
+      <include>
+        <context ref="namespace"/>
+        <context ref="xml:namespace" original="true"/>
+      </include>
+    </context>
+
+    <context id="elements" once-only="true" style-ref="element">
+      <suffix>\b(?!\s*=)</suffix>
+      <keyword>apply-imports</keyword>
+      <keyword>apply-templates</keyword>
+      <keyword>attribute-set</keyword>
+      <keyword>attribute</keyword>
+      <keyword>call-template</keyword>
+      <keyword>choose</keyword>
+      <keyword>comment</keyword>
+      <keyword>copy-of</keyword>
+      <keyword>copy</keyword>
+      <keyword>decimal-format</keyword>
+      <keyword>document</keyword>
+      <keyword>element</keyword>
+      <keyword>fallback</keyword>
+      <keyword>for-each</keyword>
+      <keyword>if</keyword>
+      <keyword>import</keyword>
+      <keyword>include</keyword>
+      <keyword>key</keyword>
+      <keyword>message</keyword>
+      <keyword>namespace-alias</keyword>
+      <keyword>number</keyword>
+      <keyword>otherwise</keyword>
+      <keyword>output</keyword>
+      <keyword>param</keyword>
+      <keyword>preserve-space</keyword>
+      <keyword>processing-instruction</keyword>
+      <keyword>script</keyword>
+      <keyword>sort</keyword>
+      <keyword>strip-space</keyword>
+      <keyword>stylesheet</keyword>
+      <keyword>template</keyword>
+      <keyword>text</keyword>
+      <keyword>transform</keyword>
+      <keyword>value-of</keyword>
+      <keyword>variable</keyword>
+      <keyword>when</keyword>
+      <keyword>with-param</keyword>
+    </context>
+
+    <context id="xslt-tags">
+      <include>
+        <context ref="elements"/>
+        <context ref="xml:element-name" original="true"/>
+      </include>
+    </context>
+
+    <replace id="xml:namespace" ref="xslt-namespace"/>
+    <replace id="xml:element-name" ref="xslt-tags"/>
+
+    <context id="xslt">
+      <include>
+        <context ref="xml:xml"/>
+      </include>
+    </context>
+  </definitions>
+
+</language>