K i hdZddlZddlmZmZddlmZmZmZm Z m Z m Z m Z m Z mZdgZGddeZy)z pygments.lexers.carbon ~~~~~~~~~~~~~~~~~~~~~~ Lexers for the Carbon programming language. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerwords) TextCommentOperatorKeywordNameStringNumber Punctuation Whitespace CarbonLexerceZdZdZdZdZdgZdgZdgZdZ e je jzZ dd efd efd efd ej"fd ej$fdej(fdej*feddefdej.fdej0fdej2fdej6fdej8fdej:fdej<fdej>fde fde jBfde"fde#fde$jJfgiZ&d Z'y!)"rz For Carbon source. Carbonz.https://github.com/carbon-language/carbon-langz*.carboncarbonz text/x-carbonz2.15rootz\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) Nrrg?r0r,r+packagelibrarychoiceaddr constraintimpl)textresults \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pygments/lexers/carbon.py analyse_textzCarbonLexer.analyse_textIs t  cMF T> cMF T> cMF   cMF   cMF   cMF t  cMF T> cMF 4  cMF T> cMF N)(__name__ __module__ __qualname____doc__nameurl filenamesaliases mimetypes version_addedre MULTILINEDOTALLflagsr rrSingle Multiliner Namespace DeclarationrPseudoConstantTyper DoubleBinOctHexIntegerr Charrr r Othertokensr>r:r?r=rrsr D :C IjG !IM 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?)rCrJpygments.lexerrrpygments.tokenrrrrr r r r r __all__rr:r?r=r`s8 ,$$$ /L*Lr?