0
This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
highlight_js-rails/vendor/assets/javascripts/highlight_js/languages/parser3.js
2012-08-14 23:47:39 +08:00

53 lines
1.1 KiB
JavaScript

/*
Language: Parser3
Requires: xml.js
Author: Oleg Volchkov <oleg@volchkov.net>
*/
hljs.LANGUAGES['parser3'] = function(hljs) {
return {
defaultMode: {
subLanguage: 'xml',
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
]
}
};
}(hljs);