clean.js 889 B

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