nestedtext.min.js 627 B

123456789
  1. /*! `nestedtext` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return t=>({name:"Nested Text",
  3. aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,
  4. excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{
  5. match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{
  6. match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{
  7. match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"
  8. }},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{
  9. 2:"attribute",3:"punctuation",5:"string"}}]})})();export default hljsGrammar;