golo.js 909 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. Language: Golo
  3. Author: Philippe Charriere <ph.charriere@gmail.com>
  4. Description: a lightweight dynamic language for the JVM
  5. Website: http://golo-lang.org/
  6. */
  7. function golo(hljs) {
  8. return {
  9. name: 'Golo',
  10. keywords: {
  11. keyword:
  12. 'println readln print import module function local return let var ' +
  13. 'while for foreach times in case when match with break continue ' +
  14. 'augment augmentation each find filter reduce ' +
  15. 'if then else otherwise try catch finally raise throw orIfNull ' +
  16. 'DynamicObject|10 DynamicVariable struct Observable map set vector list array',
  17. literal:
  18. 'true false null'
  19. },
  20. contains: [
  21. hljs.HASH_COMMENT_MODE,
  22. hljs.QUOTE_STRING_MODE,
  23. hljs.C_NUMBER_MODE,
  24. {
  25. className: 'meta', begin: '@[A-Za-z]+'
  26. }
  27. ]
  28. }
  29. }
  30. module.exports = golo;