0
     MˆÐÏÖ546ÎÁÓ "    M‹      Õ–_oÓ0Åß÷)ŒxKnÓu:Çh4•¨ÔµUW„âÁ‰�ÄÂ‰#Û[)Ÿ§iYA+ÿ$}‰o’Ÿß¹‘rCž$óÑêÝbŒ^¯n¦hñæÕt2B8 x{>HVIwcö"€ñ#\:×Öëu¸>µ)`µ„ÒUj Ö™¹�;Žéi¯Ñ3DJÁ¸_qÒ)A'5Ÿ�Îè;g%ý}\W¬¨y.•¹¨tXÚ0Óºñ\g6°VíÕ¸g”L¡)¨4¿SÂÂóp@ 3òÖ°ó&©æ›)úöÞe—¥[Š¶4”¸Ý3%‹:ÆN7˜YÈš,Æ 3][H«?†…Ì1bÊÅøýd4ÿàuàÊöiJ*�ÈcürÏ®æq‚éŒU‚ {\sã5×˜N™uÈóÉ\
~T|Û‰oåçã&�&63²qR×Rð£fZÙ†ù¬>AiU�„ÿ¬,û¦‹ëåx¶J&Ë®%¼Ýâ�î¯¼LLÌˆÚ¡D‘9m6»¼�ùÓ:µÍÕþíÒY”S„ô¨ò7Z�kÅ…9lÂ±ø¬aYéÃcº¯I¿Cë÷úAoD(ê{Ïú/2d…ôüíñÙÕ–]�"»¨RÁ=}·žÞTž¾=ž»ÿÚð´ðø»âôQH?ö7>Ã×òÇ).ƒ(
ú/Pïrè³üYŠ_4°Á¶óŸ@÷KòSük‚õ        OˆÒ�þ]x`Y¹B)cjA8Rù×„d<ÖÑÁÓ ?÷     O"""
    pygments.lexers.pascal
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Pascal family languages.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
"""

import re

from pygments.lexer import Lexer
from pygments.util import get_bool_opt, get_list_opt
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
    Number, Punctuation, Error, Whitespace
from pygments.scanner import Scanner

# compatibility import
from pygments.lexers.modula2 import Modula2Lexer

__all__ = ['DelphiLexer', 'PortugolLexer']


class PortugolLexer(Lexer):
    """For Portugol, a Pascal dialect with keywords in Portuguese."""
    name = 'Portugol'
    aliases = ['portugol']
    filenames = ['*.alg', '*.portugol']
    mimetypes = []
    url = "https://www.apoioinformatica.inf.br/produtos/visualg/linguagem"

    def __init__(self, **options):
        Lexer.__init__(self, **options)
        self.lexer = DelphiLexer(**options, portugol=True)

    def get_tokens_unprocessed(self, text):
        return self.lexer.get_tokens_unprocessed(text)


class DelphiLexer(Lexer):
    """
    For Delphi (Borland Object Pascal),
    Turbo Pascal and Free Pascal source code.

    Additional options accepted:

    `turbopascal`
        Highlight Turbo Pascal specific keywords (default: ``True``).
    `delphi`
        Highlight Borland Delphi specific keywords (default: ``True``).
    `freepascal`
        Highlight Free Pascal specific keywords (default: ``True``).
    `units`
        A list of units that should be considered builtin, supported are
        ``System``, ``SysUtils``, ``Classes`` and ``Math``.
        Default is to consider all of them builtin.
    """
    name = 'Delphi'
    aliases = ['delphi', 'pas', 'pascal', 'objectpascal']
    filenames = ['*.pas', '*.dpr']
    mimetypes = ['text/x-pascal']

    TURBO_PASCAL_KEYWORDS = (
        'absolute', 'and', 'array', 'asm', 'begin', 'break', 'case',
        'const', 'constructor', 'continue', 'destructor', 'div', 'do',
        'downto', 'else', 'end', 'file', 'for', 'function', 'goto',
        'if', 'implementation', 'in', 'inherited', 'inline', 'interface',
        'label', 'mod', 'nil', 'not', 'object', 'of', 'on', 'operator',
        'or', 'packed', 'procedure', 'program', 'record', 'reintroduce',
        'repeat', 'self', 'set', 'shl', 'shr', 'string', 'then', 'to',
        'type', 'unit', 'until', 'uses', 'var', 'while', 'with', 'xor'
    )

    DELPHI_KEYWORDS = (
        'as', 'class', 'except', 'exports', 'finalization', 'finally',
        'initialization', 'is', 'library', 'on', 'property', 'raise',
        'threadvar', 'try'
    )

    FREE_PASCAL_KEYWORDS = (
        'dispose', 'exit', 'false', 'new', 'true'
    )

    BLOCK_KEYWORDS = {
        'begin', 'class', 'const', 'constructor', 'destructor', 'end',
        'finalization', 'function', 'implementation', 'initialization',
        'label', 'library', 'operator', 'procedure', 'program', 'property',
        'record', 'threadvar', 'type', 'unit', 'uses', 'var'
    }

    FUNCTION_MODIFIERS = {
        'alias', 'cdecl', 'export', 'inline', 'interrupt', 'nostackframe',
        'pascal', 'register', 'safecall', 'softfloat', 'stdcall',
        'varargs', 'name', 'dynamic', 'near', 'virtual', 'external',
        'override', 'assembler'
    }

    # XXX: those aren't global. but currently we know no way for defining
    #      them just for the type cont