1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 16:45:40 +01:00
nanorc/etc-hosts.nanorc
bravoman 1fd3bb55f0
Made etc-hosts path regex match more strict.
This got me in a lot of trouble with a file path containing /vhosts/ so made it more strict.
2022-01-03 14:18:52 +01:00

16 lines
252 B
Plaintext

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