haskell.nanorc (1009B)
1 ## Syntax highlighting for Haskell files. 2 3 ## Original author: Alex Taber 4 ## License: GPL version 3 5 6 syntax "haskell" "\.hs$" 7 comment "--" 8 9 # Keywords 10 color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix(l|r)?|instance|let|in|mdo|module|newtype|qualified|type|where)\>" 11 12 # Various symbols 13 color cyan "\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\}" 14 15 # Operators 16 color magenta "==|/=|&&|\|\||<|>|<=|>=" 17 18 # More symbols 19 color cyan "->|<-|=>" 20 color magenta "\.|\$" 21 22 # Data constructors 23 color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>" 24 # Data classes 25 color magenta "\<(Bounded|Data|Enum|Eq|Floating|Fractional|Functor|Integral|Monad|MonadPlus|Num|Ord|Read|Real|RealFloat|RealFrac|Show|Typeable)\>" 26 27 # Special keyword 28 color brightred "undefined" 29 30 # Strings 31 color yellow ""([^"\]|\\.)*"" 32 # Characters 33 color brightyellow "'([^'\]|\\.)'" 34 35 # Comments 36 color green "--.*" 37 color green start="\{-" end="-\}" 38 39 # Trailing whitespace 40 color ,green "[[:space:]]+$"