| 1 |
<!-- |
| 2 |
|
| 3 |
==================================================================== |
| 4 |
PGN - Portable Game Notation syntax highlighting file for the |
| 5 |
KDE editors Kate and Kwrite |
| 6 |
==================================================================== |
| 7 |
// PGN - Portable Game Notation highlighter |
| 8 |
// To write your chess (and others) games |
| 9 |
// written by Ruben Carlo Benante. - [email protected] |
| 10 |
// 14/oct/2005, v.2.0 |
| 11 |
|
| 12 |
- Know bugs: |
| 13 |
* None. |
| 14 |
--> |
| 15 |
<language name="PGN" version="6" kateversion="5.0" section="Other" extensions="*.pgn;*.PGN" priority="5" mimetype="" casesensitive="1" author="Ruben Carlo Benante ([email protected])" license="GPL"> |
| 16 |
<highlighting> |
| 17 |
<list name="keywords_list"> |
| 18 |
<item>Event</item> |
| 19 |
<item>Site</item> |
| 20 |
<item>Date</item> |
| 21 |
<item>Round</item> |
| 22 |
<item>White</item> |
| 23 |
<item>Black</item> |
| 24 |
<item>Result</item> |
| 25 |
<item>ECO</item> |
| 26 |
<item>Annotator</item> |
| 27 |
<item>PlyCount</item> |
| 28 |
<item>EventDate</item> |
| 29 |
<item>EventCountry</item> |
| 30 |
<item>SourceDate</item> |
| 31 |
<item>WhiteTitle</item> |
| 32 |
<item>BlackTitle</item> |
| 33 |
<item>FM</item> |
| 34 |
<item>IM</item> |
| 35 |
<item>GM</item> |
| 36 |
<item>WhiteElo</item> |
| 37 |
<item>BlackElo</item> |
| 38 |
<item>WhiteNA</item> |
| 39 |
<item>BlackNA</item> |
| 40 |
<item>WhiteType</item> |
| 41 |
<item>BlackType</item> |
| 42 |
<item>program</item> |
| 43 |
<item>human</item> |
| 44 |
<item>TimeControl</item> |
| 45 |
<item>FEN</item> |
| 46 |
<item>Termination</item> |
| 47 |
<item>abandoned</item> |
| 48 |
<item>adjudication</item> |
| 49 |
<item>death</item> |
| 50 |
<item>emergency</item> |
| 51 |
<item>normal</item> |
| 52 |
<item>rules</item> |
| 53 |
<item>infraction</item> |
| 54 |
<item>time</item> |
| 55 |
<item>forfeit</item> |
| 56 |
<item>unterminated</item> |
| 57 |
<item>Mode</item> |
| 58 |
<item>OTB</item> |
| 59 |
<item>PM</item> |
| 60 |
<item>EM</item> |
| 61 |
<item>ICS</item> |
| 62 |
<item>TC</item> |
| 63 |
</list> |
| 64 |
<contexts> |
| 65 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 66 |
<keyword attribute="Keyword" context="#stay" String="keywords_list"/> |
| 67 |
<AnyChar attribute="Piece" context="#stay" String="KQBNRPODCTA"/> |
| 68 |
<DetectChar attribute="Commentp" context="Comment_p" char="(" beginRegion="Comment_p"/> |
| 69 |
<DetectChar attribute="Commentc" context="Comment_c" char="{" beginRegion="Comment_c"/> |
| 70 |
<DetectChar attribute="String" context="String" char="""/> |
| 71 |
<RegExpr attribute="Symbol" context="#stay" String="(\$\d*|1\-0|0\-1|1/2\-1/2|\*|#|\+|\?|!|=|x|\+\-|\-\+)"/> |
| 72 |
<RegExpr attribute="Number" context="#stay" String="\d*(\.|\.\.\.)( |$)"/> |
| 73 |
</context> |
| 74 |
<context attribute="Commentp" lineEndContext="#stay" name="Comment_p"> |
| 75 |
<DetectSpaces /> |
| 76 |
<DetectChar attribute="String" context="String" char="""/> |
| 77 |
<DetectChar attribute="Commentp" context="Comment_p" char="(" beginRegion="Comment_p"/> |
| 78 |
<DetectChar attribute="Commentc" context="Comment_c" char="{" beginRegion="Comment_c"/> |
| 79 |
<DetectChar attribute="Commentp" context="#pop" char=")" endRegion="Comment_p"/> |
| 80 |
<IncludeRules context="##Comments"/> |
| 81 |
</context> |
| 82 |
<context attribute="Commentc" lineEndContext="#stay" name="Comment_c"> |
| 83 |
<DetectSpaces /> |
| 84 |
<DetectChar attribute="String" context="String" char="""/> |
| 85 |
<DetectChar attribute="Commentp" context="Comment_p" char="(" beginRegion="Comment_p"/> |
| 86 |
<DetectChar attribute="Commentc" context="Comment_c" char="{" beginRegion="Comment_c"/> |
| 87 |
<DetectChar attribute="Commentc" context="#pop" char="}" endRegion="Comment_c"/> |
| 88 |
<IncludeRules context="##Comments"/> |
| 89 |
</context> |
| 90 |
<context attribute="String" lineEndContext="#stay" name="String"> |
| 91 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 92 |
</context> |
| 93 |
</contexts> |
| 94 |
<itemDatas> |
| 95 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 96 |
<itemData name="Keyword" defStyleNum="dsKeyword" bold="true"/> |
| 97 |
<itemData name="Piece" defStyleNum="dsNormal" color="#0095FF" bold="1" italic="0"/> |
| 98 |
<itemData name="Commentp" defStyleNum="dsComment"/> |
| 99 |
<itemData name="Commentc" defStyleNum="dsComment" bold="true"/> |
| 100 |
<itemData name="String" defStyleNum="dsString" bold="false"/> |
| 101 |
<itemData name="Number" defStyleNum="dsDecVal" color="#bb00bb"/> |
| 102 |
<itemData name="Symbol" defStyleNum="dsOthers" color="#00bb00"/> |
| 103 |
</itemDatas> |
| 104 |
</highlighting> |
| 105 |
<general> |
| 106 |
<comments> |
| 107 |
<comment name="multiLine" start="{" end="}" region="Comment_c"/> |
| 108 |
</comments> |
| 109 |
<keywords casesensitive="0" weakDeliminator=""/> |
| 110 |
</general> |
| 111 |
</language> |
| 112 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |