You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
627 B
9 lines
627 B
/*! `nestedtext` grammar compiled for Highlight.js 11.7.0 */
|
|
var hljsGrammar=(()=>{"use strict";return t=>({name:"Nested Text",
|
|
aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,
|
|
excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{
|
|
match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{
|
|
match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{
|
|
match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"
|
|
}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{
|
|
2:"attribute",3:"punctuation",5:"string"}}]})})();export default hljsGrammar; |