static-pandoc-template/js/highlight/languages/parser3.js
Yann Esposito (Yogsototh) 2843c77720 initial commit
2013-04-15 16:58:52 +02:00

50 lines
1,005 B
JavaScript

/*
Language: Parser3
Requires: xml.js
Author: Oleg Volchkov <oleg@volchkov.net>
*/
hljs.LANGUAGES.parser3 = {
defaultMode: {
subLanguage: 'html',
contains: [
{
className: 'comment',
begin: '^#', end: '$'
},
{
className: 'comment',
begin: '\\^rem{', end: '}',
relevance: 10,
contains: [
{
begin: '{', end: '}',
contains: ['self']
}
]
},
{
className: 'preprocessor',
begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
relevance: 10
},
{
className: 'title',
begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
},
{
className: 'variable',
begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?'
},
{
className: 'keyword',
begin: '\\^[\\w\\-\\.\\:]+'
},
{
className: 'number',
begin: '\\^#[0-9a-fA-F]+'
},
hljs.C_NUMBER_MODE
]
}
};