Update to 8.0
This commit is contained in:
@@ -4,49 +4,47 @@ Requires: xml.js
|
||||
Author: Oleg Volchkov <oleg@volchkov.net>
|
||||
*/
|
||||
|
||||
hljs.LANGUAGES['parser3'] = function(hljs) {
|
||||
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
|
||||
]
|
||||
}
|
||||
subLanguage: 'xml', relevance: 0,
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user