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