l0bsterssg

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

clean.js (889B)


      1 /*
      2 Language: Clean
      3 Author: Camil Staps <info@camilstaps.nl>
      4 Category: functional
      5 Website: http://clean.cs.ru.nl
      6 */
      7 
      8 /** @type LanguageFn */
      9 function clean(hljs) {
     10   return {
     11     name: 'Clean',
     12     aliases: ['clean','icl','dcl'],
     13     keywords: {
     14       keyword:
     15         'if let in with where case of class instance otherwise ' +
     16         'implementation definition system module from import qualified as ' +
     17         'special code inline foreign export ccall stdcall generic derive ' +
     18         'infix infixl infixr',
     19       built_in:
     20         'Int Real Char Bool',
     21       literal:
     22         'True False'
     23     },
     24     contains: [
     25 
     26       hljs.C_LINE_COMMENT_MODE,
     27       hljs.C_BLOCK_COMMENT_MODE,
     28       hljs.APOS_STRING_MODE,
     29       hljs.QUOTE_STRING_MODE,
     30       hljs.C_NUMBER_MODE,
     31 
     32       {begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'} // relevance booster
     33     ]
     34   };
     35 }
     36 
     37 module.exports = clean;