|e ldZddlZddlmZmZmZddlmZmZm Z m Z m Z m Z m Z mZmZdgZGddeZy)z pygments.lexers.carbon ~~~~~~~~~~~~~~~~~~~~~~ Lexers for the Carbon programming language. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerbygroupswords) TextCommentOperatorKeywordNameStringNumber Punctuation Whitespace CarbonLexerceZdZdZdZdZdgZdgZdgZe je jzZ dde fd e fd efd ej fd ej"fd ej&fdej(feddefdej,fdej.fdej0fdej4fdej6fdej8fdej:fdej<fdefdej@fde!fde"fde#jHfgiZ%dZ&y )!rz8 For Carbon source. .. versionadded:: 2.15 Carbonz.https://github.com/carbon-language/carbon-langz*.carboncarbonz text/x-carbonrootz\nz\s+z\\\nz //(.*?)\nz/(\\\n)?[*].*?[*](\\\n)?/z((package|import|api|namespace|library)\bzg(abstract|alias|fn|class|interface|let|var|virtual|external|base|addr|extends|choice|constraint|impl)\b)asornotandbreakcontinuecasedefaultifelse destructorforforallwhilewheretheninisreturnreturnedfriendpartialprivate protectedobserveSelfoverridefinalmatchtypelikez\b)suffixz(self)\bz(true|false)\bzA(auto|bool|string|i8|i16|i32|i64|u8|u16|u32|u64|f8|f16|f32|f64)\bz[0-9]*[.][0-9]+z0b[01]+z0o[0-7]+z0x[0-9a-fA-F]+z[0-9]+z"(\\.|[^"\\])*"z\'(\\.|[^\'\\])\'zm<<=|>>=|<<|>>|<=|>=|\+=|-=|\*=|/=|\%=|\|=|&=|\^=|&&|\|\||&|\||\+\+|--|\%|\^|\~|==|!=|::|[.]{3}|->|=>|[+\-*/&]z[|<>=!()\[\]{}.,;:\?]z [^\W\d]\w*cd}d|vr|dz }d|vr|dz }d|vr|dz }d|vr|dz }d|vr|dz }d|vr|dz }d |vr|dz }d |vr|dz }d |vr|dz }d |vr|dz }|S) Nrr g?r1r-r,packagelibrarychoiceaddr constraintimpl)textresults 8/usr/lib/python3/dist-packages/pygments/lexers/carbon.py analyse_textzCarbonLexer.analyse_textJs t  cMF T> cMF T> cMF   cMF   cMF   cMF t  cMF T> cMF 4  cMF T> cMF N)'__name__ __module__ __qualname____doc__nameurl filenamesaliases mimetypesre MULTILINEDOTALLflagsrrrSingle Multiliner Namespace DeclarationrPseudoConstantTyper DoubleBinOctHexIntegerr Charrr r Othertokensr?r;r@r>rrsm D :C IjG !I LL299 $E  J  Z dO 7>> * )7+<+< = 8':K:K L<=D=P=P RBKP QSZ  [ '.. )  0 0 1"#*<< 1  /  $ &** %  +  '  ( !6;; /@AI K %{ 3 DJJ 'I% 'FRr@)rDrJpygments.lexerrrrpygments.tokenrrrr r r r r r__all__rr;r@r>r`s; 66$$$ /M*Mr@