Skip to content

Commit

Permalink
support unquoted strings after TXT
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Oct 31, 2024
1 parent c701260 commit 4fde15f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/languages/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 4fde15f

Please sign in to comment.