diff --git a/.gitmodules b/.gitmodules index 7f02b603..f4238e8b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -668,3 +668,6 @@ [submodule "vendor/grammars/vue-syntax-highlight"] path = vendor/grammars/vue-syntax-highlight url = https://github.com/vuejs/vue-syntax-highlight +[submodule "vendor/grammars/st2-zonefile"] + path = vendor/grammars/st2-zonefile + url = https://github.com/sixty4k/st2-zonefile diff --git a/grammars.yml b/grammars.yml index c64f08a9..4da6c0e2 100644 --- a/grammars.yml +++ b/grammars.yml @@ -470,6 +470,8 @@ vendor/grammars/smalltalk-tmbundle: - source.smalltalk vendor/grammars/sql.tmbundle: - source.sql +vendor/grammars/st2-zonefile: +- text.zone_file vendor/grammars/standard-ml.tmbundle: - source.cm - source.ml diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 812ceb7f..99a8a19d 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -750,6 +750,13 @@ DM: tm_scope: source.c++ ace_mode: c_cpp +DNS Zone: + type: data + extensions: + - .zone + tm_scope: text.zone_file + ace_mode: text + DTrace: type: programming aliases: diff --git a/samples/DNS Zone/sneaky.net.zone b/samples/DNS Zone/sneaky.net.zone new file mode 100644 index 00000000..1276be5a --- /dev/null +++ b/samples/DNS Zone/sneaky.net.zone @@ -0,0 +1,12 @@ +$TTL 3d +@ IN SOA root.localhost. root.sneaky.net. ( + 2015042907 ; serial + 3d ; refresh + 1h ; retry + 12d ; expire + 2h ; negative response TTL + ) + IN NS root.localhost. + IN NS localhost. ; secondary name server is preferably externally maintained + +www IN A 3.141.59.26 diff --git a/vendor/grammars/st2-zonefile b/vendor/grammars/st2-zonefile new file mode 160000 index 00000000..0d943fef --- /dev/null +++ b/vendor/grammars/st2-zonefile @@ -0,0 +1 @@ +Subproject commit 0d943fefb815262804f0ae309b08221f34eda054