summaryrefslogtreecommitdiffstats
path: root/kate/data/pgn.xml
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-02 09:20:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-02 09:20:27 +0000
commitd7b9791584eda0f022813fd2b2df50f59eba29c5 (patch)
tree395d2d48909ce6f9e002106d1638610f7a7c8321 /kate/data/pgn.xml
parent84bbc54a086fc6894b247488bf62bdff04dd55fa (diff)
downloadtdelibs-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/pgn.xml')
-rw-r--r--kate/data/pgn.xml108
1 files changed, 108 insertions, 0 deletions
diff --git a/kate/data/pgn.xml b/kate/data/pgn.xml
new file mode 100644
index 000000000..5d4493b61
--- /dev/null
+++ b/kate/data/pgn.xml
@@ -0,0 +1,108 @@
+<!--
+
+ ====================================================================
+ PGN - Portable Game Notation syntax highlighting file for the
+ KDE editors Kate and Kwrite
+ ====================================================================
+ // PGN - Portable Game Notation highlighter
+ // To write your chess (and others) games
+ // written by Ruben Carlo Benante. - dr.beco@gmail.com
+ // 14/oct/2005, v.2.0
+
+ - Know bugs:
+ * None.
+-->
+<language name="PGN" version="2.01" kateversion="2.4" section="Other" extensions="*.pgn;*.PGN" priority="5" mimetype="" casesensitive="1" author="Ruben Carlo Benante (dr.beco@gmail.com)" license="GNU/GPL">
+<highlighting>
+ <list name="keywords_list">
+ <item> Event </item>
+ <item> Site </item>
+ <item> Date </item>
+ <item> Round </item>
+ <item> White </item>
+ <item> Black </item>
+ <item> Result </item>
+ <item> ECO </item>
+ <item> Annotator </item>
+ <item> PlyCount </item>
+ <item> EventDate </item>
+ <item> EventCountry </item>
+ <item> SourceDate </item>
+ <item> WhiteTitle </item>
+ <item> BlackTitle </item>
+ <item> FM </item>
+ <item> IM </item>
+ <item> GM </item>
+ <item> WhiteElo </item>
+ <item> BlackElo </item>
+ <item> WhiteNA </item>
+ <item> BlackNA </item>
+ <item> WhiteType </item>
+ <item> BlackType </item>
+ <item> program </item>
+ <item> human </item>
+ <item> TimeControl </item>
+ <item> FEN </item>
+ <item> Termination </item>
+ <item> abandoned </item>
+ <item> adjudication </item>
+ <item> death </item>
+ <item> emergency </item>
+ <item> normal </item>
+ <item> rules </item>
+ <item> infraction </item>
+ <item> time </item>
+ <item> forfeit </item>
+ <item> unterminated </item>
+ <item> Mode </item>
+ <item> OTB </item>
+ <item> PM </item>
+ <item> EM </item>
+ <item> ICS </item>
+ <item> TC </item>
+ </list>
+ <contexts>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+ <keyword attribute="Keyword" context="#stay" String="keywords_list"/>
+ <AnyChar attribute="Piece" context="#stay" String="KQBNRPODCTA"/>
+ <DetectChar attribute="Commentp" context="Comment_p" char="("/>
+ <DetectChar attribute="Commentc" context="Comment_c" char="{"/>
+ <DetectChar attribute="String" context="String" char="&quot;"/>
+ <RegExpr attribute="Symbol" context="#stay" String="(\$\d*|1\-0|0\-1|1/2\-1/2|\*|#|\+|\?|!|=|x|\+\-|\-\+)"/>
+ <RegExpr attribute="Number" context="#stay" String="\d*(\.|\.\.\.)( |$)"/>
+ </context>
+ <context attribute="Commentp" lineEndContext="#stay" name="Comment_p">
+ <DetectChar attribute="String" context="String" char="&quot;"/>
+ <DetectChar attribute="Commentp" context="Comment_p" char="("/>
+ <DetectChar attribute="Commentc" context="Comment_c" char="{"/>
+ <DetectChar attribute="Commentp" context="#pop" char=")" endRegion="Comment_p"/>
+ </context>
+ <context attribute="Commentc" lineEndContext="#stay" name="Comment_c">
+ <DetectChar attribute="String" context="String" char="&quot;"/>
+ <DetectChar attribute="Commentp" context="Comment_p" char="("/>
+ <DetectChar attribute="Commentc" context="Comment_c" char="{"/>
+ <DetectChar attribute="Commentc" context="#pop" char="}" endRegion="Comment_c"/>
+ </context>
+ <context attribute="String" lineEndContext="#stay" name="String">
+ <DetectChar attribute="String" context="#pop" char="&quot;"/>
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword" bold="true"/>
+ <itemData name="Piece" defStyleNum="dsNormal" color="#0095FF" bold="1" italic="0"/>
+ <itemData name="Commentp" defStyleNum="dsComment"/>
+ <itemData name="Commentc" defStyleNum="dsComment" bold="true"/>
+ <itemData name="String" defStyleNum="dsString" bold="false"/>
+ <itemData name="Number" defStyleNum="dsDecVal" color="#bb00bb"/>
+ <itemData name="Symbol" defStyleNum="dsOthers" color="#00bb00"/>
+ </itemDatas>
+</highlighting>
+<general>
+ <comments>
+ <comment name="multiLine" start="(" end=")"/>
+ <comment name="multiLine" start="{" end="}"/>
+ </comments>
+ <keywords casesensitive="0" weakDeliminator=""/>
+</general>
+</language>