1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-01 07:10:00 +01:00
nanorc/etc-hosts.nanorc
davidhcefx 3b48b83389 Force all syntax regex to ends with $
- Lots of syntax regex are poorly written and did not ends with a '$',
   which caused them competing with other regex rules.
2023-04-13 23:02:34 +08:00

16 lines
247 B
Plaintext

## 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 "^#.*"