Mercurial > repos > other > linux
comparison nanorc.d/haskell.nanorc @ 84:b989099cde9f
Start to update Nano colourisation
Defaults are REALLY basic
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 31 Mar 2018 21:06:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
83:966d8f8f89d0 | 84:b989099cde9f |
---|---|
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:]]+$" |