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 757c6a2
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions src/languages/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,28 @@ export default function(hljs) {
contains: [
hljs.COMMENT(';', '$', { relevance: 0 }),
STRING,
// {
// match: /TXT\s+/,
// keywords: KEYWORDS,
// contains: [
// STRING,
// PUNCTUATION,
// {
// match: /\S+/,
// scope: "string"
// }
// ]
// },
{
match: /TXT\s+/,
keywords: KEYWORDS,
contains: [
STRING,
PUNCTUATION,
{
match: /\S+/,
scope: "string"
}
]
match: [
/TXT/,
/\s+/,
/(?!")\S+($|(?=;))/
],
scope: {
1: "keyword",
3: "string"
}
},
{
className: 'meta',
Expand Down

0 comments on commit 757c6a2

Please sign in to comment.