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