Dpatch lang file

master
Yevgen Muntyan 2007-01-05 18:10:10 -06:00
parent 16226e19bc
commit b7dde6c445
2 changed files with 27 additions and 1 deletions

View File

@ -11,7 +11,7 @@ langs="c.lang cpp.lang changelog.lang def.lang
gtkrc.lang haskell.lang idl.lang ini.lang
java.lang octave.lang pascal.lang php.lang
po.lang ruby.lang scheme.lang sql.lang tcl.lang
texinfo.lang gtk-doc.lang dtd.lang"
texinfo.lang gtk-doc.lang dtd.lang dpatch.lang"
styles="gvim.styles kate.styles"

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<language id="dpatch" _name="DPatch" version="2.0" _section="Others">
<metadata>
<property name="mimetypes">text/x-dpatch</property>
<property name="globs">*.dpatch</property>
</metadata>
<styles>
<style id="patch-start" _name="patch-start" map-to="def:keyword"/>
</styles>
<definitions>
<context id="dpatch">
<include>
<context ref="sh:sh"/>
<context id="patch">
<start>^(\@DPATCH\@).*</start>
<include>
<context sub-pattern="1" where="start" style-ref="patch-start"/>
<context ref="diff:diff"/>
</include>
</context>
</include>
</context>
</definitions>
</language>