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.
19 строки
458 B
Plaintext
19 строки
458 B
Plaintext
## Here is an example for manpages.
|
|
|
|
syntax "man" "\.[1-9]x?$"
|
|
magic "troff or preprocessor input"
|
|
comment ".\""
|
|
|
|
color green "\.(SH|SS|TH) .*$"
|
|
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"
|
|
color brightred "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*$"
|
|
color brightblue "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "\.([LP]?P)$"
|
|
color magenta "\\f[BIPR]"
|
|
color yellow "\.(br|DT|RS|RE|PD)"
|
|
|
|
# Comments.
|
|
color cyan "\.?\\\".*$"
|
|
|
|
# Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|