l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

golo.js (909B)


      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 
      8 function golo(hljs) {
      9     return {
     10       name: 'Golo',
     11       keywords: {
     12         keyword:
     13           'println readln print import module function local return let var ' +
     14           'while for foreach times in case when match with break continue ' +
     15           'augment augmentation each find filter reduce ' +
     16           'if then else otherwise try catch finally raise throw orIfNull ' +
     17           'DynamicObject|10 DynamicVariable struct Observable map set vector list array',
     18         literal:
     19           'true false null'
     20       },
     21       contains: [
     22         hljs.HASH_COMMENT_MODE,
     23         hljs.QUOTE_STRING_MODE,
     24         hljs.C_NUMBER_MODE,
     25         {
     26           className: 'meta', begin: '@[A-Za-z]+'
     27         }
     28       ]
     29     }
     30 }
     31 
     32 module.exports = golo;