mirror of
https://github.com/scopatz/nanorc
synced 2024-11-21 16:15:40 +01:00
Improve haskell.nanorc
This commit is contained in:
parent
3fb2783d75
commit
cfa6717850
@ -1,9 +1,8 @@
|
|||||||
syntax "Haskell" "\.hs$"
|
syntax "haskell" "\.hs$"
|
||||||
|
comment "--"
|
||||||
|
|
||||||
## Keywords
|
## 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 "\<(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
|
## Various symbols
|
||||||
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
||||||
@ -16,13 +15,15 @@ color cyan "(->|<-|=>)"
|
|||||||
color magenta "\.|\$"
|
color magenta "\.|\$"
|
||||||
|
|
||||||
## Data constructors
|
## Data constructors
|
||||||
color magenta "(True|False|Nothing|Just|Left|Right|LT|EQ|GT)"
|
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
|
||||||
|
|
||||||
## Data classes
|
## Data classes
|
||||||
color magenta "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>"
|
||||||
|
|
||||||
## Strings
|
## Strings
|
||||||
color yellow ""[^\"]*""
|
color yellow ""([^\"]|\\.)*""
|
||||||
|
## Chars
|
||||||
|
color brightyellow "'([^\']|\\.)'"
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
color green "--.*"
|
color green "--.*"
|
||||||
|
Loading…
Reference in New Issue
Block a user