File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,16 @@ export default function(hljs) {
4646 "TSIG" ,
4747 "TXT"
4848 ] ;
49+
50+ const PUNCTUATION = {
51+ scope : 'punctuation' ,
52+ match : / \( | \) /
53+ } ;
54+ const STRING = {
55+ scope : 'string' ,
56+ begin : '"' , end : '"'
57+ } ;
58+
4959 return {
5060 name : 'DNS Zone' ,
5161 aliases : [
@@ -55,24 +65,24 @@ export default function(hljs) {
5565 keywords : KEYWORDS ,
5666 contains : [
5767 hljs . COMMENT ( ';' , '$' , { relevance : 0 } ) ,
68+ STRING ,
5869 {
59- // Character strings
60- scope : 'string' ,
61- begin : '"' , end : '"'
62- } ,
63- {
64- scope : 'string' ,
65- begin : / T X T .+ / ,
66- keywords : KEYWORDS
70+ match : / T X T \s + / ,
71+ keywords : KEYWORDS ,
72+ contains : [
73+ STRING ,
74+ PUNCTUATION ,
75+ {
76+ match : / \S + / ,
77+ scope : "string"
78+ }
79+ ]
6780 } ,
6881 {
6982 className : 'meta' ,
7083 begin : / ^ \$ ( T T L | G E N E R A T E | I N C L U D E | O R I G I N ) \b /
7184 } ,
72- {
73- scope : 'punctuation' ,
74- match : / \( | \) /
75- } ,
85+ PUNCTUATION ,
7686 {
7787 scope : 'type' ,
7888 match : / I N | C H /
You can’t perform that action at this time.
0 commit comments