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..5b2d376c 100644 --- a/grammars.yml +++ b/grammars.yml @@ -26,6 +26,9 @@ vendor/grammars/Alloy.tmbundle: - source.alloy vendor/grammars/AutoHotkey/: - source.ahk +vendor/grammars/st2-zonefile: +- source.untitled +- text.zone vendor/grammars/BrightScript.tmbundle/: - source.brightauthorproject - source.brightscript diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 812ceb7f..71ffe7d8 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -790,6 +790,13 @@ Diff: tm_scope: source.diff ace_mode: diff +DNS zone: + type: data + extensions: + - .zone + tm_scope: text.zone + ace_mode: text + Dockerfile: type: data tm_scope: source.dockerfile diff --git a/samples/zone/sneaky.net.zone b/samples/zone/sneaky.net.zone new file mode 100644 index 00000000..1276be5a --- /dev/null +++ b/samples/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/st2-zonefile b/st2-zonefile new file mode 160000 index 00000000..0d943fef --- /dev/null +++ b/st2-zonefile @@ -0,0 +1 @@ +Subproject commit 0d943fefb815262804f0ae309b08221f34eda054 diff --git a/vendor/grammars/Bind.tmbundle b/vendor/grammars/Bind.tmbundle new file mode 160000 index 00000000..ccc1e271 --- /dev/null +++ b/vendor/grammars/Bind.tmbundle @@ -0,0 +1 @@ +Subproject commit ccc1e2711a1238378b62d4045edae3f60679b703 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