mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
bacb0f717d
Since file-5.10 (end of 2011), libmagic identifies a C file in most cases as "C source" instead of as "C program". Nano's magic strings for some other files didn't match any more what file-5.32 currently produces, either. So, they have been adjusted, new ones added, and old ones deleted. This fixes https://savannah.gnu.org/bugs/?52445.
22 lines
467 B
Plaintext
22 lines
467 B
Plaintext
## Here is an example for Texinfo files.
|
|
|
|
syntax "texinfo" "\.texi$"
|
|
header "^\\input texinfo"
|
|
magic "Texinfo source"
|
|
comment "@c "
|
|
|
|
# Command arguments, trailing and enclosed.
|
|
color cyan "^@[a-z]+[[:space:]]+.*$"
|
|
color brightmagenta "@[a-zA-Z]+\{[^}]*\}"
|
|
# Commands themselves.
|
|
color yellow "@[a-zA-Z]+\{?" "\}"
|
|
|
|
# Menu items.
|
|
color brightred "^\*[[:space:]]+.*::.*$"
|
|
|
|
# Comments.
|
|
color green "@c[[:space:]]+.*$"
|
|
|
|
# Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|