Skip to content

Commit

Permalink
Merge pull request scopatz#197 from esler/master
Browse files Browse the repository at this point in the history
 add syntax highlighting for /etc/hosts
  • Loading branch information
scopatz committed Dec 13, 2018
2 parents ea044ab + 77060a0 commit 9bea250
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions etc-hosts.nanorc
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ include "~/.nano/dot.nanorc"
include "~/.nano/dotenv.nanorc"
include "~/.nano/email.nanorc"
include "~/.nano/Dockerfile.nanorc"
include "~/.nano/etc-hosts.nanorc"
include "~/.nano/fish.nanorc"
include "~/.nano/fortran.nanorc"
include "~/.nano/gentoo.nanorc"
Expand Down

0 comments on commit 9bea250

Please sign in to comment.