fix.js 792 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. {
  11. begin: /[^\u2401\u0001]+/,
  12. end: /[\u2401\u0001]/,
  13. excludeEnd: true,
  14. returnBegin: true,
  15. returnEnd: false,
  16. contains: [
  17. {
  18. begin: /([^\u2401\u0001=]+)/,
  19. end: /=([^\u2401\u0001=]+)/,
  20. returnEnd: true,
  21. returnBegin: false,
  22. className: 'attr'
  23. },
  24. {
  25. begin: /=/,
  26. end: /([\u2401\u0001])/,
  27. excludeEnd: true,
  28. excludeBegin: true,
  29. className: 'string'
  30. }
  31. ]
  32. }
  33. ],
  34. case_insensitive: true
  35. };
  36. }
  37. export { fix as default };