o a'@s~dZddlmZddlmZmZmZmZmZm Z m Z ddl m Z m Z mZmZmZmZmZmZmZmZdgZGdddeZdS)z pygments.lexers.fantom ~~~~~~~~~~~~~~~~~~~~~~ Lexer for the Fantom language. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. )Template) RegexLexerincludebygroupsusingthisdefaultwords) TextCommentOperatorKeywordNameStringNumber PunctuationLiteral Whitespace FantomLexerc @seZdZdZdZdgZdgZdgZddZidd e j fd e j fd e j fd e j fgd de fde fde jfde jfde jfdejfdedfdedfdejfdeejeejeeefdeejeejeejfdefedeeeddefdefed eeeddefgdd!ejfd"ejfd#ejfd$ejfd%ejfded&fd'efgdd!ejfd"ejfd#ejfd$ejfd%ejfded&fd'ej fgd(d)efgd*d+efgd,d-efgd.d/efgd0e!d1d2d2d3efd4ej"j#fgd5d6e$fgdd7efed8ejfe%d&gd9e&de&d(e&d*e&d,e&d.e&d e&d0e&d5d:ejd;fdeee(ejd?fed@eeedde(ej)e(e$fedAeej)e(e$fedBee$eje(edCfedDee$ejfdEeee(eje(edFfedGeeedde(eje(edFfedHeeedde(ej)e(efedIeeedde(ej)e(ee(eeddefedJeeedde(ej)e(efedKeeedde(ej)fdLedCfdMedNfdOe(fd'e*fgdCdPed&fe&d9gdFdPed&fedQeeedde(ej)e(ed&fe&d9gdNdRed&fe&d9gd?dOe(fdSefdTeejeejfdMed&fgd;dUe(fdVeee j efdWeeejefdXedYfe%d&gdUe(fdZeej+e(ejd[fd\ejfe%d[gdOe(fdMed]fe%d&ge&de&d e&d5dOe(fd^ee(ee(e$fdRed&fdOe(fd'e*fgd_Z,d`S)arz< For Fantom source code. .. versionadded:: 1.5 Fantomfanz*.fanzapplication/x-fantomcCst|tdddddS)Nz [\"\w\.]+z\n|;z [a-zA-Z_]\w*z#(?:\[|[a-zA-Z_]|\|)[:\w\[\]|\->?]*?)podeosidtype)r substitutedict)strr8/usr/lib/python3/dist-packages/pygments/lexers/fantom.pys!sz FantomLexer.scommentsz (?s)/\*.*?\*/z//.*?$z\*\*.*?$z#.*$literalsz \b-?[\d_]+(ns|ms|sec|min|hr|day)z(\b-?[\d_]*\.[\d_]+(ns|ms|sec|min|hr|day)z\b-?(\d+)?\.\d+(f|F|d|D)?z\b-?0x[0-9a-fA-F_]+z \b-?[\d_]+z'\\.'|'[^\\]'|'\\u[0-9a-f]{4}'" insideStr` insideUriz\b(true|false|null)\bz"(?:(\w+)(::))?(\w+)(<\|)(.*?)(\|>)z(?:(\w+)(::))?(\w+)?(#)(\w+)?z\[,\]z($type)(\[,\])inType)statez\[:\]z($type)(\[:\])z\\\\z\\"z\\`z\$\w+z \$\{.*?\}z#pop.protectionKeywordsz'\b(public|protected|private|internal)\b typeKeywordsz,\b(abstract|final|const|native|facet|enum)\bmethodKeywordsz8\b(abstract|native|once|override|static|virtual|final)\b fieldKeywordszB\b(abstract|const|final|native|override|static|virtual|readonly)\b otherKeywords)trycatchthrowfinallyforifelsewhileasisisnotswitchcasercontinuebreakdoreturngetsetz\b)prefixsuffixz\b(it|this|super)\b operatorsz4\+\+|\-\-|\+|\-|\*|/|\|\||&&|<=>|<=|<|>=|>|=|!|\[|\]z [\[\]|\->:?]z$idrootzusing\brz@\w+facetz(class|mixin)(\s+)(\w+) inheritancez($type)([ \t]+)($id)(\s*)(:=)z($id)(\s*)(:=)z(\.|(?:\->))($id)(\s*)(\() insideParenz(\.|(?:\->))($id)z(new)(\s+)(make\w*)(\s*)(\()insideMethodDeclArgsz($type)([ \t]+)($id)(\s*)(\()z($type)(\s+)($id)(\s*)(,)z+($type)(\s+)($id)(\s*)(\->)(\s*)($type)(\|)z($type)(\s+)($id)(\s*)(\|)z($type)([ \t]+)($id)z\(z\{ insideBracez\s+z\)z($type)(\s+)($id)(\s*)(\))z\}z:|,z(?:(\w+)(::))?(\w+)z[ \t]+z (\[)(\w+)(\])z(\")?([\w.]+)(\")?z:: usingClassz(as)(\s+)(\w+)z#pop:2z[\w$]+ facetFieldsz(\s*)(\w+)(\s*)(=))rKrFrLN)-__name__ __module__ __qualname____doc__namealiases filenames mimetypesr r MultilineSingleSpecialrFloatHexIntegerrCharrr Constantrr NamespaceClassFunctionrrrEscapeInterpolBacktickr BuiltinPseudor rr DecoratorrVariabler Declarationtokensrrrrrs   (147;? GJ P    %)0  : N)rPstringrpygments.lexerrrrrrrr pygments.tokenr r r r rrrrrr__all__rrrrrs  $0