2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for Texinfo files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2020-09-14 17:37:45 +00:00
|
|
|
## Original author: Benno Schulenberg
|
|
|
|
## License: GPL version 3 or newer
|
|
|
|
|
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
|
|
|
|
2021-10-15 15:24:18 +00:00
|
|
|
# How the manual gets listed in the directory node.
|
|
|
|
color purple start="^@direntry" end="^@end direntry"
|
|
|
|
|
2014-05-06 10:03:02 +00:00
|
|
|
# Command arguments, trailing and enclosed.
|
2021-10-15 08:15:48 +00:00
|
|
|
color cyan "^@[a-z]+[[:space:]]+.*"
|
2021-10-15 15:24:18 +00:00
|
|
|
color lightmagenta "@([a-z]+|,|H|U)\{([^}]|@\}|@[a-z]+\{[^}]*\})*\}"
|
2014-05-06 10:03:02 +00:00
|
|
|
# Commands themselves.
|
2021-10-17 10:19:28 +00:00
|
|
|
color yellow "^@[a-z]+([[:space:]]|$)|@([a-z]+|,|H|U|AA|AE|DH|L|OE?|(La)?TeX|TH)\{|\}"
|
2021-10-15 15:24:18 +00:00
|
|
|
color pink "@[!"'&*./:=?@\^`{}~-]"
|
|
|
|
|
|
|
|
# Special separator for headings and footings.
|
|
|
|
color mint "@\|"
|
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.
|
2021-10-15 15:24:18 +00:00
|
|
|
color green "@c(omment)?[[:space:]]+.*"
|
2014-05-06 10:03:02 +00:00
|
|
|
|
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|