mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
- Lots of syntax regex are poorly written and did not ends with a '$', which caused them competing with other regex rules.
15 lines
247 B
Text
15 lines
247 B
Text
## 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 "^#.*"
|
|
|