Diffstat (limited to 'share/tinykate/syntax/makefile.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/makefile.xml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/share/tinykate/syntax/makefile.xml b/share/tinykate/syntax/makefile.xml new file mode 100644 index 0000000..2abeca7 --- a/dev/null +++ b/share/tinykate/syntax/makefile.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> --> +<language name="Makefile" section="Other" extensions="" mimetype="text/x-makefile"> + <highlighting> + <list name = "keywords"> + <item> include </item> + <item> define </item> + <item> else </item> + <item> endef </item> + <item> endif </item> + <item> ifdef </item> + <item> ifeq </item> + <item> ifndef </item> + <item> ifneq </item> + </list> + + <contexts> + <context name="Normal" attribute="Normal Text" lineEndContext="0"> + <HlCStringChar attribute="Normal Text" lineEndContext="0"/> + <keyword String="keywords" attribute="Keyword" context="0"/> + <RegExpr String="#.*$" attribute="Comment" context="0"/> + <RegExpr String="(^|;)\s*\S+\s*=" attribute="Variable" context="1"/> + <RegExpr String="^.*:" attribute="Section" context="0"/> + <RegExpr attribute="Operator" String="\$\(" context="4"/> + <RegExpr attribute="Operator" String="\$\{" context="5"/> + <RegExpr String="[+*/=%$():;\\]" attribute="Operator" context="0"/> + </context> + + <context name="Value" attribute="String" lineEndContext="1"> + <HlCStringChar attribute="String Char" context="1"/> + <RegExpr attribute="Operator" String="\\$" context="1"/> + <RegExpr attribute="String" String="[^\\]?$" context="0"/> + <RegExpr attribute="Operator" String="\$\(" context="2"/> + <RegExpr attribute="Operator" String="\$\{" context="3"/> + <RegExpr attribute="Operator" String=";" context="0"/> + </context> + + <context name="ParanVarFromValue" attribute="Variable" lineEndContext="2"> + <HlCStringChar attribute="Variable" context="2"/> + <RegExpr attribute="Operator" String="\)[^$]" context="1"/> + <RegExpr attribute="Operator" String="\)$" context="0"/> + </context> + + <context name="BrackVarFromValue" attribute="Variable" lineEndContext="3"> + <HlCStringChar attribute="Variable" context="3"/> + <RegExpr attribute="Operator" String="\}[^$]" context="1"/> + <RegExpr attribute="Operator" String="\}$" context="0"/> + </context> + + <context name="ParanVarFromNormal" attribute="Variable" lineEndContext="4"> + <HlCChar attribute="Variable" context="4"/> + <RegExpr attribute="Operator" String="\)" context="0"/> + </context> + + <context name="BrackVarFromNormal" attribute="Variable" lineEndContext="5"> + <HlCChar attribute="Variable" context="5"/> + <RegExpr attribute="Operator" String="\}" context="0"/> + </context> + + </contexts> + + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Keyword" defStyleNum="dsKeyword"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="String Char" defStyleNum="dsChar"/> + <itemData name="Variable" defStyleNum="dsDataType"/> + <itemData name="Section" defStyleNum="dsOthers"/> + <itemData name="Operator" defStyleNum="dsChar"/> + </itemDatas> + </highlighting> + + <general> + <comments> + <comment name = "singleLine" start = "#"/> + </comments> + <keywords casesensitive = "1" /> + </general> +</language> |