Benno Schulenberg | 22a0442 | 2014-05-06 10:03:02 +0000 | [diff] [blame] | 1 | ## Here is an example for Texinfo files. |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 2 | |
Benno Schulenberg | 22a0442 | 2014-05-06 10:03:02 +0000 | [diff] [blame] | 3 | syntax "texinfo" "\.texi$" |
| 4 | header "^\\input texinfo" |
| 5 | magic "Texinfo source text" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 6 | comment "@c " |
Benno Schulenberg | 22a0442 | 2014-05-06 10:03:02 +0000 | [diff] [blame] | 7 | |
| 8 | # Command arguments, trailing and enclosed. |
| 9 | color cyan "^@[a-z]+[[:space:]]+.*$" |
Benno Schulenberg | a152311 | 2014-05-06 20:45:56 +0000 | [diff] [blame] | 10 | color brightmagenta "@[a-z]+\{[^}]*\}" |
Benno Schulenberg | 22a0442 | 2014-05-06 10:03:02 +0000 | [diff] [blame] | 11 | # Commands themselves. |
| 12 | color yellow "@[a-z]+\{?" "\}" |
| 13 | |
| 14 | # Menu items. |
| 15 | color brightred "^\*[[:space:]]+.*::.*$" |
| 16 | |
| 17 | # Comments. |
| 18 | color green "@c[[:space:]]+.*$" |
| 19 | |
| 20 | # Trailing whitespace. |
| 21 | color ,green "[[:space:]]+$" |