File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/oberon.cpython-310.pyc
Back
o ;jx � @ sb d Z ddlZddlmZmZmZ ddlmZmZm Z m Z mZmZm Z mZ dgZG dd� de�ZdS )z� pygments.lexers.oberon ~~~~~~~~~~~~~~~~~~~~~~ Lexers for Oberon family languages. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�words)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�ComponentPascalLexerc @ s@ e Zd ZdZdZddgZddgZdgZdZd Z e je jB Z ed �ed�ed�ed �ed�ed�ed�ed�gdefdefgdejfgdefgdejfdejfdejfdejfdejfgdefdefgdefdefdefd efd!efd"efd#efd$efd%efg d&efged'd(d)�ejfed*d(d)�ejfd+ejfgd,� Zd-d.� Z d/S )0r z+ For Component Pascal source code. zComponent PascalZcomponentpascalZcpz*.cpz*.cpsztext/x-component-pascalzhttps://blackboxframework.orgz2.1� whitespace�comments�punctuation�numliterals�strings� operators�builtins�identifiersz\n+z\s+z\(\*([^$].*?)\*\)z[()\[\]{},.:;|]z[0-9A-F]+X\bz[0-9A-F]+[HL]\bz[0-9]+\.[0-9]+E[+-][0-9]+z[0-9]+\.[0-9]+z[0-9]+z '[^\n']*'z "[^\n"]*"z[+-]z[*/]z[=#<>]z\^�&�~z:=z\.\.z\$z([a-zA-Z_$][\w$]*))ZANYPTRZANYRECZBOOLEANZBYTEZCHARZINTEGERZLONGINTZREALZSET� SHORTCHAR�SHORTINTZ SHORTREALz\b)�suffix)>ZABSZABSTRACT�ARRAYZASH�ASSERT�BEGINZBITSZBYZCAPZCASEZCHRZCLOSEZCONSTZDECZDIVZDO�ELSEZELSIFZEMPTY�ENDZENTIERZEXCLZEXITZ EXTENSIBLEZFORZHALTZIFZIMPORT�INZINCZINCLZISZLENZLIMITEDZLONGZLOOP�MAXZMINZMOD�MODULEZNEWZODDZOF�ORZORDZOUT�POINTER� PROCEDURE�RECORD�REPEATZRETURNZSHORTr r ZSIZEZTHENZTYPEZTOZUNTILZVARZWHILEZWITHz(TRUE|FALSE|NIL|INF)\b) �rootr r r r r r r r c C sH d}d| v r |d7 }d| v r|d7 }d| v r|d7 }d| v r"|d7 }|S )z�The only other lexer using .cp is the C++ one, so we check if for a few common Pascal keywords here. Those are unfortunately quite common across various business languages as well.r r g{�G�z�?r r% r"