axapta.js 1.0 KB

123456789101112131415161718192021222324252627282930
  1. module.exports = function(hljs) {
  2. return {
  3. keywords: 'false int abstract private char boolean static null if for true ' +
  4. 'while long throw finally protected final return void enum else ' +
  5. 'break new catch byte super case short default double public try this switch ' +
  6. 'continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count ' +
  7. 'order group by asc desc index hint like dispaly edit client server ttsbegin ' +
  8. 'ttscommit str real date container anytype common div mod',
  9. contains: [
  10. hljs.C_LINE_COMMENT_MODE,
  11. hljs.C_BLOCK_COMMENT_MODE,
  12. hljs.APOS_STRING_MODE,
  13. hljs.QUOTE_STRING_MODE,
  14. hljs.C_NUMBER_MODE,
  15. {
  16. className: 'meta',
  17. begin: '#', end: '$'
  18. },
  19. {
  20. className: 'class',
  21. beginKeywords: 'class interface', end: '{', excludeEnd: true,
  22. illegal: ':',
  23. contains: [
  24. {beginKeywords: 'extends implements'},
  25. hljs.UNDERSCORE_TITLE_MODE
  26. ]
  27. }
  28. ]
  29. };
  30. };