+
    TBifB                     $   R t ^ RIt^ RIHtHtHtHtHtHt ^ RI	H
t
HtHtHtHtHtHtHtHtHt ^ RIHtHtHt ^ RIHt ^ RIHt ^ RIHt . ROtR]! ]
P>                  ]4      3t  ! R R]4      t! ! R R]!4      t" ! R R	]!4      t# ! R R
]4      t$R# )z
pygments.lexers.csound
~~~~~~~~~~~~~~~~~~~~~~

Lexers for Csound languages.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)
RegexLexerbygroupsdefaultincludeusingwords)
CommentErrorKeywordNameNumberOperatorPunctuationStringText
Whitespace)OPCODESDEPRECATED_OPCODESREMOVED_OPCODES)	HtmlLexer)PythonLexer)LuaLexerCsoundScoreLexerCsoundOrchestraLexerCsoundDocumentLexerz((?:(?:;|//).*)*)(\n)c            
          ] tR t^tRt/ RR]3R]P                  3R]P                  3R]	! ]
]4      3.bRR]P                  3R	]P                  R
3R]P                  R3R]P                  R3R]P                  R3.bR]! R4      R]R3.bR
]! R4      R]R93.bRR]3]! R4      R]	! ]P                  ]4      R:3R]P                  R;3.bR]! R4      R]P                  3R]3R]R;3.bRR]3]! R4      R]R<3.bRR]P                  3R]P                  3R ]R3.bR]! R4      R]P                  R3.bR!R"]	! ]P                  ]4      R#3R$]P                  3.bR#R%]P                  3R]3R]R&3R']R(3R)]P                  R*3R]R3.bR&R+]P                  3R,]3]! R4      .bR(R+]P                  3R,]3]! R-4      .bR*R.]P                  3R)]P                  R/3R]P                  R3.bR0]! R4      ]! R!4      .bR1R2]P"                  3R3]	! ]P&                  ]P(                  4      3R4]P*                  3.bRR]R3R5]3]! R!4      R6]3.bR-. /CtR7tR8# )=CsoundLexerzhttps://csound.com/
whitespacez[ \t]+z/[*](?:.|\n)*?[*]/(?:;|//).*$z(\\)(\n)preprocessor directivesz)#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+z#includestrzincludestr directivez#includezinclude directivez#[ \t]*definezdefine directivez#(?:ifn?def|undef)\bzmacro directivez([^ \t]).*?\1#pop"quoted string\nz([A-Z_a-z]\w*)(\()macro parameter name list[A-Z_a-z]\w*before macro bodyz['#]z\)#
macro bodyz(?:\\(?!#)|[^#\\]|\n)+z\\#z(?<!\\)#
macro usesz(\$[A-Z_a-z]\w*\.?)(\()zmacro parameter value listz\$[A-Z_a-z]\w*(?:\.|\b)z(?:[^\'#"{()]|\{(?!\{))+z#macro parameter value quoted string\{\{z#macro parameter value braced stringz\(z#macro parameter value parentheticalz\\[#'()]z[#'()]braced stringz(?:[^\\()]|\\\))+z#pushwhitespace and macro usesnumbersz2\d+[Ee][+-]?\d+|(\d+\.\d*|\d*\.\d+)([Ee][+-]?\d+)?z(0[Xx])([0-9A-Fa-f]+)\d+z[^"$]+z[$] N)r    r"   )r    r$   )r    r&   )r    r(   )__name__
__module____qualname____firstlineno__urlr   r   	MultilineSingler   r   Preprocr   r   r   r	   r   Floatr
   TypeHexIntegertokens__static_attributes__r/       ;/usr/lib/python3.14/site-packages/pygments/lexers/csound.pyr   r      s   
Ch
#"G$5$56W^^,(445	
h 	"97??KW__.DE'//+>?w0BC$goo7HI$
h  	L!vv.
!h( 	L!645!
)h2 	JL!"HW__k$J24goo/LM
3h@ 	$L!goo.k"K!>?	&
AhL 	JL!; 67
MhV 	&8W__%+v.
Whb 	L!goov6
chl 	''//;)O)+'9
mhv 	%('//:k"6@AfCDGOO%JKK('
whF 	.'//*O$0
GhP 	.'//*O$0
QhZ 	.!7??3GOOW-GOOV,0
[hf 	$L!L!&
ghp 	BFLLQ%xfjj'IJV^^$
qh| 	66"L!V	
}hJ 	 
KhFr>   r   c                      ] tR t^tRtRtRR.tR.tRtRR]	3]
! R	4      ]
! R
4      R]3R]P                  3R]! ]]P                  4      3R]R3]
! R4      R]3R]3R]R3R]P(                  R3.R]
! R	4      R]P,                  3R]	R3.R]
! R	4      R]P                  R"3.R]
! R	4      R]P(                  R#3.RR]P(                  R3]
! R4      .RR]R3R]3./tR tR!# )$r   z,
For `Csound <https://csound.com>`_ scores.
zCsound Scorezcsound-scorez
csound-scoz*.sco2.1rootr#   r,   r   z[aBbCdefiqstvxy]zz([nNpP][pP])(\d+)z[mn]zmark statementr-   z[!+\-*/^%&|<>#~.]z[()\[\]]r!   r"   z\{zloop after left bracer%   r    r.   loop after repeat countloopz\}r+   \}\}z[^}]|\}(?!\})r/   N)r    rD   )r    rE   )r0   r1   r2   r3   __doc__namealiases	filenamesversion_addedr   r   r
   Constantr   r   r;   r   r   r   r   r7   r   Labelr<   r=   r/   r>   r?   r   r      sa    D|,G	IM 	J/0-. '* 7##$ "8GV^^#DEg/0I!8,+&6?+GOO%<=/
