X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fhaskell.yaml;h=bea37bf42d61063befff2794bb8c1d338a983ef1;hb=5519f053acdd3142b45451fcd97c3a617761f668;hp=a71646abd048d7fe014099f06c56bd9e425c3d9d;hpb=2e6cbcb362a4eba98a0019538d8fd6d924745f16;p=micro.git diff --git a/runtime/syntax/haskell.yaml b/runtime/syntax/haskell.yaml index a71646ab..bea37bf4 100644 --- a/runtime/syntax/haskell.yaml +++ b/runtime/syntax/haskell.yaml @@ -21,15 +21,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: "(?