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� � @ s, d Z ddlZddlmZmZmZmZmZmZ ddl m Z mZmZm Z mZmZmZmZmZmZmZ ddlmZmZ g d�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#dS )z� pygments.lexers.scripting ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for scripting and embedded languages. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�bygroups�default�combined�words)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Error� Whitespace�Other)�get_bool_opt�get_list_opt)�LuaLexer�MoonScriptLexer�ChaiscriptLexer�LSLLexer�AppleScriptLexer� RexxLexer�MOOCodeLexer�HybrisLexer�EasytrieveLexer�JclLexer�MiniScriptLexerc @ s� e Zd ZdZdZdgZddgZddgZdZd Z d Z dee e f ZdZd e jfed�gee jfe e jfe efged�dejfdejfdejfdejfdefdedfdefdefdefdejfdejfdejdfdejfdejfd ejd!fd"e fd#eje!d$d%�fd&ej"e!d$d'�fged�d(efd)eef e j#fee j$d*fd+ed*fged�ee j%d*fged�ded*fee j%fgd,ej&fgd#ejd*fd-ejfgd&ej"d*fd.ej"fgd/� Z'd0d1� Z(d2d3� Z)d4S )5r a� For `Lua <http://www.lua.org>`_ source code. Additional options accepted: `func_name_highlighting` If given and ``True``, highlight builtin function names (default: ``True``). `disabled_modules` If given, must be a list of module names whose function names should not be highlighted. By default all modules are highlighted. To get a list of allowed modules have a look into the `_lua_builtins` module: .. sourcecode:: pycon >>> from pygments.lexers._lua_builtins import MODULES >>> MODULES.keys() ['string', 'coroutine', 'modules', 'io', 'basic', ...] �Lua�luaz*.luaz*.wluaz text/x-luazapplication/x-luaz-(?:--\[(?P<level>=*)\[[\w\W]*?\](?P=level)\])z (?:--.*$)z(?:\s+)z(?:%s|%s|%s)z(?:[^\W\d]\w*)z#!.*�base�wsz'(?i)0x[\da-f]*(\.[\da-f]*)?(p[+-]?\d+)?�#(?i)(\d*\.\d+|\d+\.\d*)(e[+-]?\d+)?�(?i)\d+e[+-]?\d+�\d+�(?s)\[(=*)\[.*?\]\1\]z::�labelz\.{3}z[=<>|~&+\-*/%#^]+|\.\.z[\[\]{}().,:;]�(and|or|not)\bzE(break|do|else|elseif|end|for|if|in|repeat|return|then|until|while)\bzgoto\b�gotoz (local)\b�(true|false|nil)\bz(function)\b�funcname�[A-Za-z_]\w*(\.[A-Za-z_]\w*)?�'�stringescape�sqs�"�dqsz[.:]z %s(?=%s*[.:])�#popz\(zM\\([abfnrtv\\"\']|[\r\n]{1,2}|z\s*|x[0-9a-fA-F]{2}|\d{1,3}|u\{[0-9a-fA-F]+\})z[^\\']+z[^\\"]+) �rootr# r"