summaryrefslogtreecommitdiff
path: root/pygments/lexers/haskell.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-24 12:55:42 -0800
committerGeorg Brandl <georg@python.org>2019-11-25 12:12:41 +0100
commit1dc6c8e2b473717188632f9a0c28c4342428e684 (patch)
treed57a8c8cecbf2388b4fa15bb77dd4d8b8363de15 /pygments/lexers/haskell.py
parentfdbe9c57ce3cc1f5d31a9fc74e7e94314d69773b (diff)
downloadpygments-git-1dc6c8e2b473717188632f9a0c28c4342428e684.tar.gz
Update project to use modern Python features and idioms
Run the pyupgrade tool across the project to use modern language features. - Use set literals - Use dict comprehension - Remove unnecessary numeric indexes in format string - Remove unnecessary extra parentheses
Diffstat (limited to 'pygments/lexers/haskell.py')
-rw-r--r--pygments/lexers/haskell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/haskell.py b/pygments/lexers/haskell.py
index 0bac41d5..0c0917e7 100644
--- a/pygments/lexers/haskell.py
+++ b/pygments/lexers/haskell.py
@@ -481,10 +481,10 @@ class CryptolLexer(RegexLexer):
],
}
- EXTRA_KEYWORDS = set(('join', 'split', 'reverse', 'transpose', 'width',
- 'length', 'tail', '<<', '>>', '<<<', '>>>', 'const',
- 'reg', 'par', 'seq', 'ASSERT', 'undefined', 'error',
- 'trace'))
+ EXTRA_KEYWORDS = {'join', 'split', 'reverse', 'transpose', 'width',
+ 'length', 'tail', '<<', '>>', '<<<', '>>>', 'const',
+ 'reg', 'par', 'seq', 'ASSERT', 'undefined', 'error',
+ 'trace'}
def get_tokens_unprocessed(self, text):
stack = ['root']