summaryrefslogtreecommitdiff
path: root/pygments/lexers/theorem.py
diff options
context:
space:
mode:
authorMaximilian Wuttke <mwuttke97@posteo.de>2021-02-23 20:10:16 +0100
committerGitHub <noreply@github.com>2021-02-23 20:10:16 +0100
commitad55974ce83b85dbb333ab57764415ab84169461 (patch)
tree624ed08e34db65c3870cde1bc92c4827103c1434 /pygments/lexers/theorem.py
parent1dc90599e9b4a93d06365443ef6f7cc3b193108e (diff)
downloadpygments-git-ad55974ce83b85dbb333ab57764415ab84169461.tar.gz
Two updates for the Coq lexer (#1721)
* Coq: Add `Abort`,`Admitted`, `SProp` * Coq lexer: add unicode notations defined in the standard library Also comment out Π and Σ, since these notations are not defined in the standard library.
Diffstat (limited to 'pygments/lexers/theorem.py')
-rw-r--r--pygments/lexers/theorem.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pygments/lexers/theorem.py b/pygments/lexers/theorem.py
index eee11269..ec55a32e 100644
--- a/pygments/lexers/theorem.py
+++ b/pygments/lexers/theorem.py
@@ -43,6 +43,7 @@ class CoqLexer(RegexLexer):
'Canonical', 'Coercion', 'Theorem', 'Lemma', 'Corollary',
'Proposition', 'Fact', 'Remark', 'Example', 'Proof', 'Goal', 'Save',
'Qed', 'Defined', 'Hint', 'Resolve', 'Rewrite', 'View', 'Search',
+ 'Abort', 'Admitted',
'Show', 'Print', 'Printing', 'All', 'Graph', 'Projections', 'inside',
'outside', 'Check', 'Global', 'Instance', 'Class', 'Existing',
'Universe', 'Polymorphic', 'Monomorphic', 'Context'
@@ -55,7 +56,7 @@ class CoqLexer(RegexLexer):
)
keywords3 = (
# Sorts
- 'Type', 'Prop',
+ 'Type', 'Prop', 'SProp',
)
keywords4 = (
# Tactics
@@ -94,7 +95,8 @@ class CoqLexer(RegexLexer):
'<->', '=', '>', '>]', r'>\}', r'\?', r'\?\?', r'\[', r'\[<', r'\[>',
r'\[\|', ']', '_', '`', r'\{', r'\{<', r'\|', r'\|]', r'\}', '~', '=>',
r'/\\', r'\\/', r'\{\|', r'\|\}',
- 'Π', 'λ',
+ # 'Π', 'Σ', # Not defined in the standard library
+ 'λ', '¬', '∧', '∨', '∀', '∃', '→', '↔', '≠', '≤', '≥',
)
operators = r'[!$%&*+\./:<=>?@^|~-]'
prefix_syms = r'[!?~]'