Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���a � @ sf d Z ddlZddlmZmZmZmZ ddlmZm Z m Z mZmZm Z mZmZ dgZG dd� de�ZdS )z� pygments.lexers.inferno ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for Inferno os and all the related stuff. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�bygroups�default)�Punctuation�Text�Comment�Operator�Keyword�Name�String�Number� LimboLexerc @ s e Zd ZdZdZdgZdgZdgZdee e j�fde fde fd ej fgd edfdejfd efdefgd edfdejfdejfdejfdejfdejfdejfdefdefdefdejfdejfde fg ed�ed�defdedfged�ed �gd!�Zd"d#� Zd$S )%r z� Lexer for `Limbo programming language <http://www.vitanuova.com/inferno/limbo.html>`_ TODO: - maybe implement better var declaration highlighting - some simple syntax error highlighting .. versionadded:: 2.0 �Limbo�limboz*.bz text/limboz^(\s*)([a-zA-Z_]\w*:(\s*)\n)z\nz\s+z#(\n|(.|\n)*?[^\\]\n)�"z#popzO\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|[0-7]{1,3})z [^\\"\n]+z\\�stringz2'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'z (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+z(\d+\.\d*|\.\d+|\d+[fF])z16r[0-9a-fA-F]+z8r[0-7]+z((([1-3]\d)|([2-9]))r)?(\d+)z [()\[\],.]z%[~!%^&*+=|?:<>/-]|(->)|(<-)|(=>)|(::)z�(alt|break|case|continue|cyclic|do|else|exitfor|hd|if|implement|import|include|len|load|orpick|return|spawn|tagof|tl|to|while)\bzK(byte|int|big|real|string|array|chan|list|adt|fn|ref|of|module|self|type)\bz(con|iota|nil)\bz[a-zA-Z_]\w*� whitespace� statementsz[{}]�;� statement)r r r r �rootc C s t �d| t j�r dS d S )Nz^implement \w+;gffffff�?)�re�search� MULTILINE)�text� r �9/usr/lib/python3/dist-packages/pygments/lexers/inferno.py�analyse_textP s �zLimboLexer.analyse_textN)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypesr r r �Labelr �Singler �Escape�Charr �Float�Hex�Oct�Integerr r r �Type�Constantr r �tokensr r r r r r s` ����������-)r"