From 9fb14d78e1a7e30513d62e2a2a4c4d3f27cb184d Mon Sep 17 00:00:00 2001 From: Anubhab Ghosh Date: Fri, 25 Oct 2019 18:42:54 +0530 Subject: [PATCH] Add syntax highlighting for /etc/resolv.conf --- assets/syntaxes/Resolv.sublime-syntax | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 assets/syntaxes/Resolv.sublime-syntax diff --git a/assets/syntaxes/Resolv.sublime-syntax b/assets/syntaxes/Resolv.sublime-syntax new file mode 100644 index 00000000..8083133f --- /dev/null +++ b/assets/syntaxes/Resolv.sublime-syntax @@ -0,0 +1,21 @@ +%YAML 1.2 +--- +# http://www.sublimetext.com/docs/3/syntax.html +name: resolv +file_extensions: + - resolv.conf +scope: source.resolv + +contexts: + main: + - scope: comment.line.number-sign + match: \#.* + comment: comment + + - comment: configuration + match: "(nameserver|domain|search|sortlist|options)" + scope: keyword.control + + - comment: options + 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)" + scope: entity.name