summaryrefslogtreecommitdiffstats
path: root/kate/data/makefile.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-07-28 19:12:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-07-28 19:12:40 +0900
commitaa18c1556b6e122f4b414639cf091e1e3848b974 (patch)
treed6e4f87bbb5fe01930418319e474ba923a750dfa /kate/data/makefile.xml
parent1bb6f88d298d1019c0c635dbff197a6a57d16c26 (diff)
downloadtdelibs-aa18c1556b6e122f4b414639cf091e1e3848b974.tar.gz
tdelibs-aa18c1556b6e122f4b414639cf091e1e3848b974.zip
Kate syntax highlighting files update - Jul 2014
Diffstat (limited to 'kate/data/makefile.xml')
-rw-r--r--kate/data/makefile.xml18
1 files changed, 13 insertions, 5 deletions
diff --git a/kate/data/makefile.xml b/kate/data/makefile.xml
index 573359208..e25376dd9 100644
--- a/kate/data/makefile.xml
+++ b/kate/data/makefile.xml
@@ -5,8 +5,10 @@
<!-- Modified by Rui Santana <santana.rui@gmail.com> -->
<!-- v2.0 by Andreas Nordal <andreas.nordal@gmail.com> -->
<!-- small priority to allow for example Makefile.cpp to be detected as cpp file -->
+<!-- v2.1 by Alex Turbov <i.zaufi@gmail.com>
+ improve comments handling -->
<language name="Makefile" section="Other"
- version="2.0" kateversion="2.4"
+ version="2.1" kateversion="2.4"
extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk"
mimetype="text/x-makefile"
author="Per Wigren (wigren@home.se)" license="">
@@ -64,7 +66,7 @@
<contexts>
<context name="normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<RegExpr attribute="Variable" context="assign" String="[^\s:+?]*\s*(?=:=|=|\+=|\?=)"/>
<RegExpr attribute="Section" context="prereq" String="^\.[^.][^:]*:"/>
@@ -85,7 +87,7 @@
<DetectChar attribute="Operator" context="dollar" char="$"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
</context>
<context name="rule" attribute="Normal" lineEndContext="#stay">
@@ -102,7 +104,7 @@
<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="#.*$"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
</context>
<context name="silent" attribute="Silent" lineEndContext="#pop">
@@ -114,7 +116,7 @@
<DetectChar attribute="Operator" context="dollar" char="$"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
</context>
<context name="string&quot;" attribute="String" lineEndContext="#pop">
@@ -182,6 +184,12 @@
<DetectChar attribute="String" context="string'" char="'"/>
</context>
+ <context attribute="Comment" lineEndContext="#pop" name="Comment">
+ <LineContinue attribute="Comment" context="#stay" />
+ <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Modelines" />
+ </context>
+
</contexts>
<itemDatas>
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/>