diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | pygments/lexers/theorem.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -11,10 +11,13 @@ Version 2.4.1 - Updated lexers: + * Coq (#1430) * MSDOS Session (PR#734) + * TypeScript (#1515) - Support CSS variables in stylesheets (PR#814) - Fix F# lexer name (PR#709) +- Fix ``TerminalFormatter`` using bold for bright text (#1480) Version 2.4.0 ------------- diff --git a/pygments/lexers/theorem.py b/pygments/lexers/theorem.py index e84a398b..e7619c33 100644 --- a/pygments/lexers/theorem.py +++ b/pygments/lexers/theorem.py @@ -98,7 +98,6 @@ class CoqLexer(RegexLexer): operators = r'[!$%&*+\./:<=>?@^|~-]' prefix_syms = r'[!?~]' infix_syms = r'[=<>@^|&+\*/$%-]' - primitives = ('unit', 'nat', 'bool', 'string', 'ascii', 'list') tokens = { 'root': [ @@ -115,7 +114,6 @@ class CoqLexer(RegexLexer): (r'\b([A-Z][\w\']*)', Name), (r'(%s)' % '|'.join(keyopts[::-1]), Operator), (r'(%s|%s)?%s' % (infix_syms, prefix_syms, operators), Operator), - (r'\b(%s)\b' % '|'.join(primitives), Keyword.Type), (r"[^\W\d][\w']*", Name), |