2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting 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.
|
2018-11-03 20:12:44 +00:00
|
|
|
color brightred "^\*[[:space:]]+.*::.*"
|
2014-05-06 10:03:02 +00:00
|
|
|
|
|
|
|
# Comments.
|
2018-11-03 20:12:44 +00:00
|
|
|
color green "@c[[:space:]]+.*"
|
2014-05-06 10:03:02 +00:00
|
|
|
|
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|