fix.js 731 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. Language: FIX
  3. Author: Brent Bradbury <brent@brentium.com>
  4. */
  5. /** @type LanguageFn */
  6. function fix(hljs) {
  7. return {
  8. name: 'FIX',
  9. contains: [{
  10. begin: /[^\u2401\u0001]+/,
  11. end: /[\u2401\u0001]/,
  12. excludeEnd: true,
  13. returnBegin: true,
  14. returnEnd: false,
  15. contains: [
  16. {
  17. begin: /([^\u2401\u0001=]+)/,
  18. end: /=([^\u2401\u0001=]+)/,
  19. returnEnd: true,
  20. returnBegin: false,
  21. className: 'attr'
  22. },
  23. {
  24. begin: /=/,
  25. end: /([\u2401\u0001])/,
  26. excludeEnd: true,
  27. excludeBegin: true,
  28. className: 'string'
  29. }
  30. ]
  31. }],
  32. case_insensitive: true
  33. };
  34. }
  35. module.exports = fix;