medit/moo/mooedit/syntax/make.lang

85 lines
3.5 KiB
Plaintext
Raw Normal View History

2005-11-08 11:00:32 -08:00
<?xml version="1.0" encoding="UTF-8"?><!-- kate: space-indent on; indent-width 2 -->
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> -->
<!-- Modified by Joseph Wenninger <jowenn@kde.org> -->
<language name="Makefile" version="1.04" section="Others"
extensions="makefile.*;Makefile.*;makefile;Makefile"
mimetypes="text/x-makefile"
author="Per Wigren (wigren@home.se)" license="">
<syntax>
<keyword-list name="keywords">
<keyword>include</keyword>
<keyword>define</keyword>
<keyword>else</keyword>
<keyword>endef</keyword>
<keyword>endif</keyword>
<keyword>if</keyword>
<keyword>ifdef</keyword>
<keyword>ifeq</keyword>
<keyword>ifndef</keyword>
<keyword>ifneq</keyword>
</keyword-list>
<context name="Normal" style="Normal Text" end-of-line-context="#stay">
<Keyword style="Keyword" context="#stay" keyword="keywords"/>
<Regex style="Variable" context="Value" pattern="[_\w\d]*\s*(?=:=|=)"/>
<Regex style="Target" context="#stay" pattern="^\s*[_\w\d-]*\s*:"/>
<Regex style="Section" context="#stay" pattern="^[.].*:"/>
<Char style="String" context="String" char="&quot;"/>
<Regex style="Operator" context="VarFromNormal" pattern="[$][\({]"/>
2005-11-09 08:40:51 -08:00
<AnyChar style="Operator" context="#stay" chars="+*=%$():\\&#059;" />
<Regex style="Operator" context="Commands" pattern="^\s*[@-]"/>
<Regex style="Comment" context="#stay" pattern="#.*$"/>
</context>
<context style="String" end-of-line-context="#pop" name="String">
<!-- <LineContinue style="String" context="#stay"/> -->
<Char style="String" context="#pop" char="&quot;"/>
</context>
<context name="Value" style="String" end-of-line-context="#stay">
<Regex style="Operator" pattern="\\$" context="#stay"/>
<Regex style="String" pattern="[^\\]?$" context="#pop"/>
<Regex style="Operator" pattern="[$][\({]" context="VarFromValue"/>
<Regex style="Special" context="#pop" pattern="@[-_\d\w]*@" />
<Char style="Operator" char="&#059;" context="#pop"/>
</context>
<context name="VarFromValue" style="Variable" end-of-line-context="#stay">
<Regex style="Operator" pattern="[\)}](?=/)" context="#pop"/>
<Regex style="Operator" pattern="[\)}][^$]" context="#pop"/>
<Regex style="Operator" pattern="[\)}]$" context="#pop#pop"/>
</context>
<context name="VarFromNormal" style="Variable" end-of-line-context="#stay">
<Regex style="Operator" pattern="[\)}]" context="#pop"/>
</context>
<context name="Commands" style="Normal Text" end-of-line-context="#pop">
<Regex style="Operator" context="VarFromNormal" pattern="[$][\({]"/>
<Regex style="Commands" context="#pop" pattern="[_\w-]*\b"/>
</context>
</syntax>
<styles>
<style name="Normal Text" default-style="Normal"/>
<style name="Keyword" default-style="Keyword"/>
<style name="Comment" default-style="Comment"/>
<style name="String" default-style="String"/>
<style name="Variable" default-style="DataType"/>
<style name="Target" default-style="Decimal"/>
<style name="Section" default-style="Others"/>
<style name="Operator" default-style="Char"/>
<style name="Commands" default-style="BaseN"/>
<style name="Special" default-style="Float"/>
</styles>
<general>
<comments>
<single-line start="#"/>
</comments>
</general>
</language>