golo.js 716 B

12345678910111213141516171819202122
  1. module.exports = function(hljs) {
  2. return {
  3. keywords: {
  4. keyword:
  5. 'println readln print import module function local return let var ' +
  6. 'while for foreach times in case when match with break continue ' +
  7. 'augment augmentation each find filter reduce ' +
  8. 'if then else otherwise try catch finally raise throw orIfNull ' +
  9. 'DynamicObject|10 DynamicVariable struct Observable map set vector list array',
  10. literal:
  11. 'true false null'
  12. },
  13. contains: [
  14. hljs.HASH_COMMENT_MODE,
  15. hljs.QUOTE_STRING_MODE,
  16. hljs.C_NUMBER_MODE,
  17. {
  18. className: 'meta', begin: '@[A-Za-z]+'
  19. }
  20. ]
  21. }
  22. };