mirror of
https://github.com/scopatz/nanorc
synced 2024-11-04 16:50:00 +01:00
Added nanorc for popular functional language haskell
This commit is contained in:
parent
411442fd29
commit
f0db3a7bbb
31
haskell.nanorc
Normal file
31
haskell.nanorc
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
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"
|
Loading…
Reference in New Issue
Block a user