golo.js 888 B

123456789101112131415161718192021222324252627282930313233
  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',
  26. begin: '@[A-Za-z]+'
  27. }
  28. ]
  29. };
  30. }
  31. module.exports = golo;