Dpatch lang file
parent
16226e19bc
commit
b7dde6c445
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue