bindzone runtime: add new DNS record types (#7351)
Commit:
https://github.com/vim/vim/commit/442d1746f4c650e2e41246fd5679f635a4a30232
Author: Stuart Henderson <[email protected]>
Date: Thu Aug 17 23:04:24 2023 +0100
bindzone runtime: add new DNS record types
(https://github.com/vim/vim/issues/7351)
Recognize some newer DNS record types - CAA (RFC8659, certificate authority
authorization), OPENPGPKEY (RFC7929), SMIMEA (RFC8162). Sort SSHFP
alphabetically while there.
diff --git a/runtime/syntax/bindzone.vim b/runtime/syntax/bindzone.vim
index bb790bb75..fede3d97d 100644
--- a/runtime/syntax/bindzone.vim
+++ b/runtime/syntax/bindzone.vim
@@ -33,7 +33,7 @@ syn match zoneDomain contained
/[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\
syn match zoneSpecial contained /^[@*.]\s/
syn match zoneTTL contained
/\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
syn keyword zoneClass contained IN CHAOS CH HS HESIOD
nextgroup=zoneRRType,zoneTTL skipwhite
-syn keyword zoneRRType contained A AAAA CERT CNAME DNAME DNSKEY DS
HINFO LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RP RRSIG SSHFP SOA SPF SRV TLSA
TXT nextgroup=zoneRData skipwhite
+syn keyword zoneRRType contained A AAAA CAA CERT CNAME DNAME DNSKEY
DS HINFO LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM OPENPGPKEY PTR RP RRSIG SMIMEA
SOA SPF SRV SSHFP TLSA TXT nextgroup=zoneRData skipwhite
syn match zoneRData contained /[^;]*/
contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
syn match zoneIPAddr contained
/\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qWlGk-006euk-6O%40256bit.org.