X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fhaskell.yaml;h=6a308b7a283916d6f6dafd10985045211c9784d3;hb=54c23cae72d7237bc898a59f79aad0acffdf0ffe;hp=a71646abd048d7fe014099f06c56bd9e425c3d9d;hpb=87f54be13a8f191ac9d4e7b7897c5f04da61e29a;p=micro.git diff --git a/runtime/syntax/haskell.yaml b/runtime/syntax/haskell.yaml index a71646ab..6a308b7a 100644 --- a/runtime/syntax/haskell.yaml +++ b/runtime/syntax/haskell.yaml @@ -5,9 +5,7 @@ detect: rules: # Keywords - - 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$)" + - statement: "\\b(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)\\b" # Various symbols - symbol: "(\\||@|!|:|_|~|=|\\\\|;|\\(\\)|,|\\[|\\]|\\{|\\})" @@ -21,15 +19,16 @@ rules: # Data constructors - constant.bool: "\\b(True|False)\\b" - - constant: "(Nothing|Just|Left|Right|LT|EQ|GT)" + - constant: "\\b(Nothing|Just|Left|Right|LT|EQ|GT)\\b" # Data classes - - identifier.class: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)" + - identifier.class: "\\b(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor|Foldable|Additive|Zip)[ ]" # Strings - constant.string: start: "\"" - end: "(?