2014-05-06 10:03:02 +00:00
|
|
|
## Here is an example for Texinfo files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax texinfo "\.texi$"
|
2014-05-06 10:03:02 +00:00
|
|
|
header "^\\input texinfo"
|
2017-11-19 10:10:53 +00:00
|
|
|
magic "Texinfo source"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "@c "
|
2014-05-06 10:03:02 +00:00
|
|
|
|
|
|
|
# Command arguments, trailing and enclosed.
|
|
|
|
color cyan "^@[a-z]+[[:space:]]+.*$"
|
2017-07-14 07:51:37 +00:00
|
|
|
color brightmagenta "@[a-zA-Z]+\{[^}]*\}"
|
2014-05-06 10:03:02 +00:00
|
|
|
# Commands themselves.
|
2017-07-14 07:51:37 +00:00
|
|
|
color yellow "@[a-zA-Z]+\{?" "\}"
|
2014-05-06 10:03:02 +00:00
|
|
|
|
|
|
|
# Menu items.
|
|
|
|
color brightred "^\*[[:space:]]+.*::.*$"
|
|
|
|
|
|
|
|
# Comments.
|
|
|
|
color green "@c[[:space:]]+.*$"
|
|
|
|
|
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|