l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

mojolicious.js (721B)


      1 /*
      2 Language: Mojolicious
      3 Requires: xml.js, perl.js
      4 Author: Dotan Dimet <dotan@corky.net>
      5 Description: Mojolicious .ep (Embedded Perl) templates
      6 Website: https://mojolicious.org
      7 Category: template
      8 */
      9 function 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}", end: '$',
     21         subLanguage: 'perl'
     22       },
     23     // mojolicious block
     24       {
     25         begin: "<%{1,2}={0,2}",
     26         end: "={0,1}%>",
     27         subLanguage: 'perl',
     28         excludeBegin: true,
     29         excludeEnd: true
     30       }
     31     ]
     32   };
     33 }
     34 
     35 module.exports = mojolicious;