0000002a
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã505_‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ ù    ‹      ­”]oÓ0†ï÷+Œ/¸kN¿6Äæ�f][uA€Bnì6f©Ù§ëÊ¯Çi:- –Ï]Å¯ÏyŸ³gÉd�~œ^‘7éõˆLß½„¶ Þ÷ IšÔý¨Ý¸SBsÄò`³ÙD›^dÝÒä¸*úàÑé#‰’òV­ñÂr%dø†Å‡Fª{bì½–ª¥³`î‚°åU± g-ÂÚ;ð¹p
Œ•êËÊÊu¡<V
ŸGáL©nÔaC"Øgbs+·•�ÎÓ'1w(b¾ËYg˜“;Qè¥‰)Ú’r¦WKâ]SÐ™5æ…0·ÑR/(ÆôÓp0ùtÁHuš3A‚£EL_âñÅ$N(‹•b k®ƒæ’ò‘ðH‚W½ÐJßÔâýíxÀ¤Ö$ÊgN—¨­y”B@l¢f¶ð¥¬§� wMU-‘¿»‘ýpÓËÙÕ8M†³úJdâÑÝ?–ŽòiX3HíT†Öm÷DuøçfîË‹‡)Ùûuz™#å„´ÈAå_@¢ºÇ&dú!=ˆ§«�¾zÊFMŸ?ë¶»g­ö‹V»Oº½óN‡�cÝ³·ÿK°6·ÆnL"tÁAˆ2TT,U0oåÍÙSÀœ¾lÿ¢Ø™°ÿgìžõûô(I    B   ˆl–Ým_J *eJe@=q–®4Ê˜´o�þDø[Y¹B)cjA8RùÆ„¿Å_ŠI|¥�+Wé3ž¯ÅÄ )    """
    pygments.lexers.webidl
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Web IDL, including some extensions.

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

from pygments.lexer import RegexLexer, default, include, words
from pygments.token import Comment, Keyword, Name, Number, Punctuation, \
    String, Text

__all__ = ['WebIDLLexer']

_builtin_types = (
    # primitive types
    'byte', 'octet', 'boolean',
    r'(?:unsigned\s+)?(?:short|long(?:\s+long)?)',
    r'(?:unrestricted\s+)?(?:float|double)',
    # string types
    'DOMString', 'ByteString', 'USVString',
    # exception types
    'Error', 'DOMException',
    # typed array types
    'Uint8Array', 'Uint16Array', 'Uint32Array', 'Uint8ClampedArray',
    'Float32Array', 'Float64Array',
    # buffer source types
    'ArrayBuffer', 'DataView', 'Int8Array', 'Int16Array', 'Int32Array',
    # other
    'any', 'void', 'object', 'RegExp',
)
_identifier = r'_?[A-Za-z][a-zA-Z0-9_-]*'
_keyword_suffix = r'(?![\w-])'
_string = r'"[^"]*"'


class WebIDLLexer(RegexLexer):
    """
    For Web IDL.

    .. versionadded:: 2.6
    """

    name = 'Web IDL'
    url = 'https://www.w3.org/wiki/Web_IDL'
    aliases = ['webidl']
    filenames = ['*.webidl']

    tokens = {
        'common': [
            (r'\s+', Text),
            (r'(?s)/\*.*?\*/', Comment.Multiline),
            (r'//.*', Comment.Single),
            (r'^#.*', Comment.Preproc),
        ],
        'root': [
            include('common'),
            (r'\[', Punctuation, 'extended_attributes'),
            (r'partial' + _keyword_suffix, Keyword),
            (r'typedef' + _keyword_suffix, Keyword, ('typedef', 'type')),
            (r'interface' + _keyword_suffix, Keyword, 'interface_rest'),
            (r'enum' + _keyword_suffix, Keyword, 'enum_rest'),
            (r'callback' + _keyword_suffix, Keyword, 'callback_rest'),
            (r'dictionary' + _keyword_suffix, Keyword, 'dictionary_rest'),
            (r'namespace' + _keyword_suffix, Keyword, 'namespace_rest'),
            (_identifier, Name.Class, 'implements_rest'),
        ],
        'extended_attributes': [
            include('common'),
            (r',', Punctuation),
            (_identifier, Name.Decorator),
            (r'=', Punctuation, 'extended_attribute_rest'),
            (r'\(', Punctuation, 'argument_list'),
            (r'\]', Punctuation, '#pop'),
        ],
        'extended_attribute_rest': [
            include('common'),
            (_identifier, Name, 'extended_attribute_named_rest'),
            (_string, String),
            (r'\(', Punctuation, 'identifier_list'),
            default('#pop'),
        ],
        'extended_attribute_named_rest': [
            include('common'),
            (r'\(', Punctuation, 'argument_list'),
            default('#pop'),
        ],
        'argument_list': [
            include('common'),
            (r'\)', Punctuation, '#pop'),
            default('argument'),
        ],
        'argument': [
            include('common'),
            (r'optional' + _keyword_suffix, Keyword),
            (r'\[', Punctuation, 'extended_attributes'),
            (r',', Punctuation, '#pop'),
            (r'\)', Punctuation, '#pop:2'),
            default(('argument_rest', 'type'))
        ],
        'argument_rest': [
            include('common'),
            (_identifier, Name.Variable),
          