clean.js 929 B

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