File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/lean.cpython-310.pyc
Back
o ;j�! � @ sx d Z ddlZddlmZmZmZ ddlmZmZm Z m Z mZmZm Z mZ ddgZG dd� de�ZeZG dd� de�ZdS ) z� pygments.lexers.lean ~~~~~~~~~~~~~~~~~~~~ Lexers for the Lean theorem prover. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�words�include)�Comment�Operator�Keyword�Name�String�Number�Generic� Whitespace� Lean3Lexer� Lean4Lexerc @ s� e Zd ZdZdZdZddgZdgZddgZd Z d Z e d e d Zd efde jdfdedfdejfedddd�efedddd�ejfedddd�ejfed�efeefde e jfdejfdejfdejfde jdfde jfd ejfd!ejjfged"ddd�ej fed#ddd�ej!fd$ej!d%fed&dd'�efe"d(�gd)ej!d*fe"d(�gd+ej#fdej#d,fd-ej#d*fd.ej#fgd+e jfd-e jd*fd.e jfgd/e jfd0e j$fde jd*fgd1�Z%d2d3� Z&d4S )5r z( For the Lean 3 theorem prover. ZLeanz,https://leanprover-community.github.io/lean3ZleanZlean3�*.leanztext/x-leanztext/x-lean3z2.0u� (?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟](?:(?![λΠΣ])[_a-zA-Zα-ωΑ-Ωϊ-ϻἀ-῾℀-⅏𝒜-𝖟0-9'ⁿ-₉ₐ-ₜᵢ-ᵪ])*�(\.�)*�\s+�/--� docstring�/-�commentz--.*?$)�forall�funZPi�from�have�show�assumeZsuffices�let�if�else�then�in�with�calc�match�do�\b��prefix�suffix�ZsorryZadmit)�Sort�Prop�Type)�(�)�:�{�}�[�]� ⟨� ⟩u ‹u ›� ⦃� ⦄�:=�,�``?z0x[A-Za-z0-9]+z0b[01]+�\d+�"�stringz='(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4})|.)'�[~?][a-z][\w\']*:�\S)�import�renaming�hiding� namespace�local�private� protected�sectionr ZomitrH rG �export�open� attribute)(�lemma�theorem�defZ definition�example�axiomZaxiomsZconstantZ constants�universeZ universes� inductiveZcoinductive� structure�extends�class�instanceZabbreviationznoncomputable theory� noncomputable�mutual�metarK Z parameter� parameters�variableZ variablesZreserve� precedence�postfixr( �notation�infix�infixl�infixr�begin�by�end� set_optionZrun_cmd�@\[rK )�#eval�#check�#reduce�#exit�#print�#help)r) � expression�\]�#pop�[^/-]+�#push�-/�[/-]�[^\\"]+z9(?:(\\[\\\"'nt])|(\\x[0-9a-fA-F]{2})|(\\u[0-9a-fA-F]{4}))�rm �rootrK r r r>