Skip to content

Commit

Permalink
lean: Add missing keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored and birkenfeld committed Nov 19, 2020
1 parent ed985a1 commit 190717d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygments/lexers/theorem.py
Expand Up @@ -410,6 +410,7 @@ class LeanLexer(RegexLexer):
'universe', 'universes',
'inductive', 'coinductive', 'structure', 'extends',
'class', 'instance',
'abbreviation',

'noncomputable theory',

Expand All @@ -434,6 +435,7 @@ class LeanLexer(RegexLexer):
'let', 'if', 'else', 'then', 'in', 'with', 'calc', 'match',
'do'
), prefix=r'\b', suffix=r'\b'), Keyword),
(words(('sorry', 'admit'), prefix=r'\b', suffix=r'\b'), Generic.Error),
(words(('Sort', 'Prop', 'Type'), prefix=r'\b', suffix=r'\b'), Keyword.Type),
(words((
'#eval', '#check', '#reduce', '#exit',
Expand Down

0 comments on commit 190717d

Please sign in to comment.