mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-15 07:12:38 +03:00
b00d0b9c8c
* Initial libmagic implementation, adapted from Eitan Adler <eitanadlerlist@gmail.com>. New nanorc entry "magic" to enable this functionality, nanorc file and man page updates. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
12 lines
267 B
Plaintext
12 lines
267 B
Plaintext
## Here is an example for patch files.
|
|
##
|
|
syntax "patch" "\.(patch|diff)$"
|
|
magic "diff output text"
|
|
color brightgreen "^\+.*"
|
|
color green "^\+\+\+.*"
|
|
color brightblue "^ .*"
|
|
color brightred "^-.*"
|
|
color red "^---.*"
|
|
color brightyellow "^@@.*"
|
|
color magenta "^diff.*"
|