2020-04-08 15:16:57 +02:00
syntax "haskell" "\.hs$"
comment "--"
2015-12-15 21:17:06 +01:00
## Keywords
2020-04-08 15:16:57 +02:00
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)\>"
2015-12-15 21:17:06 +01:00
## Various symbols
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
## Operators
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
## Various symbols
2020-03-15 00:09:11 +01:00
color cyan "(->|<-|=>)"
2015-12-15 21:17:06 +01:00
color magenta "\.|\$"
## Data constructors
2020-04-08 15:16:57 +02:00
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
2015-12-15 21:17:06 +01:00
## Data classes
2020-04-08 15:16:57 +02:00
color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>"
2015-12-15 21:17:06 +01:00
## Strings
2020-04-08 15:16:57 +02:00
color yellow ""([^\"]|\\.)*""
## Chars
color brightyellow "'([^\']|\\.)'"
2015-12-15 21:17:06 +01:00
## Comments
color green "--.*"
color green start="\{-" end="-\}"
color brightred "undefined"
2016-12-06 22:02:16 +01:00
## Trailing spaces
color ,green "[[:space:]]+$"