fix
This commit is contained in:
36
book/node_modules/highlight.js/es/languages/mojolicious.js
generated
vendored
Normal file
36
book/node_modules/highlight.js/es/languages/mojolicious.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
Language: Mojolicious
|
||||
Requires: xml.js, perl.js
|
||||
Author: Dotan Dimet <dotan@corky.net>
|
||||
Description: Mojolicious .ep (Embedded Perl) templates
|
||||
Website: https://mojolicious.org
|
||||
Category: template
|
||||
*/
|
||||
function mojolicious(hljs) {
|
||||
return {
|
||||
name: 'Mojolicious',
|
||||
subLanguage: 'xml',
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
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
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
export { mojolicious as default };
|
Reference in New Issue
Block a user