34 lines
865 B
JavaScript
34 lines
865 B
JavaScript
|
module.exports = function(hljs) {
|
||
|
var EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep';
|
||
|
return {
|
||
|
aliases: ['dst'],
|
||
|
case_insensitive: true,
|
||
|
subLanguage: 'xml',
|
||
|
contains: [
|
||
|
{
|
||
|
className: 'expression',
|
||
|
begin: '{', end: '}',
|
||
|
relevance: 0,
|
||
|
contains: [
|
||
|
{
|
||
|
className: 'begin-block', begin: '\#[a-zA-Z\-\ \.]+',
|
||
|
keywords: EXPRESSION_KEYWORDS
|
||
|
},
|
||
|
{
|
||
|
className: 'string',
|
||
|
begin: '"', end: '"'
|
||
|
},
|
||
|
{
|
||
|
className: 'end-block', begin: '\\\/[a-zA-Z\-\ \.]+',
|
||
|
keywords: EXPRESSION_KEYWORDS
|
||
|
},
|
||
|
{
|
||
|
className: 'variable', begin: '[a-zA-Z\-\.]+',
|
||
|
keywords: EXPRESSION_KEYWORDS,
|
||
|
relevance: 0
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
};
|