4 	/0djj)J'
 	 /0V^^%HI"
 	"/0goo/?@$
 	GOOV,FO
 	ff%v&
a4Fr>   c                   2  a  ] tR t^t o RtRtRR.tRR.tRt]	! 4       t
R tR	 t/ R
R]3R]! ]]P                   ]]4      3]! R4      ]! R4      R]P(                  R3R]P(                  R3R]P(                  3]! R4      .bRR]P*                  P,                  3]! R4      R]3R]3R]R3R]R3]! RLRRR7      ]3]! RMRRR7      ]P4                  3R]R 3R!]! ]P4                  ]4      R 3R"]! ]P4                  ]4      RN3R$]! ]P4                  ]4      RO3R%]! ]P4                  ]4      RP3R&]P6                  R'3R(]P6                  R)3R*]P6                  R+3R,]P6                  R-3R.]P*                  P8                  3R/]3.bR]! R4      R0]P:                  3R1]3R]R23.bR]! R4      R3]RQ3R]R23.bR4]! R4      R5]P<                  3R6]3R]R23.bRR]R23R7]3]! R84      ]! R94      ]! R:4      R;]3.bRR<]R23R=]3]! R94      ]! R:4      R>]3.bR9R?]P>                  3.bR:R@]P@                  3RA]P>                  3.bR#]! R4      R6]R23]! R4      .bR ]! R4      RB]P                   R23]!! R24      .bR']! R4      R]RC3]!! R24      .bRCRD]P>                  3RE]P>                  3]! R4      .bR)]! R4      R]R3R]RF3R]R23.bRFR<]R23RG]"! ]#4      3.bR+]! R4      R]R3R]RH3R]R23.bRHR<]R23RG]"! ]$4      3.bR-]! R4      R]R3R]RI3R]R23.RIR<]R23RG]"! ]%4      3./Ct&RJt'V t(RK# )Rr   z0
For `Csound <https://csound.com>`_ orchestras.
zCsound Orchestracsoundz
csound-orcz*.orcz*.udorA   c              #     "   VP                  ^ 4      pV P                  P                  V4       VP                  4       \        P
                  V3x  R# 5i)    N)groupuser_defined_opcodesaddstartr   Function)lexermatchopcodes   && r?   opcode_name_callback)CsoundOrchestraLexer.opcode_name_callback   s=     Q""&&v.kkmT]]F22s   AAc              #  D  "   \         P                  pVP                  ^4      pV\        9   g   V\        9   g   V\
        9   d%   VP                  4       \        P                  V3x  MW0P                  9   d%   VP                  4       \        P                  V3x  M\        p\        P                  ! RV4      pV'       d^   VP                  ^4      \         P                  VP                  ^4      3x  VP                  ^4      \        VP                  ^4      3x  MVP                  4       \        V3x  VP                  ^4      '       dP   VP                  ^4      \        VP                  ^4      3x  VP                  ^4      W!P                  ^4      3x  R# R# 5i)   z^(g?[afikSw])(\w+)N)r
   r9   rR   r   r   r   rU   r   BuiltinrS   rV   researchr   )rW   rX   type_annotation_tokenrH   
