Skip to content

Instantly share code, notes, and snippets.

/mojo.js Secret

Created September 6, 2014 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0c710ee29cb4104ec79a to your computer and use it in GitHub Desktop.
Save anonymous/0c710ee29cb4104ec79a to your computer and use it in GitHub Desktop.
hljs.registerLanguage("mojolicious", function(hljs) {
return {
case_insensitive: true,
subLanguage: 'perl',
subLanguageMode: 'continuous',
contains: [
{
className: 'comment',
begin: '^@@',
starts: { end: '\\n' },
relevance: 10
},
{
className: 'comment',
begin: '^\\s*%{1,2}={,2}',
starts: {
end: '\\n',
subLanguage: 'perl'
},
relevance: 10
},
{
className: 'comment',
begin: '<%{1,2}={,2}',
starts: {
end: '=?%>',
subLanguage: 'perl'
},
relevance: 10
}
]
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment