diff options
author | Xia Li-yao <Lysxia@users.noreply.github.com> | 2019-12-30 04:07:27 -0500 |
---|---|---|
committer | Matthäus G. Chajdas <Anteru@users.noreply.github.com> | 2019-12-30 10:07:27 +0100 |
commit | c74e89cd2a11c77938010c17cfc8579a0c5f40fb (patch) | |
tree | 4c8245f289894ff0af1e3ba7a932295ed55ea2f7 /pygments/lexers/haskell.py | |
parent | 1dca455375bd59b7270d0d3d52118e4d67775650 (diff) | |
download | pygments-git-c74e89cd2a11c77938010c17cfc8579a0c5f40fb.tar.gz |
haskell: Fix highlighting of promoted type operators (#1347)
* haskell: Fix highlighting of promoted type operators
Fixes issue #527
Patch originally written by paamayim
Diffstat (limited to 'pygments/lexers/haskell.py')
-rw-r--r-- | pygments/lexers/haskell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/haskell.py b/pygments/lexers/haskell.py index 0c0917e7..edc506cf 100644 --- a/pygments/lexers/haskell.py +++ b/pygments/lexers/haskell.py @@ -66,6 +66,7 @@ class HaskellLexer(RegexLexer): (r"(')[" + uni.Lu + r"][\w\']*", Keyword.Type), (r"(')\[[^\]]*\]", Keyword.Type), # tuples and lists get special treatment in GHC (r"(')\([^)]*\)", Keyword.Type), # .. + (r"(')[:!#$%&*+.\\/<=>?@^|~-]+", Keyword.Type), # promoted type operators # Operators (r'\\(?![:!#$%&*+.\\/<=>?@^|~-]+)', Name.Function), # lambda operator (r'(<-|::|->|=>|=)(?![:!#$%&*+.\\/<=>?@^|~-]+)', Operator.Word), # specials |