name_matchs   &&   r?   name_callback"CsoundOrchestraLexer.name_callback   s.     '{{1~7?d&88DO<S++-t33///++-44$(!#8$?J &&q)7<<9I9I!9LLL &&q)41A1A!1DDDkkmT4//;;q>>++a.+u{{1~==++a."7QGG s   B?F BF AF rB   r#   z^([ \t]*)(\w+)(:)([ \t]+|$)r,   r   z	\binstr\bz"instrument numbers and identifiersz
\bopcode\bzafter opcode keywordz\b(?:end(?:in|op))\bzpartial statementsz-\b(?:0dbfs|A4|k(?:r|smps)|nchnls(?:_i)?|sr)\br-   u@   \+=|-=|\*=|/=|<<|>>|<=|>=|==|!=|&&|\|\||[~¬]|[=!+\-*/^%&|<>#?:]z	[(),\[\]]r!   r"   r*   r+   z\b)prefixsuffixz\b[ik]?goto\b
goto labelz"\b(r(?:einit|igoto)|tigoto)(\(|\b)z\b(c(?:g|in?|k|nk?)goto)(\(|\b)goto argumentz\b(timout)(\(|\b)z\b(loop_[gl][et])(\(|\b)z\bprintk?s\bzprints opcodez"\b(?:readscore|scoreline(?:_i)?)\bzCsound score opcodez\bpyl?run[it]?\bzPython opcodez\blua_(?:exec|opdef)\bz
Lua opcodez\bp\d+\bz$\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\bz\d+|[A-Z_a-z]\w*z[+,]r    r%   opcode type signaturesz0|[afijkKoOpPStV\[\]]+,z
[^\\"$%)]+r)   zescape sequenceszformat specifiersz[\\$%)]rF   z(?:[^\\%)}]|\}(?!\}))+z[\\%)]z\\(?:[\\abnrt"]|[0-7]{1,3})z'%[#0\- +]*\d*(?:\.\d+)?[AE-GXac-giosux]z%%z\w+zprints quoted stringz\\\\[aAbBnNrRtT]z%[!nNrRtT]|[~^]{1,2}zCsound scorez([^}]+)|\}(?!\})PythonLuar/   N)doelseelseifendifenduntilfiifithenkthenodthenuntilwhile)returnrireturn)rg   rh   )rg   rh   rh   )rg   rh   rh   rh   )r    ri   ))r0   r1   r2   r3   rG   rH   rI   rJ   rK   setrS   rZ   rc   r   r   r   rM   r   r   r
   DeclarationVariableGlobalr   r   r   Pseudor^   InstancerV   r9   EscapeInterpolr   r   r   r   r   r<   r=   __classdictcell__)__classdict__s   @r?   r   r      sP     D&G'"IM53
H*hJ+Xj$**k[e-fg/0-.7..0TUG//1GH$g&9&9:()
h  	=t}}?S?STIPRZ[;'6?+fo.   / 189 )%FWw52HW^^[4Y/'..+1V,.!8GNNK#H=?((7>>;*ONP dllO<2DLLBWX $,,@&lC$--0014mDA!
!hf 	-/0 $--0k"J'	/
ght 	/024VWJ'!
uh~ 	!/0 '5;J'#
hR 	66"F#L!&''( 
Shb 	ff%&/&''(
chp 	+V]];
qhZ 	7IFMM"
[hd 	/0;'()
ehn 	/0TZZ(FO
ohz 	/0612FO
{hD 	 &--0$fmm4O$!
EhP 	/06?+fn-J'	 
Qh\ 	ff% %(8"9:
]hf 	/06?+fh'J'	
ghr 	ff% %"45
sh| 	/06?+fe$J'	
 	ff% %/2
IhFr>   c                      ] tR tRtRtRtRR.tR.tRtRt	R	R
]
P                  3R]
P                  3R]3R]P                  R&3R]P                  R'3R]P                  R(3R]P                  R3R]P                  3.RR]P                  R3R]! ]4      3.RR]P                  R3R]! ]4      3.RR]P                  R3R]! ]4      3.RR]3R]P*                  R3R ]P                  R3.RR]3R!]R3R"]R3R#]R3./tR$tR%# ))r   i  z
For Csound documents.
zCsound Documentzcsound-documentz
csound-csdz*.csdzhttps://csound.comrA   rB   z/[*](.|\n)*?[*]/r   z[^/;<]+|/(?!/)z<\s*CsInstruments	orchestratagz<\s*CsScorescorez<\s*[Hh][Tt][Mm][Ll]HTMLz<\s*[\w:.-]+z<\s*/\s*[\w:.-]+\s*>z<\s*/\s*CsInstruments\s*>r    z%(.|\n)+?(?=<\s*/\s*CsInstruments\s*>)z<\s*/\s*CsScore\s*>z(.|\n)+?(?=<\s*/\s*CsScore\s*>)z<\s*/\s*[Hh][Tt][Mm][Ll]\s*>z((.|\n)+?(?=<\s*/\s*[Hh][Tt][Mm][Ll]\s*>)z\s+z[\w.:-]+\s*=attrz/?\s*>z".*?"z'.*?'z[^\s>]+r/   N)r   r   )r   r   )r   r   )r0   r1   r2   r3   rG   rH   rI   rJ   r4   rK   r   r5   r6   r   r   Tagr   r   r   r   r   	Attributer   r<   r=   r/   r>   r?   r   r     sr    D ,/G	I
CM 	 '"3"34W^^,%!488-ABTXX'78$dhh@dhh.$dhh/
 	)488V<5u=Q7RS
 	#TXXv6/7G1HI
 	,dhh?8%	:JK

 	Z dnnf5&)

 	Z vv&vv&(	
A&Fr>   )r   r   r   )%rG   r_   pygments.lexerr   r   r   r   r   r   pygments.tokenr   r	   r
   r   r   r   r   r   r   r    pygments.lexers._csound_builtinsr   r   r   pygments.lexers.htmlr   pygments.lexers.pythonr   pygments.lexers.scriptingr   __all__r6   newliner   r   r   r   r/   r>   r?   <module>r      s    
 O O   Y Y * . .
M#Xgnnd%C
Dk* k\>{ >BN; Nb8* 8r>   