prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
28 lines (27 loc) • 957 B
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
//#region src/prism/languages/dns-zone-file.js
languages["dns-zone"] = languages["dns-zone-file"] = {
"comment": /;.*/,
"string": /"(?:\\.|[^\\\n"])*"/g,
"variable": [{
pattern: /(^\$ORIGIN[ ]+)\S+/m,
lookbehind: true
}, {
pattern: /(^|\s)@(?!\S)/,
lookbehind: true
}],
"keyword": /^\$(?:INCLUDE|ORIGIN|TTL)(?!\S)/m,
"class": {
pattern: /(^|\s)(?:CH|CS|HS|IN)(?!\S)/,
lookbehind: true,
alias: "keyword"
},
"type": {
pattern: /(^|\s)(?:A6?|AAAA|AFSDB|APL|ATMA|CAA|C?DNSKEY|C?DS|CERT|[CD]NAME|DHCID|DLV|[EGU]ID|GPOS|[HMNU]INFO|HIP|IPSECKEY|ISDN|[RT]?KEY|KX|LOC|MAIL[AB]|M[BDFGRX]|NAPTR|NB|NBSTAT|NIMLOC|NS|NSAP|NSAP-PTR|NSEC3?|NSEC3PARAM|NULL|[NT]XT|OPENPGPKEY|PTR|PX|RP|RRSIG|RT|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TLSA|T?SIG|UNSPEC|URI|WKS|X25)(?!\S)/,
lookbehind: true,
alias: "keyword"
},
"punctuation": /[()]/
};
//#endregion
//# sourceMappingURL=dns-zone-file.js.map