UNPKG

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