on master help sign in
Add syntax highlighting for /etc/resolv.conf
commit9fb14d78e1a7e30513d62e2a2a4c4d3f27cb184d authorAnubhab Ghosh <anubhabghosh.me@gmail.com> dateFri 25 Oct 2019, 18:42 (7 years ago) parentedbb4b2
1 file changed+21
assets/syntaxes/Resolv.sublime-syntax+21
assets/syntaxes/Resolv.sublime-syntaxnew file+21
@@ -0,0 +1,21 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: resolv
5+file_extensions:
6+ - resolv.conf
7+scope: source.resolv
8+
9+contexts:
10+ main:
11+ - scope: comment.line.number-sign
12+ match: \#.*
13+ comment: comment
14+
15+ - comment: configuration
16+ match: "(nameserver|domain|search|sortlist|options)"
17+ scope: keyword.control
18+
19+ - comment: options
20+ match: "(debug|ndots|timeout|attempts|rotate|no-check-names|inet6|ip6-bytestring|ip6-dotint|no-ip6-dotint|edns0|single-request|single-request-reopen|no-tld-query|use-vc|no-reload)"
21+ scope: entity.name