0

first commit.

This commit is contained in:
Rei
2011-12-01 01:55:52 +08:00
commit c8e56e05b1
71 changed files with 6530 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
/*
Language: Parser3
Requires: xml.js
Author: Oleg Volchkov <oleg@volchkov.net>
*/
hljs.LANGUAGES.parser3 = function() {
var COMMENTED_BLOCK = {
begin: '{', end: '}'
};
COMMENTED_BLOCK.contains = [COMMENTED_BLOCK];
return {
defaultMode: {
subLanguage: 'html',
contains: [
{
className: 'comment',
begin: '^#', end: '$'
},
{
className: 'comment',
contains: [COMMENTED_BLOCK],
begin: '\\^rem{', end: '}',
relevance: 10
},
{
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
]
}
};
}();