clean.js 716 B

1234567891011121314151617181920212223242526
  1. module.exports = function(hljs) {
  2. return {
  3. aliases: ['clean','icl','dcl'],
  4. keywords: {
  5. keyword:
  6. 'if let in with where case of class instance otherwise ' +
  7. 'implementation definition system module from import qualified as ' +
  8. 'special code inline foreign export ccall stdcall generic derive ' +
  9. 'infix infixl infixr',
  10. built_in:
  11. 'Int Real Char Bool',
  12. literal:
  13. 'True False'
  14. },
  15. contains: [
  16. hljs.C_LINE_COMMENT_MODE,
  17. hljs.C_BLOCK_COMMENT_MODE,
  18. hljs.APOS_STRING_MODE,
  19. hljs.QUOTE_STRING_MODE,
  20. hljs.C_NUMBER_MODE,
  21. {begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'} // relevance booster
  22. ]
  23. };
  24. };