presentations/highlight-js/test/fixtures/nested.js

18 lines
313 B
JavaScript
Raw Normal View History

2018-12-07 08:48:05 -06:00
module.exports = function(hljs) {
var BODY = {
className: 'body', endsWithParent: true
};
var LIST = {
className: 'list',
variants: [
{begin: /\(/, end: /\)/},
{begin: /\[/, end: /\]/}
],
contains: [BODY]
};
BODY.contains = [LIST];
return {
contains: [LIST]
}
};