mirror of
https://github.com/scopatz/nanorc
synced 2025-06-20 13:40:07 +02:00
For better organisation the nanorc files will go to a folder. The install script should translate the themed nanorc files to the final files. The install script should be the official instalation method.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
syntax "Haskell" "\.hs$"
|
|
|
|
## Keywords
|
|
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$)"
|
|
|
|
## Various symbols
|
|
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
|
|
|
## Operators
|
|
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
|
|
|
|
## Various 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 ""[^\"]*""
|
|
|
|
## Comments
|
|
color green "--.*"
|
|
color green start="\{-" end="-\}"
|
|
|
|
color brightred "undefined"
|
|
|
|
## Trailing spaces
|
|
color ,green "[[:space:]]+$"
|