mirror of https://gitee.com/bigwinds/arangodb
26 lines
599 B
JavaScript
26 lines
599 B
JavaScript
module.exports = function(hljs) {
|
|
return {
|
|
case_insensitive: true,
|
|
illegal: /\S/,
|
|
contains: [
|
|
hljs.COMMENT(';', '$'),
|
|
{
|
|
className: 'title',
|
|
begin: '^\\[', end: '\\]'
|
|
},
|
|
{
|
|
className: 'setting',
|
|
begin: '^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*', end: '$',
|
|
contains: [
|
|
{
|
|
className: 'value',
|
|
endsWithParent: true,
|
|
keywords: 'on off true false yes no',
|
|
contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE],
|
|
relevance: 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|
|
}; |