1 | hljs.registerLanguage("nestedtext",(()=>{"use strict";return t=>({
|
2 | name:"Nested Text",aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{
|
3 | begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]
|
4 | },{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{
|
5 | match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{
|
6 | match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"
|
7 | }},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{
|
8 | 2:"attribute",3:"punctuation",5:"string"}}]})})()); |
\ | No newline at end of file |