(file) Return to changelog.st CVS log (file) (dir) Up to [RizwankCVS] / testProject / share / enscript / hl

 1 rizwank 1.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 rizwank 1.1     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 rizwank 1.1   }
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 rizwank 1.1     language_print ($3);
65               }
66             }
67             
68             
69             /*
70             Local variables:
71             mode: c
72             End:
73             */

Rizwan Kassim
Powered by
ViewCVS 0.9.2