diffs.st - enscript - GNU Enscript
(HTM) git clone git://thinkerwim.org/enscript.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
diffs.st (662B)
---
1 /**
2 * Name: diffs
3 * Description: side diff
4 * Author: buchal@ifh.bau-verm.uni-karlsruhe.de
5 */
6
7 state diffs extends HighlightEntry
8 {
9 /^\t#/ {
10 comment_face (true);
11 language_print ($0);
12 call (eat_one_line);
13 comment_face (false);
14 }
15
16 /^.*>\t/ {
17 function_name_face (true);
18 language_print ($0);
19 call (eat_one_line);
20 function_name_face (false);
21 }
22
23 /^.*\|\t/ {
24 reference_face (true);
25 language_print ($0);
26 call (eat_one_line);
27 reference_face (false);
28 }
29 /^.*<$/ {
30 string_face (true);
31 language_print ($0);
32 call (eat_one_line);
33 string_face (false);
34 }
35 }
36
37
38 /*
39 Local variables:
40 mode: c
41 End:
42 */