blob: 645ca6465965dd3194eeecdd07bc825a94f1bb9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<!--
====================================================================
PGN - Portable Game Notation syntax highlighting file for the
TDE editors Kate and Kwrite
====================================================================
// PGN - Portable Game Notation highlighter
// To write your chess (and others) games
// written by Ruben Carlo Benante. - [email protected]
// 14/oct/2005, v.2.0
- Know bugs:
* None.
-->
<language name="PGN" version="4-1" kateversion="2.3" section="Other" extensions="*.pgn;*.PGN" priority="5" mimetype="" casesensitive="1" author="Ruben Carlo Benante ([email protected])" license="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="""/>
<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="""/>
<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="""/>
<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="""/>
</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>
|