golo.js 856 B

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