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

17 lines
313 B
JavaScript

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]
}
};