mindoc/static/highlight/languages/fix.js

34 lines
633 B
JavaScript
Raw Normal View History

2017-04-21 18:20:35 +08:00
/*
Language: FIX
Author: Brent Bradbury <brent@brentium.com>
*/
function(hljs) {
return {
contains: [
{
begin: /[^\u2401\u0001]+/,
end: /[\u2401\u0001]/,
excludeEnd: true,
returnBegin: true,
returnEnd: false,
contains: [
{
begin: /([^\u2401\u0001=]+)/,
end: /=([^\u2401\u0001=]+)/,
returnEnd: true,
returnBegin: false,
className: 'attr'
},
{
begin: /=/,
end: /([\u2401\u0001])/,
excludeEnd: true,
excludeBegin: true,
className: 'string'
}]
}],
case_insensitive: true
};
}