/usr/share/gtksourceview-1.0/language-specs/pgn.lang is in pychess 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 109 110 111 112 113 114 115 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="PGN" version="1.0" _section="Other" mimetypes="application/x-chess-pgn">
<string _name="String" style="String">
<start-regex>"</start-regex>
<end-regex>"</end-regex>
</string>
<string _name="String 2" style="String">
<start-regex>'</start-regex>
<end-regex>'</end-regex>
</string>
<line-comment _name="Line Comment" style="Comment">
<start-regex>;</start-regex>
</line-comment>
<line-comment _name="Special Line" style="Others">
<start-regex>^%</start-regex>
</line-comment>
<block-comment _name="Block Comment" style="Comment">
<start-regex>\{</start-regex>
<end-regex>\}</end-regex>
</block-comment>
<keyword-list _name = "Standard Bracketed Fields" style="Keyword"
case-sensitive="TRUE">
<keyword>Event</keyword>
<keyword>Site</keyword>
<keyword>Date</keyword>
<keyword>Round</keyword>
<keyword>White</keyword>
<keyword>Black</keyword>
<keyword>Result</keyword>
</keyword-list>
<keyword-list _name = "Other Bracketed Fields" style="Keyword"
case-sensitive="FALSE">
<!-- Player related information -->
<keyword>WhiteTitle</keyword>
<keyword>BlackTitle</keyword>
<keyword>WhiteElo</keyword>
<keyword>BlackElo</keyword>
<keyword>WhiteUSCF</keyword>
<keyword>BlackUSCF</keyword>
<keyword>WhiteNA</keyword>
<keyword>BlackNA</keyword>
<keyword>WhiteType</keyword>
<keyword>BlackType</keyword>
<!-- Event related information -->
<keyword>EventDate</keyword>
<keyword>EventSponsor</keyword>
<keyword>Section</keyword>
<keyword>Stage</keyword>
<keyword>Board</keyword>
<!-- Opening information (locale specific) -->
<keyword>Opening</keyword>
<keyword>Variation</keyword>
<keyword>SubVariation</keyword>
<!-- Opening information (third party vendors) -->
<keyword>ECO</keyword>
<keyword>NIC</keyword>
<!-- Time and date related information -->
<keyword>Time</keyword>
<keyword>UTCTime</keyword>
<keyword>UTCDate</keyword>
<!-- Time control -->
<keyword>TimeControl</keyword>
<!-- Alternative starting positions -->
<keyword>SetUp</keyword>
<keyword>FEN</keyword>
<!-- Game conclusion -->
<keyword>Termination</keyword>
<!-- Miscellaneous -->
<keyword>Annotator</keyword>
<keyword>Mode</keyword>
<keyword>PlyCount</keyword>
</keyword-list>
<pattern-item _name = "Annotation Glyph !" style="Comment">
<regex>![^!]</regex></pattern-item>
<pattern-item _name = "Annotation Glyph ?" style="Comment">
<regex>\?[^\?]</regex></pattern-item>
<pattern-item _name = "Annotation Glyph !!" style="Comment">
<regex>!!</regex></pattern-item>
<pattern-item _name = "Annotation Glyph ??" style="Comment">
<regex>\?\?</regex></pattern-item>
<pattern-item _name = "Annotation Glyph !?" style="Comment">
<regex>!\?</regex></pattern-item>
<pattern-item _name = "Annotation Glyph ?!" style="Comment">
<regex>\?!</regex></pattern-item>
<pattern-item _name = "Numeric Annotation Glyph" style="Comment">
<regex>\$[0-9]+</regex></pattern-item>
<block-comment _name="Variant" style="Preprocessor">
<start-regex>\(</start-regex>
<end-regex>\)</end-regex>
</block-comment>
<pattern-item _name="Numeric" style="Base-N Integer">
<regex>\b[0-9]+\s*\.</regex>
</pattern-item>
</language>
|