## Haskell syntax highlighting ## found here: http://www.wubutu.com/2011/05/syntax-highlighting-nano-ban.html syntax "haskell" "\.hs$" ## language words 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)[ ]" color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]" 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$)" ## lang symbols color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})" ## lang operators color magenta "(==|/=|&&|\|\||<|>|<=|>=)" ## lang symbols color cyan "(->|<-)" color magenta "\.|\$" ## data constructors color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)" ## data classes color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)" ## strings color yellow ""[^\"]*"" ## Comment highlighting color green "--.*" color green start="\{-" end="-\}" ## misc color brightred "undefined"