aboutsummaryrefslogtreecommitdiffstats
path: root/doc/syntax/texinfo.nanorc
blob: 63354bae9c7cd7bc53694f13865eefab302aabad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## Here is an example for Texinfo files.

syntax "texinfo" "\.texi$"
header "^\\input texinfo"
magic "Texinfo source text"

# Command arguments, trailing and enclosed.
color cyan "^@[a-z]+[[:space:]]+.*$"
color brightmagenta "@[a-z]+\{[^}]*\}"
# Commands themselves.
color yellow "@[a-z]+\{?" "\}"

# Menu items.
color brightred "^\*[[:space:]]+.*::.*$"

# Comments.
color green "@c[[:space:]]+.*$"

# Trailing whitespace.
color ,green "[[:space:]]+$"