This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / haskell.nanorc
1 syntax "Haskell" "\.hs$"
2
3 ## Keywords
4 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)[ ]"
5 color red "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
6 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$)"
7
8 ## Various symbols
9 color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
10
11 ## Operators
12 color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
13
14 ## Various symbols
15 color cyan "(->|<-)"
16 color magenta "\.|\$"
17
18 ## Data constructors
19 color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
20
21 ## Data classes
22 color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
23
24 ## Strings
25 color yellow ""[^\"]*""
26
27 ## Comments
28 color green "--.*"
29 color green start="\{-" end="-\}"
30
31 color brightred "undefined"
32
33 ## Trailing spaces
34 color ,green "[[:space:]]+$"