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.
15 строки
338 B
Plaintext
15 строки
338 B
Plaintext
## Here is an example for Makefiles.
|
|
|
|
syntax "makefile" "Makefile[^/]*$" "\.(make|mk)$"
|
|
magic "makefile script"
|
|
comment "#"
|
|
|
|
color red "[:=]"
|
|
color magenta "\<(if|ifeq|else|endif)\>"
|
|
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
|
|
color brightblue "^[^ ]+:"
|
|
color green "(^|[[:space:]]+)#.*"
|
|
|
|
## Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|