summaryrefslogtreecommitdiffstats
path: root/kate/data/makefile.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-03-03 00:41:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-03-03 00:41:25 +0900
commitbb647dca1516a45ce18f2e040bd20528f588e2fe (patch)
tree0fe5d9a19e884335a14fdf9741f772b2474df43e /kate/data/makefile.xml
parenta7e4c6b5e7916d924c2a9b75a10e427b556b8d65 (diff)
downloadtdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.tar.gz
tdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.zip
Kate syntax highlighting files update - Feb 2014
Diffstat (limited to 'kate/data/makefile.xml')
-rw-r--r--kate/data/makefile.xml11
1 files changed, 6 insertions, 5 deletions
diff --git a/kate/data/makefile.xml b/kate/data/makefile.xml
index cf4a12ded..573359208 100644
--- a/kate/data/makefile.xml
+++ b/kate/data/makefile.xml
@@ -6,8 +6,8 @@
<!-- v2.0 by Andreas Nordal <andreas.nordal@gmail.com> -->
<!-- small priority to allow for example Makefile.cpp to be detected as cpp file -->
<language name="Makefile" section="Other"
- version="2.01" kateversion="2.5"
- extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*"
+ version="2.0" kateversion="2.4"
+ extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk"
mimetype="text/x-makefile"
author="Per Wigren (wigren@home.se)" license="">
<highlighting>
@@ -64,10 +64,11 @@
<contexts>
<context name="normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces/>
+ <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<RegExpr attribute="Variable" context="assign" String="[^\s:+?]*\s*(?=:=|=|\+=|\?=)"/>
- <RegExpr attribute="Section" context="prereq" String="^[.].*:"/>
- <RegExpr attribute="Target" context="prereq" String="^.*:"/>
+ <RegExpr attribute="Section" context="prereq" String="^\.[^.][^:]*:"/>
+ <RegExpr attribute="Target" context="prereq" String="^[^:]*:"/>
<DetectIdentifier/>
<DetectChar attribute="String" context="string&quot;" char="&quot;"/>
<DetectChar attribute="String" context="string'" char="'"/>
@@ -75,12 +76,12 @@
<Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
<AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
</context>
<context name="prereq" attribute="Prereq" lineEndContext="rule">
<DetectSpaces/>
<DetectIdentifier/>
+ <LineContinue attribute="Operator" context="#stay"/>
<DetectChar attribute="Operator" context="dollar" char="$"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>