diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-02 09:20:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-02 09:20:27 +0000 |
commit | d7b9791584eda0f022813fd2b2df50f59eba29c5 (patch) | |
tree | 395d2d48909ce6f9e002106d1638610f7a7c8321 /kate/data/gettext.xml | |
parent | 84bbc54a086fc6894b247488bf62bdff04dd55fa (diff) | |
download | tdelibs-d7b9791584eda0f022813fd2b2df50f59eba29c5.tar.gz tdelibs-d7b9791584eda0f022813fd2b2df50f59eba29c5.zip |
Added remaining missing Kate xml files
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1068844 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/data/gettext.xml')
-rw-r--r-- | kate/data/gettext.xml | 98 |
1 files changed, 92 insertions, 6 deletions
diff --git a/kate/data/gettext.xml b/kate/data/gettext.xml index f659eda9f..3bfe298fe 100644 --- a/kate/data/gettext.xml +++ b/kate/data/gettext.xml @@ -3,8 +3,10 @@ <!-- This file is part of KDE's kate project. - copyright : (C) 2004 by Dominik Haumann - email : dhdev at gmx dot de + Copyright 2004, Dominik Haumann <[email protected]> + Copyright 2008, Chusslove Illich <[email protected]> + + Last change: 2008-01-30 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -21,7 +23,7 @@ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. --> -<language name="GNU Gettext" version="1.03" kateversion="2.4" section="Markup" extensions="*.po;*.pot" mimetype="application/x-gettext" author="Dominik Haumann ([email protected])" license="LGPL"> +<language name="GNU Gettext" version="2.00" kateversion="2.4" section="Markup" extensions="*.po;*.pot" mimetype="text/x-gettext-translation" author="Dominik Haumann ([email protected])" license="LGPL"> <highlighting> <contexts> @@ -29,29 +31,113 @@ <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"/> - <RegExpr attribute = "Flag" String = "#,.*$" context="#stay" 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"/> <RegExpr attribute = "Char" String="\\." context="#stay"/> <DetectChar attribute = "String" char=""" context="String"/> <RegExpr attribute = "Index" String="\[\d+\]" context="#stay"/> </context> + + <!-- + Make fuzzy-flag stand out from the rest, being the most important. + --> + <context name = "Flags" attribute = "Flag" lineEndContext="#pop"> + <StringDetect attribute = "FlagFuzzy" String="fuzzy" context="#stay"/> + </context> + + <!-- + Tag-context should be carried over if split by string continuation, + to not loose markup highlighting when that happens. + --> <context name = "String" attribute = "String" lineEndContext="#stay"> <RegExpr attribute = "Char" String="\\." context="#stay"/> + <RegExpr attribute = "Entity" String="&([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/> + <DetectChar attribute = "StringTag" char="<" context="StringTag"/> + <DetectChar attribute = "String" char=""" context="StringWrap"/> + </context> + <context name = "StringTag" attribute = "StringTag" lineEndContext="#stay"> + <RegExpr attribute = "Char" String="\\." context="#stay"/> + <DetectChar attribute = "StringTag" char=">" context="#pop"/> + <DetectChar attribute = "String" char=""" context="StringWrapSub"/> + </context> + <context name = "StringWrap" lineEndContext="#stay"> + <DetectChar attribute = "String" char=""" context="#pop"/> + <RegExpr String="." lookAhead="true" context="#pop#pop"/> + </context> + <context name = "StringWrapSub" lineEndContext="#stay"> <DetectChar attribute = "String" char=""" context="#pop"/> + <RegExpr String="." lookAhead="true" context="#pop#pop#pop"/> + </context> + + <!-- + Previous strings are those in #| comments, introduced by Gettext 0.16. + They should have all the same highlight types as normal strings. + A special addition are embedded diff-segments: {+...+} and {-...-}, + 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 = "CharPrevious" String="\\." context="#stay"/> + <DetectChar attribute = "StringPrevious" char=""" context="StringPrevious"/> + </context> + <context name = "StringPrevious" attribute = "StringPrevious" lineEndContext="#stay"> + <RegExpr attribute = "CharPrevious" String="\\." context="#stay"/> + <RegExpr attribute = "EntityPrevious" String="&([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/> + <StringDetect attribute = "StringDiffNew" String="{+" context="StringDiffNew"/> + <StringDetect attribute = "StringDiffOld" String="{-" context="StringDiffOld"/> + <DetectChar attribute = "StringTagPrevious" char="<" context="StringTagPrevious"/> + <DetectChar attribute = "StringPrevious" char=""" 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"/> + <DetectChar attribute = "StringTagPrevious" char=">" context="#pop"/> + <DetectChar attribute = "StringPrevious" char=""" context="StringWrapSubPrevious"/> + </context> + <context name = "StringDiffNew" attribute = "StringDiffNew" lineEndContext="#stay"> + <RegExpr attribute = "Char" String="\\." context="#stay"/> + <StringDetect attribute = "StringDiffNew" String="+}" context="#pop"/> + <DetectChar attribute = "StringPrevious" char=""" context="StringWrapSubPrevious"/> + </context> + <context name = "StringDiffOld" attribute = "StringDiffOld" lineEndContext="#stay"> + <RegExpr attribute = "Char" String="\\." context="#stay"/> + <StringDetect attribute = "StringDiffOld" String="-}" context="#pop"/> + <DetectChar attribute = "StringPrevious" char=""" context="StringWrapSubPrevious"/> + </context> + <context name = "StringWrapPrevious" lineEndContext="#stay"> + <RegExpr String="[^#]" firstNonSpace="true" lookAhead="true" context="#pop#pop"/> + <RegExpr attribute = "StringPrevious" String="(#\|)? *"" context="#pop"/> + <RegExpr String="." lookAhead="true" context="#pop#pop"/> + </context> + <context name = "StringWrapSubPrevious" lineEndContext="#stay"> + <RegExpr String="[^#]" firstNonSpace="true" lookAhead="true" context="#pop#pop#pop"/> + <RegExpr attribute = "StringPrevious" String="(#\|)? *"" context="#pop"/> + <RegExpr String="." lookAhead="true" context="#pop#pop#pop"/> </context> </contexts> <itemDatas> <itemData name = "Normal Text" defStyleNum ="dsNormal"/> <itemData name = "Keyword" defStyleNum ="dsKeyword"/> - <itemData name = "String" defStyleNum ="dsString"/> + <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 = "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 = "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"/> </itemDatas> </highlighting> <general> |