changelog.st - enscript - GNU Enscript
 (HTM) git clone git://thinkerwim.org/enscript.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       changelog.st (1378B)
       ---
            1 /**
            2  * Name: changelog
            3  * Description: ChangeLog files.
            4  * Author: Markku Rossi <mtr@iki.fi>
            5  */
            6 
            7 state changelog extends HighlightEntry
            8 {
            9   /* Date entries.  Both new and old formats. */
           10   /^([^ \t]........[0-9: ]*)([^<]+)(<)([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+)(>)/ {
           11     string_face (true);
           12     language_print ($1);
           13     string_face (false);
           14 
           15     reference_face (true);
           16     language_print ($2);
           17     reference_face (false);
           18 
           19     language_print ($3);
           20 
           21     variable_name_face (true);
           22     language_print ($4);
           23     variable_name_face (false);
           24 
           25     language_print ($5);
           26   }
           27 
           28   /* File descriptions with function names. */
           29   /(^\t\* )([^\(]+)(\()([^\)]+)(\):)/ {
           30     language_print ($1);
           31 
           32     function_name_face (true);
           33     language_print ($2);
           34     function_name_face (false);
           35 
           36     language_print ($3);
           37 
           38     keyword_face (true);
           39     language_print ($4);
           40     keyword_face (false);
           41 
           42     language_print ($5);
           43   }
           44 
           45   /* File descriptions without function names. */
           46   /(^\t\* )([^ :]+)(:)/ {
           47     language_print ($1);
           48 
           49     function_name_face (true);
           50     language_print ($2);
           51     function_name_face (false);
           52 
           53     language_print ($3);
           54   }
           55 
           56   /* Function name descriptions without file names. */
           57   /(^\t\()([^\)]+)(\):)/ {
           58     language_print ($1);
           59 
           60     keyword_face (true);
           61     language_print ($2);
           62     keyword_face (false);
           63 
           64     language_print ($3);
           65   }
           66 }
           67 
           68 
           69 /*
           70 Local variables:
           71 mode: c
           72 End:
           73 */