mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-21 15:54:19 +03:00

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.
11 lines
202 B
Plaintext
11 lines
202 B
Plaintext
## Here is a short example for TeX files.
|
|
|
|
syntax "tex" "\.tex$"
|
|
magic "(La)?TeX document"
|
|
linter chktex -v0 -q -I
|
|
comment "%"
|
|
|
|
icolor green "\\.|\\[A-Z]*"
|
|
color magenta "[{}]"
|
|
color blue "(^|[^\])%.*"
|