Reverted alert style definition for Kate's syntax highlighting. This resolves bug 2050.

pull/16/head
Michele Calgaro 11 years ago
parent 1afbea2c25
commit 0290dbaf6c

@ -25,54 +25,37 @@
This file is included in every file that highlights the "alerts" keywords. This file is included in every file that highlights the "alerts" keywords.
That's why extensions and mimetype are empty. That's why extensions and mimetype are empty.
Changes by Alex Turbov:
Introduce 3 alert levels and sort keywords according importance.
Few more keywords has been added.
--> -->
<language version="1.09-1" kateversion="2.3" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true"> <language version="1.09-2" kateversion="2.3" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
<highlighting> <highlighting>
<list name="alerts_hi"> <list name="alerts">
<item> ### </item>
<item> ALERT </item> <item> ALERT </item>
<item> ATTENTION </item>
<item> DANGER </item>
<item> HACK </item>
<item> SECURITY </item>
</list>
<list name="alerts_mid">
<item> BUG </item> <item> BUG </item>
<item> FIXME </item> <item> DANGER </item>
<item> DEPRECATED </item> <item> DEPRECATED </item>
<item> TASK </item> <item> FIXME </item>
<item> TODO </item> <item> HACK </item>
<item> TBD </item>
<item> WARNING </item>
<item> CAUTION </item>
<item> NOLINT </item>
</list>
<list name="alerts_lo">
<item> ### </item>
<item> NOTE </item> <item> NOTE </item>
<item> NOTICE </item> <item> NOTICE </item>
<item> SECURITY </item>
<item> TASK </item>
<item> TEST </item> <item> TEST </item>
<item> TESTING </item> <item> TESTING </item>
<item> TODO </item>
<item> WARNING </item>
</list> </list>
<contexts> <contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" > <context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<keyword attribute="Alert Level 1" context="#stay" String="alerts_hi" /> <keyword attribute="Alert" context="#stay" String="alerts" />
<keyword attribute="Alert Level 2" context="#stay" String="alerts_mid" />
<keyword attribute="Alert Level 3" context="#stay" String="alerts_lo" />
</context> </context>
</contexts> </contexts>
<itemDatas> <itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/> <itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Alert Level 1" defStyleNum="dsAlert" color="#e85848" selColor="#e85848" backgroundColor="#451e1a" /> <itemData name="Alert" defStyleNum="dsAlert"/>
<itemData name="Alert Level 2" defStyleNum="dsAlert" color="#ca9219" selColor="#ca9219" backgroundColor="#451e1a" />
<itemData name="Alert Level 3" defStyleNum="dsAlert" color="#81ca2d" selColor="#81ca2d" />
</itemDatas> </itemDatas>
</highlighting> </highlighting>
<general> <general>
<keywords casesensitive="1"/> <keywords casesensitive="1"/>
</general> </general>
</language> </language>
<!-- kate: indent-width 2; -->

@ -7,7 +7,7 @@
<Definition name="AHDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahdl.xml" version="1.04"/> <Definition name="AHDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahdl.xml" version="1.04"/>
<Definition name="AutoHotKey" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahk.xml" version="1.0"/> <Definition name="AutoHotKey" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahk.xml" version="1.0"/>
<Definition name="Alerts_indent" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert_indent.xml" version="1.09-1"/> <Definition name="Alerts_indent" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert_indent.xml" version="1.09-1"/>
<Definition name="Alerts" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert.xml" version="1.09-1"/> <Definition name="Alerts" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert.xml" version="1.09-2"/>
<Definition name="AMPLE" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ample.xml" version="0.2"/> <Definition name="AMPLE" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ample.xml" version="0.2"/>
<Definition name="ANSI C89" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansic89.xml" version="1.10-1"/> <Definition name="ANSI C89" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansic89.xml" version="1.10-1"/>
<Definition name="Ansys" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansys.xml" version="1.2"/> <Definition name="Ansys" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansys.xml" version="1.2"/>

Loading…
Cancel
Save