clean.js 781 B

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