mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-07 15:40:24 +09:00
* Adds new syntax groups and docs * Large refactor of syntax highlighting files * Changed keybindings for changing tabs. * Improved the documentation. * Added F3 for find to default bindings. * Massive overhaul of the syntax files * Phase 1 color-scheme updates. * The new colorschemes. * Colorscheme and syntax updates. * Tiny fix to the cmc theme. * Another phase of colorschemes and testing gitconfig. * Fixed haskell error * Fortran fix * Delete test.txt Heh, sorry about forgetting to do this again.
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
syntax "haskell" "\.hs$"
|
|
|
|
## Keywords
|
|
color statement "[ ](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 statement "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
|
|
color statement "[ ](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 symbol "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
|
|
|
|
## Operators
|
|
color symbol.operator "(==|/=|&&|\|\||<|>|<=|>=)"
|
|
|
|
## Various symbols
|
|
color special "(->|<-)"
|
|
color symbol "\.|\$"
|
|
|
|
## Data constructors
|
|
color constant.bool "\b(True|False)\b"
|
|
color constant "(Nothing|Just|Left|Right|LT|EQ|GT)"
|
|
|
|
## Data classes
|
|
color identifier.class "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
|
|
|
## Strings
|
|
color constant.string ""[^\"]*""
|
|
|
|
## Comments
|
|
color comment "--.*"
|
|
color comment start="\{-" end="-\}"
|
|
|
|
color identifier.micro "undefined"
|