on master help sign in
Add support for "etc/hosts" files.

- Syntax author: https://github.com/brandonwamboldt/sublime-hosts Since the upstream version only has a tmLanguage, added a sublime-syntax file manually.

commit69fc1caead487c478911c5d6eda36a09cd739129 authorIvan Smirnov <isgsmirnov@gmail.com> dateThu 6 Jun 2019, 19:47 (7 years ago) parente9210c0
3 files changed+27
.gitmodules+3 assets/syntaxes/Hosts.sublime-syntax+23 assets/syntaxes/hosts+1
.gitmodules+3
@@ -135,3 +135,6 @@
135135[submodule "assets/syntaxes/DotENV"]
136136 path = assets/syntaxes/DotENV
137137 url = https://github.com/zaynali53/DotENV
138+[submodule "assets/syntaxes/hosts"]
139+ path = assets/syntaxes/hosts
140+ url = https://github.com/brandonwamboldt/sublime-hosts
assets/syntaxes/Hosts.sublime-syntaxnew file+23
@@ -0,0 +1,23 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: hosts
5+file_extensions:
6+ - hosts
7+scope: source.hosts
8+
9+contexts:
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+
assets/syntaxes/hostsnew file+1

Submodule changed.