hexo/node_modules/highlight.js/es/languages/fix.js

40 lines
831 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
/*
Language: FIX
Author: Brent Bradbury <brent@brentium.com>
*/
/** @type LanguageFn */
function fix(hljs) {
return {
name: 'FIX',
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
};
}
export { fix as default };