axapta.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Language: Microsoft Axapta (now Dynamics 365)
  3. Author: Dmitri Roudakov <dmitri@roudakov.ru>
  4. Website: https://dynamics.microsoft.com/en-us/ax-overview/
  5. Category: enterprise
  6. */
  7. /** @type LanguageFn */
  8. function axapta(hljs) {
  9. return {
  10. name: 'Dynamics 365',
  11. keywords: 'false int abstract private char boolean static null if for true ' +
  12. 'while long throw finally protected final return void enum else ' +
  13. 'break new catch byte super case short default double public try this switch ' +
  14. 'continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count ' +
  15. 'order group by asc desc index hint like dispaly edit client server ttsbegin ' +
  16. 'ttscommit str real date container anytype common div mod',
  17. contains: [
  18. hljs.C_LINE_COMMENT_MODE,
  19. hljs.C_BLOCK_COMMENT_MODE,
  20. hljs.APOS_STRING_MODE,
  21. hljs.QUOTE_STRING_MODE,
  22. hljs.C_NUMBER_MODE,
  23. {
  24. className: 'meta',
  25. begin: '#', end: '$'
  26. },
  27. {
  28. className: 'class',
  29. beginKeywords: 'class interface', end: '{', excludeEnd: true,
  30. illegal: ':',
  31. contains: [
  32. {beginKeywords: 'extends implements'},
  33. hljs.UNDERSCORE_TITLE_MODE
  34. ]
  35. }
  36. ]
  37. };
  38. }
  39. module.exports = axapta;