biofriction-wp-theme/node_modules/highlight.js/lib/languages/mojolicious.js

24 lines
479 B
JavaScript

module.exports = function(hljs) {
return {
subLanguage: 'xml',
contains: [
{
className: 'preprocessor',
begin: '^__(END|DATA)__$'
},
// mojolicious line
{
begin: "^\\s*%{1,2}={0,2}", end: '$',
subLanguage: 'perl'
},
// mojolicious block
{
begin: "<%{1,2}={0,2}",
end: "={0,1}%>",
subLanguage: 'perl',
excludeBegin: true,
excludeEnd: true
}
]
};
};