! Syntax highlighting patterns for Portable Game Notation PGN ! Nedit 5.1 and up only ! ! INSTALLATION ! ! Load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! This patternfile can be used for Chess Games in the Chess Game Exchange format PGN. ! Tags supported are the tags that are recognized by the Montreux Chess Game Viewer ! Author JP Hendriks nedit@jphendriks.tmfweb.nl ! Latest revision 18-03-2001 ! nedit.highlightPatterns: PGN:1:0{\n\ annotation:"\\{":"\\}"::Comment::\n\ lineannotation:";":"$"::Comment::\n\ escapestring:"%":"$"::Ada Attributes::\n\ keyword:"<(Annotator|Black|BlackCountry|BlackElo|BlackTeam|BlackTitle|Board|Date|ECO|Event|EventDate|FEN|Mode|NIC|Opening|PlyCount|Result|Round|Section|SetUp|Site|Stage|SubVariation|Variation|White|WhiteCountry|WhiteElo|WhiteTeam|WhiteTitle)>":::Keyword::D\n\ tagvalue:"""":""""::String::\n\ result:"<(1\\-0|1/2\\-1/2|0\\-1|\\*)>":::Text Key::\n\ move:"<[A-Z]?[a-h]?[1-8]?[-x]?[a-h][1-8]=?[A-Z]?[#+]?>":::Identifier::\n\ castle:"<0\\-0|0\\-0\\-0|O\\-O|O\\-O\\-O>":::Identifier::\n\ movenr:"<[0-9]+\\.*":::Identifier1::\n\ nag:"\\$[0-9]+":::Label::\n\ } nedit.languageModes: PGN:.pgn .PGN:::None:::"[]{};:().!? "