1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 00:25:39 +01:00

Merge pull request #197 from esler/master

add syntax highlighting for /etc/hosts
This commit is contained in:
Anthony Scopatz 2018-12-13 07:58:23 -05:00 committed by GitHub
commit 9bea2503fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

15
etc-hosts.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Make /etc/hosts nicer to read, see `man hosts 5` to see the format
syntax "/etc/hosts" "hosts"
# IPv4
color yellow "^[0-9\.]+\s"
# IPv6
icolor green "^[0-9a-f:]+\s"
# interpunction
color normal "[.:]"
# comments
color brightblack "^#.*"

1
nanorc
View File

@ -16,6 +16,7 @@ include "~/.nano/dot.nanorc"
include "~/.nano/dotenv.nanorc" include "~/.nano/dotenv.nanorc"
include "~/.nano/email.nanorc" include "~/.nano/email.nanorc"
include "~/.nano/Dockerfile.nanorc" include "~/.nano/Dockerfile.nanorc"
include "~/.nano/etc-hosts.nanorc"
include "~/.nano/fish.nanorc" include "~/.nano/fish.nanorc"
include "~/.nano/fortran.nanorc" include "~/.nano/fortran.nanorc"
include "~/.nano/gentoo.nanorc" include "~/.nano/gentoo.nanorc"