mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Add converted syntax files
This commit is contained in:
24
runtime/syntax/haskell.yaml
Normal file
24
runtime/syntax/haskell.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
filetype: haskell
|
||||
|
||||
detect:
|
||||
filename: "\\.hs$"
|
||||
|
||||
rules:
|
||||
- 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)[ ]"
|
||||
- statement: "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
|
||||
- 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$)"
|
||||
- symbol: "(\\||@|!|:|_|~|=|\\\\|;|\\(\\)|,|\\[|\\]|\\{|\\})"
|
||||
- symbol.operator: "(==|/=|&&|\\|\\||<|>|<=|>=)"
|
||||
- special: "(->|<-)"
|
||||
- symbol: "\\.|\\$"
|
||||
- constant.bool: "\\b(True|False)\\b"
|
||||
- constant: "(Nothing|Just|Left|Right|LT|EQ|GT)"
|
||||
- identifier.class: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
||||
- constant.string: "\"[^\\\"]*\""
|
||||
- comment: "--.*"
|
||||
- comment:
|
||||
start: "\\{-"
|
||||
end: "-\\}"
|
||||
rules: []
|
||||
|
||||
- identifier.micro: "undefined"
|
||||
Reference in New Issue
Block a user