summaryrefslogtreecommitdiffstats
path: root/kate/data/gettext.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/gettext.xml
parenta7e4c6b5e7916d924c2a9b75a10e427b556b8d65 (diff)
downloadtdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.tar.gz
tdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.zip
Kate syntax highlighting files update - Feb 2014
Diffstat (limited to 'kate/data/gettext.xml')
-rw-r--r--kate/data/gettext.xml102
1 files changed, 73 insertions, 29 deletions
diff --git a/kate/data/gettext.xml b/kate/data/gettext.xml
index f2121fec3..95ef695d8 100644
--- a/kate/data/gettext.xml
+++ b/kate/data/gettext.xml
@@ -6,7 +6,7 @@
Copyright 2004, Dominik Haumann <dhdev@gmx.de>
Copyright 2008, Chusslove Illich <caslav.ilic@gmx.net>
- Last change: 2008-01-30
+ Last change: 2008-12-03
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -23,41 +23,63 @@
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
-->
-<language name="GNU Gettext" version="2.01" kateversion="2.5" section="Markup" extensions="*.po;*.pot" mimetype="text/x-gettext-translation" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
+<language name="GNU Gettext" version="2.00-1" kateversion="2.4" section="Markup" extensions="*.po;*.pot" mimetype="text/x-gettext-translation" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<highlighting>
<contexts>
<context name = "Normal" attribute = "Normal Text" lineEndContext="#stay">
<RegExpr attribute = "Keyword" String = "^(msgid_plural|msgid|msgstr|msgctxt)" context="#stay"/>
- <RegExpr attribute = "Automatic Comment" String = "#\..*$" context="#stay" firstNonSpace="true"/>
- <RegExpr attribute = "Reference" String = "#:.*$" context="#stay" firstNonSpace="true"/>
+ <StringDetect attribute = "Automatic Comment" String = "#." context="AutomaticComment" firstNonSpace="true"/>
+ <StringDetect attribute = "Reference" String = "#:" context="References" firstNonSpace="true"/>
<StringDetect attribute = "Flag" String = "#," context="Flags" firstNonSpace="true"/>
<StringDetect attribute = "StringPrevious" String = "#|" context="Previous" firstNonSpace="true"/>
- <RegExpr attribute = "Translator Comment" String = "#.*$" context="#stay" firstNonSpace="true"/>
+ <StringDetect attribute = "Translator Comment" String = "#" context="TranslatorComment" firstNonSpace="true"/>
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<DetectChar attribute = "String" char="&quot;" context="String"/>
<RegExpr attribute = "Index" String="\[\d+\]" context="#stay"/>
</context>
- <!--
- Make fuzzy-flag stand out from the rest, being the most important.
- -->
+ <context name = "TranslatorComment" attribute = "Translator Comment" lineEndContext="#pop">
+ <StringDetect attribute = "StringDiffNewWrapComment" String="{+" context="StringDiffNewComment"/>
+ <StringDetect attribute = "StringDiffOldWrapComment" String="{-" context="StringDiffOldComment"/>
+ </context>
+ <context name = "AutomaticComment" attribute = "Automatic Comment" lineEndContext="#pop">
+ <StringDetect attribute = "StringDiffNewWrapComment" String="{+" context="StringDiffNewComment"/>
+ <StringDetect attribute = "StringDiffOldWrapComment" String="{-" context="StringDiffOldComment"/>
+ </context>
+ <context name = "References" attribute = "Reference" lineEndContext="#pop">
+ <StringDetect attribute = "StringDiffNewWrapComment" String="{+" context="StringDiffNewComment"/>
+ <StringDetect attribute = "StringDiffOldWrapComment" String="{-" context="StringDiffOldComment"/>
+ </context>
<context name = "Flags" attribute = "Flag" lineEndContext="#pop">
- <StringDetect attribute = "FlagFuzzy" String="fuzzy" context="#stay"/>
+ <!-- Make fuzzy-flag stand out from the rest, being the most important. -->
+ <StringDetect attribute = "FlagFuzzy" String="fuzzy" context="#stay"/>
+ <StringDetect attribute = "StringDiffNewWrapComment" String="{+" context="StringDiffNewComment"/>
+ <StringDetect attribute = "StringDiffOldWrapComment" String="{-" context="StringDiffOldComment"/>
+ </context>
+ <context name = "StringDiffNewComment" attribute = "StringDiffNewComment" lineEndContext="#pop">
+ <StringDetect attribute = "StringDiffNewWrapComment" String="+}" context="#pop"/>
+ </context>
+ <context name = "StringDiffOldComment" attribute = "StringDiffOldComment" lineEndContext="#pop">
+ <StringDetect attribute = "StringDiffOldWrapComment" String="-}" context="#pop"/>
</context>
<!--
Tag-context should be carried over if split by string continuation,
- to not loose markup highlighting when that happens.
+ to not lose markup highlighting when that happens.
-->
<context name = "String" attribute = "String" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<RegExpr attribute = "Entity" String="&amp;([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/>
+ <StringDetect attribute = "StringDiffNewWrap" String="{+" context="StringDiffNew"/>
+ <StringDetect attribute = "StringDiffOldWrap" String="{-" context="StringDiffOld"/>
<DetectChar attribute = "StringTag" char="&lt;" context="StringTag"/>
<DetectChar attribute = "String" char="&quot;" context="StringWrap"/>
</context>
<context name = "StringTag" attribute = "StringTag" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
+ <StringDetect attribute = "StringDiffNewWrap" String="{+" context="StringDiffNew"/>
+ <StringDetect attribute = "StringDiffOldWrap" String="{-" context="StringDiffOld"/>
<DetectChar attribute = "StringTag" char="&gt;" context="#pop"/>
<DetectChar attribute = "String" char="&quot;" context="StringWrapSub"/>
</context>
@@ -65,6 +87,16 @@
<DetectChar attribute = "String" char="&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop"/>
</context>
+ <context name = "StringDiffNew" attribute = "StringDiffNew" lineEndContext="#stay">
+ <RegExpr attribute = "Char" String="\\." context="#stay"/>
+ <StringDetect attribute = "StringDiffNewWrap" String="+}" context="#pop"/>
+ <DetectChar attribute = "String" char="&quot;" context="StringWrapSub"/>
+ </context>
+ <context name = "StringDiffOld" attribute = "StringDiffOld" lineEndContext="#stay">
+ <RegExpr attribute = "Char" String="\\." context="#stay"/>
+ <StringDetect attribute = "StringDiffOldWrap" String="-}" context="#pop"/>
+ <DetectChar attribute = "String" char="&quot;" context="StringWrapSub"/>
+ </context>
<context name = "StringWrapSub" lineEndContext="#stay">
<DetectChar attribute = "String" char="&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop#pop"/>
@@ -77,33 +109,34 @@
which are not Gettext standard, but some tools can produce them.
-->
<context name = "Previous" attribute = "Normal Text" lineEndContext="#pop">
- <RegExpr attribute = "KeywordPrevious" String = "(msgctxt|msgid_plural|msgid)" context="#stay"/>
+ <RegExpr attribute = "KeywordPrevious" String = "(msgctxt|msgid_plural|msgid|msgstr)" context="#stay"/>
<RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringPrevious"/>
+ <RegExpr attribute = "IndexPrevious" String="\[\d+\]" context="#stay"/>
</context>
<context name = "StringPrevious" attribute = "StringPrevious" lineEndContext="#stay">
<RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
<RegExpr attribute = "EntityPrevious" String="&amp;([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/>
- <StringDetect attribute = "StringDiffNew" String="{+" context="StringDiffNew"/>
- <StringDetect attribute = "StringDiffOld" String="{-" context="StringDiffOld"/>
+ <StringDetect attribute = "StringDiffNewWrapPrevious" String="{+" context="StringDiffNewPrevious"/>
+ <StringDetect attribute = "StringDiffOldWrapPrevious" String="{-" context="StringDiffOldPrevious"/>
<DetectChar attribute = "StringTagPrevious" char="&lt;" context="StringTagPrevious"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapPrevious"/>
</context>
<context name = "StringTagPrevious" attribute = "StringTagPrevious" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
- <StringDetect attribute = "StringDiffNew" String="{+" context="StringDiffNew"/>
- <StringDetect attribute = "StringDiffOld" String="{-" context="StringDiffOld"/>
+ <StringDetect attribute = "StringDiffNewWrapPrevious" String="{+" context="StringDiffNewPrevious"/>
+ <StringDetect attribute = "StringDiffOldWrapPrevious" String="{-" context="StringDiffOldPrevious"/>
<DetectChar attribute = "StringTagPrevious" char="&gt;" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
- <context name = "StringDiffNew" attribute = "StringDiffNew" lineEndContext="#stay">
- <RegExpr attribute = "Char" String="\\." context="#stay"/>
- <StringDetect attribute = "StringDiffNew" String="+}" context="#pop"/>
+ <context name = "StringDiffNewPrevious" attribute = "StringDiffNewPrevious" lineEndContext="#stay">
+ <RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
+ <StringDetect attribute = "StringDiffNewWrapPrevious" String="+}" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
- <context name = "StringDiffOld" attribute = "StringDiffOld" lineEndContext="#stay">
- <RegExpr attribute = "Char" String="\\." context="#stay"/>
- <StringDetect attribute = "StringDiffOld" String="-}" context="#pop"/>
+ <context name = "StringDiffOldPrevious" attribute = "StringDiffOldPrevious" lineEndContext="#stay">
+ <RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
+ <StringDetect attribute = "StringDiffOldWrapPrevious" String="-}" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
<context name = "StringWrapPrevious" lineEndContext="#stay">
@@ -119,25 +152,36 @@
</contexts>
<itemDatas>
- <itemData name = "Normal Text" defStyleNum ="dsNormal"/>
- <itemData name = "Keyword" defStyleNum ="dsKeyword"/>
+ <itemData name = "Normal Text" defStyleNum ="dsNormal" color="#000000"/>
+ <itemData name = "Keyword" defStyleNum ="dsKeyword" color="#000000"/>
<itemData name = "KeywordPrevious" defStyleNum ="dsKeyword" italic="true" color="#006060"/>
<itemData name = "String" defStyleNum ="dsString" color="#ff0000"/>
<itemData name = "StringPrevious" defStyleNum ="dsString" italic="true" color="#008080"/>
- <itemData name = "Translator Comment" defStyleNum ="dsComment"/>
+ <itemData name = "Translator Comment" defStyleNum ="dsComment" color="#888888"/>
<itemData name = "Automatic Comment" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "Reference" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "Flag" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "FlagFuzzy" defStyleNum ="dsComment" color="#800080" bold="true"/>
- <itemData name = "Char" defStyleNum ="dsChar"/>
+ <itemData name = "Char" defStyleNum ="dsChar" color="#ff00ff"/>
<itemData name = "CharPrevious" defStyleNum ="dsChar" italic="true" color="#00c040"/>
<itemData name = "Entity" defStyleNum ="dsString" color="#ff0040" bold="true"/>
<itemData name = "EntityPrevious" defStyleNum ="dsString" color="#40c080" bold="true" italic="true"/>
<itemData name = "StringTag" defStyleNum ="dsString" color="#c00000" bold="true"/>
- <itemData name = "StringTagPrevious" defStyleNum ="dsString" color="#006060" bold="true"/>
- <itemData name = "Index" defStyleNum ="dsDecVal"/>
- <itemData name = "StringDiffNew" defStyleNum ="dsString" italic="true" color="#0060f0"/>
- <itemData name = "StringDiffOld" defStyleNum ="dsString" italic="true" color="#f00060"/>
+ <itemData name = "StringTagPrevious" defStyleNum ="dsString" color="#006060" bold="true" italic="true"/>
+ <itemData name = "Index" defStyleNum ="dsDecVal" color="#0000ff"/>
+ <itemData name = "IndexPrevious" defStyleNum ="dsDecVal" italic="true" color="#000000"/>
+ <itemData name = "StringDiffNewWrap" defStyleNum ="dsString" color="#0080f8"/>
+ <itemData name = "StringDiffOldWrap" defStyleNum ="dsString" color="#f00080"/>
+ <itemData name = "StringDiffNew" defStyleNum ="dsString" underline="true" color="#0080f8"/>
+ <itemData name = "StringDiffOld" defStyleNum ="dsString" underline="true" color="#f00080"/>
+ <itemData name = "StringDiffNewWrapComment" defStyleNum ="dsString" italic="true" color="#0080f8"/>
+ <itemData name = "StringDiffOldWrapComment" defStyleNum ="dsString" italic="true" color="#f00080"/>
+ <itemData name = "StringDiffNewComment" defStyleNum ="dsString" italic="true" color="#0080f8"/>
+ <itemData name = "StringDiffOldComment" defStyleNum ="dsString" italic="true" color="#f00080"/>
+ <itemData name = "StringDiffNewWrapPrevious" defStyleNum ="dsString" italic="true" color="#0080f8"/>
+ <itemData name = "StringDiffOldWrapPrevious" defStyleNum ="dsString" italic="true" color="#f00080"/>
+ <itemData name = "StringDiffNewPrevious" defStyleNum ="dsString" italic="true" color="#0080f8"/>
+ <itemData name = "StringDiffOldPrevious" defStyleNum ="dsString" italic="true" color="#f00080"/>
</itemDatas>
</highlighting>
<general>