clean.js 914 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. 'icl',
  13. 'dcl'
  14. ],
  15. keywords: {
  16. keyword:
  17. 'if let in with where case of class instance otherwise ' +
  18. 'implementation definition system module from import qualified as ' +
  19. 'special code inline foreign export ccall stdcall generic derive ' +
  20. 'infix infixl infixr',
  21. built_in:
  22. 'Int Real Char Bool',
  23. literal:
  24. 'True False'
  25. },
  26. contains: [
  27. hljs.C_LINE_COMMENT_MODE,
  28. hljs.C_BLOCK_COMMENT_MODE,
  29. hljs.APOS_STRING_MODE,
  30. hljs.QUOTE_STRING_MODE,
  31. hljs.C_NUMBER_MODE,
  32. { // relevance booster
  33. begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'
  34. }
  35. ]
  36. };
  37. }
  38. module.exports = clean;