source: node_modules/highlight.js/lib/languages/mojolicious.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 733 bytes
RevLine 
[d24f17c]1/*
2Language: Mojolicious
3Requires: xml.js, perl.js
4Author: Dotan Dimet <dotan@corky.net>
5Description: Mojolicious .ep (Embedded Perl) templates
6Website: https://mojolicious.org
7Category: template
8*/
9function mojolicious(hljs) {
10 return {
11 name: 'Mojolicious',
12 subLanguage: 'xml',
13 contains: [
14 {
15 className: 'meta',
16 begin: '^__(END|DATA)__$'
17 },
18 // mojolicious line
19 {
20 begin: "^\\s*%{1,2}={0,2}",
21 end: '$',
22 subLanguage: 'perl'
23 },
24 // mojolicious block
25 {
26 begin: "<%{1,2}={0,2}",
27 end: "={0,1}%>",
28 subLanguage: 'perl',
29 excludeBegin: true,
30 excludeEnd: true
31 }
32 ]
33 };
34}
35
36module.exports = mojolicious;
Note: See TracBrowser for help on using the repository browser.