From 4fde15f83f8acee99c528f8a15ac6f1b6745fb4a Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Thu, 31 Oct 2024 18:48:47 -0400 Subject: [PATCH] support unquoted strings after TXT --- src/languages/dns.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/languages/dns.js b/src/languages/dns.js index d9a1107414..380323defa 100644 --- a/src/languages/dns.js +++ b/src/languages/dns.js @@ -78,6 +78,17 @@ export default function(hljs) { } ] }, + { + match: [ + /TXT/, + /\s+/, + /\S+($|(?=;))/ + ], + scope: { + 1: "keyword", + 3: "string" + } + }, { className: 'meta', begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/