--- a/eric6/ThirdParty/Pygments/pygments/lexers/_csound_builtins.py Tue Apr 21 19:44:19 2020 +0200 +++ b/eric6/ThirdParty/Pygments/pygments/lexers/_csound_builtins.py Tue Apr 21 19:47:10 2020 +0200 @@ -3,52 +3,56 @@ pygments.lexers._csound_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :copyright: Copyright 2006-2018 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ -# Opcodes in Csound 6.12.0 at commit 6ca322bd31f1ca907c008616b40a5f237ff449db using -# python -c " -# import re, subprocess -# output = subprocess.Popen(['csound', '--list-opcodes0'], stderr=subprocess.PIPE).communicate()[1] -# opcodes = output[re.search(r'^$', output, re.M).end():re.search(r'^\d+ opcodes$', output, re.M).start()].split() -# output = subprocess.Popen(['csound', '--list-opcodes2'], stderr=subprocess.PIPE).communicate()[1] -# all_opcodes = output[re.search(r'^$', output, re.M).end():re.search(r'^\d+ opcodes$', output, re.M).start()].split() +# Opcodes in Csound 6.14.0 using: +# python3 -c " +# import re +# from subprocess import Popen, PIPE +# output = Popen(['csound', '--list-opcodes0'], stderr=PIPE, text=True).communicate()[1] +# opcodes = output[re.search(r'^\$', output, re.M).end() : re.search(r'^\d+ opcodes\$', output, re.M).start()].split() +# output = Popen(['csound', '--list-opcodes2'], stderr=PIPE, text=True).communicate()[1] +# all_opcodes = output[re.search(r'^\$', output, re.M).end() : re.search(r'^\d+ opcodes\$', output, re.M).start()].split() # deprecated_opcodes = [opcode for opcode in all_opcodes if opcode not in opcodes] -# print '''OPCODES = set(\''' -# {} +# # Remove opcodes that csound.py treats as keywords. +# keyword_opcodes = [ +# 'cggoto', # https://csound.com/docs/manual/cggoto.html +# 'cigoto', # https://csound.com/docs/manual/cigoto.html +# 'cingoto', # (undocumented) +# 'ckgoto', # https://csound.com/docs/manual/ckgoto.html +# 'cngoto', # https://csound.com/docs/manual/cngoto.html +# 'cnkgoto', # (undocumented) +# 'endin', # https://csound.com/docs/manual/endin.html +# 'endop', # https://csound.com/docs/manual/endop.html +# 'goto', # https://csound.com/docs/manual/goto.html +# 'igoto', # https://csound.com/docs/manual/igoto.html +# 'instr', # https://csound.com/docs/manual/instr.html +# 'kgoto', # https://csound.com/docs/manual/kgoto.html +# 'loop_ge', # https://csound.com/docs/manual/loop_ge.html +# 'loop_gt', # https://csound.com/docs/manual/loop_gt.html +# 'loop_le', # https://csound.com/docs/manual/loop_le.html +# 'loop_lt', # https://csound.com/docs/manual/loop_lt.html +# 'opcode', # https://csound.com/docs/manual/opcode.html +# 'reinit', # https://csound.com/docs/manual/reinit.html +# 'return', # https://csound.com/docs/manual/return.html +# 'rireturn', # https://csound.com/docs/manual/rireturn.html +# 'rigoto', # https://csound.com/docs/manual/rigoto.html +# 'tigoto', # https://csound.com/docs/manual/tigoto.html +# 'timout' # https://csound.com/docs/manual/timout.html +# ] +# opcodes = [opcode for opcode in opcodes if opcode not in keyword_opcodes] +# newline = '\n' +# print(f'''OPCODES = set(\''' +# {newline.join(opcodes)} # \'''.split()) # # DEPRECATED_OPCODES = set(\''' -# {} +# {newline.join(deprecated_opcodes)} # \'''.split()) -# '''.format('\n'.join(opcodes), '\n'.join(deprecated_opcodes)) +# ''') # " -# except for -# cggoto csound.com/docs/manual/cggoto.html -# cigoto csound.com/docs/manual/cigoto.html -# cingoto (undocumented) -# ckgoto csound.com/docs/manual/ckgoto.html -# cngoto csound.com/docs/manual/cngoto.html -# cnkgoto (undocumented) -# endin csound.com/docs/manual/endin.html -# endop csound.com/docs/manual/endop.html -# goto csound.com/docs/manual/goto.html -# igoto csound.com/docs/manual/igoto.html -# instr csound.com/docs/manual/instr.html -# kgoto csound.com/docs/manual/kgoto.html -# loop_ge csound.com/docs/manual/loop_ge.html -# loop_gt csound.com/docs/manual/loop_gt.html -# loop_le csound.com/docs/manual/loop_le.html -# loop_lt csound.com/docs/manual/loop_lt.html -# opcode csound.com/docs/manual/opcode.html -# reinit csound.com/docs/manual/reinit.html -# return csound.com/docs/manual/return.html -# rireturn csound.com/docs/manual/rireturn.html -# rigoto csound.com/docs/manual/rigoto.html -# tigoto csound.com/docs/manual/tigoto.html -# timout csound.com/docs/manual/timout.html -# which are treated as keywords in csound.py. OPCODES = set(''' ATSadd @@ -169,8 +173,8 @@ STKBrass STKClarinet STKDrummer +STKFMVoices STKFlute -STKFMVoices STKHevyMetl STKMandolin STKModalBar @@ -201,6 +205,7 @@ ampdb ampdbfs ampmidi +ampmidicurve ampmidid areson aresonk @@ -249,7 +254,6 @@ ceps cepsinv chanctrl -changed changed2 chani chano @@ -261,11 +265,19 @@ chnclear chnexport chnget +chngeta +chngeti +chngetk chngetks +chngets chnmix chnparams chnset +chnseta +chnseti +chnsetk chnsetks +chnsets chuap clear clfilt @@ -418,6 +430,17 @@ flooper flooper2 floor +fluidAllOut +fluidCCi +fluidCCk +fluidControl +fluidEngine +fluidInfo +fluidLoad +fluidNote +fluidOut +fluidProgramSelect +fluidSetInterpMethod fmanal fmax fmb3 @@ -452,6 +475,7 @@ ftchnls ftconv ftcps +ftexists ftfree ftgen ftgenonce @@ -492,6 +516,7 @@ grain2 grain3 granule +gtf guiro harmon harmon2 @@ -599,6 +624,10 @@ la_i_multiply_mr la_i_multiply_vc la_i_multiply_vr +la_i_norm1_mc +la_i_norm1_mr +la_i_norm1_vc +la_i_norm1_vr la_i_norm_euclid_mc la_i_norm_euclid_mr la_i_norm_euclid_vc @@ -609,10 +638,6 @@ la_i_norm_inf_vr la_i_norm_max_mc la_i_norm_max_mr -la_i_norm1_mc -la_i_norm1_mr -la_i_norm1_vc -la_i_norm1_vr la_i_print_mc la_i_print_mr la_i_print_vc @@ -697,6 +722,10 @@ la_k_multiply_mr la_k_multiply_vc la_k_multiply_vr +la_k_norm1_mc +la_k_norm1_mr +la_k_norm1_vc +la_k_norm1_vr la_k_norm_euclid_mc la_k_norm_euclid_mr la_k_norm_euclid_vc @@ -707,10 +736,6 @@ la_k_norm_inf_vr la_k_norm_max_mc la_k_norm_max_mr -la_k_norm1_mc -la_k_norm1_mr -la_k_norm1_vc -la_k_norm1_vr la_k_qr_eigen_mc la_k_qr_eigen_mr la_k_qr_factor_mc @@ -732,6 +757,7 @@ la_k_upper_solve_mr la_k_vc_set la_k_vr_set +lastcycle lenarray lfo limit @@ -822,6 +848,7 @@ median mediank metro +metro2 mfb midglobal midiarp @@ -900,6 +927,8 @@ nsamp nstance nstrnum +nstrstr +ntof ntom ntrpol nxtpow2 @@ -1030,7 +1059,6 @@ ptable ptable3 ptablei -ptableiw ptablew ptrack puts @@ -1175,6 +1203,7 @@ qnan r2c rand +randc randh randi random @@ -1235,6 +1264,7 @@ schedkwhen schedkwhennamed schedule +schedulek schedwhen scoreline scoreline_i @@ -1337,6 +1367,7 @@ strget strindex strindexk +string2array strlen strlenk strlower @@ -1344,6 +1375,7 @@ strrindex strrindexk strset +strstrip strsub strsubk strtod @@ -1380,7 +1412,6 @@ tableigpw tableikt tableimix -tableiw tablekt tablemix tableng @@ -1589,6 +1620,7 @@ array bformdec bformenc +changed copy2ftab copy2ttab hrtfer @@ -1598,6 +1630,7 @@ mintab pop pop_f +ptableiw push push_f scalet @@ -1616,6 +1649,7 @@ stack sumtab tabgen +tableiw tabmap tabmap_i tabslice