1%YAML 1.2
2---
3# http://www.sublimetext.com/docs/3/syntax.html
4name: hosts
5file_extensions:
6  - hosts
7scope: source.hosts
8
9contexts:
10  main:
11    - scope: comment.line.number-sign
12      match: \#.*
13      comment: comment
14
15    - match: ^\s*([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|[0-9a-f:]+)
16      comment: ipaddress
17      scope: constant.numeric.ipaddress
18
19
20    - match: \s(localhost|ip6-loopback|ip6-localhost|ip6-localnet|ip6-mcastprefix|ip6-allnodes|ip6-allrouters|ip6-allhosts|broadcasthost)\b
21      scope: keyword.host.predefined}
22      comment: prefdfined
23
24