1 ## Haskell syntax highlighting
2 ## found here: http://www.wubutu.com/2011/05/syntax-highlighting-nano-ban.html
4 syntax "haskell" "\.hs$"
7 color red "[ ](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ ]"
8 color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
9 color red "[ ](as$|case$|of$|class$|data$|default$|deriving$|do$|forall$|foreign$|hiding$|if$|then$|else$|import$|infix$|infixl$|infixr$|instance$|let$|in$|mdo$|module$|newtype$|qualified$|type$|where$)"
12 color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
15 color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
22 color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
25 color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
28 color yellow ""[^\"]*""
30 ## Comment highlighting
32 color green start="\{-" end="-\}"
35 color brightred "undefined"