OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
pygments
/
lexers
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
05/08/2024 06:42:35 PM
rwxr-xr-x
π
__init__.py
11.78 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
__pycache__
-
05/08/2024 06:42:35 PM
rwxr-xr-x
π
_ada_builtins.py
1.51 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_asy_builtins.py
26.65 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_cl_builtins.py
13.67 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_cocoa_builtins.py
102.71 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_csound_builtins.py
17.98 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_css_builtins.py
12.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_julia_builtins.py
11.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_lasso_builtins.py
131.36 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_lilypond_builtins.py
105.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_lua_builtins.py
7.92 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_luau_builtins.py
955 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
_mapping.py
67.47 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_mql_builtins.py
24.13 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_mysql_builtins.py
25.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_openedge_builtins.py
48.24 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_php_builtins.py
105.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_postgres_builtins.py
13.03 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_qlik_builtins.py
12.3 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_scheme_builtins.py
31.8 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_scilab_builtins.py
51.18 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_sourcemod_builtins.py
26.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_stan_builtins.py
13.13 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_stata_builtins.py
26.59 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_tsql_builtins.py
15.1 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_usd_builtins.py
1.62 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_vbscript_builtins.py
4.13 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
_vim_builtins.py
55.73 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
actionscript.py
11.45 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ada.py
5.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
agile.py
896 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
algebra.py
9.68 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ambient.py
2.54 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
amdgpu.py
1.68 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ampl.py
4.08 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
apdlexer.py
30.08 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
apl.py
3.32 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
archetype.py
11.27 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
arrow.py
3.48 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
arturo.py
11.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
asc.py
1.65 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
asm.py
40.95 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
asn1.py
4.16 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
automation.py
19.37 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
bare.py
2.95 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
basic.py
27.33 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
bdd.py
1.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
berry.py
3.13 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
bibtex.py
4.7 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
blueprint.py
6.04 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
boa.py
3.83 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
bqn.py
3.26 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
business.py
27.68 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
c_cpp.py
17.64 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
c_like.py
31.27 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
capnproto.py
2.12 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
carbon.py
3.14 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
cddl.py
4.96 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
chapel.py
5.04 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
clean.py
6.27 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
comal.py
3.1 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
compiled.py
1.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
configs.py
49.35 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
console.py
4.08 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
cplint.py
1.36 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
crystal.py
15.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
csound.py
16.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
css.py
24.77 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
d.py
9.69 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dalvik.py
4.5 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
data.py
26.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dax.py
7.91 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
devicetree.py
3.92 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
diff.py
5.26 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dns.py
3.8 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dotnet.py
37.07 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dsls.py
35.88 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
dylan.py
10.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ecl.py
6.22 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
eiffel.py
2.63 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
elm.py
3.08 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
elpi.py
6.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
email.py
4.69 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
erlang.py
18.7 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
esoteric.py
10.25 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ezhil.py
3.2 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
factor.py
19.07 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
fantom.py
9.99 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
felix.py
9.43 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
fift.py
1.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
floscript.py
2.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
forth.py
7.02 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
fortran.py
10.14 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
foxpro.py
25.68 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
freefem.py
26.28 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
func.py
3.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
functional.py
693 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
futhark.py
3.66 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
gcodelexer.py
874 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
gdscript.py
7.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
go.py
3.69 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
grammar_notation.py
7.85 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
graph.py
4.01 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
graphics.py
38.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
graphql.py
5.47 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
graphviz.py
1.89 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
gsql.py
3.9 KB
05/08/2024 06:42:35 PM
rwxr-xr-x
π
haskell.py
32.46 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
haxe.py
30.25 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
hdl.py
22.21 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
hexdump.py
3.57 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
html.py
20.09 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
idl.py
15.09 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
igor.py
30.88 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
inferno.py
3.06 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
installers.py
12.99 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
int_fiction.py
55.22 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
iolang.py
1.86 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
j.py
4.74 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
javascript.py
61.62 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
jmespath.py
2.03 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
jslt.py
3.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
jsonnet.py
5.5 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
jsx.py
2.18 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
julia.py
11.41 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
jvm.py
70.96 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
kuin.py
11.14 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
kusto.py
3.4 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ldap.py
6.4 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
lean.py
8.37 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
lilypond.py
9.52 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
lisp.py
153.97 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
macaulay2.py
32.07 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
make.py
7.65 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
markup.py
63.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
math.py
695 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
matlab.py
129.85 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
maxima.py
2.65 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
meson.py
4.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
mime.py
7.4 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
minecraft.py
13.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
mips.py
4.55 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ml.py
34.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
modeling.py
13.36 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
modula2.py
51.83 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
mojo.py
23.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
monte.py
6.14 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
mosel.py
9.08 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ncl.py
62.5 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
nimrod.py
6.26 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
nit.py
2.66 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
nix.py
4.32 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
oberon.py
4.11 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
objective.py
22.7 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ooc.py
2.91 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
openscad.py
3.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
other.py
1.72 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
parasail.py
2.66 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
parsers.py
25.97 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
pascal.py
30.26 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
pawn.py
8.06 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
perl.py
38.27 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
phix.py
22.7 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
php.py
12.75 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
pointless.py
1.93 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
pony.py
3.2 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
praat.py
12.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
procfile.py
1.13 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
prolog.py
12.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
promql.py
4.63 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
prql.py
8.54 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ptx.py
4.4 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
python.py
52.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
q.py
6.77 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
qlik.py
3.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
qvt.py
5.96 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
r.py
6.19 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
rdf.py
15.67 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
rebol.py
17.83 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
resource.py
2.86 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ride.py
4.92 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
rita.py
1.1 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
rnc.py
1.93 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
roboconf.py
2.03 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
robotframework.py
18.02 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ruby.py
22.22 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
rust.py
8.07 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
sas.py
9.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
savi.py
4.76 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
scdoc.py
2.46 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
scripting.py
79.16 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
sgf.py
1.94 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
shell.py
35.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
sieve.py
2.46 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
slash.py
8.29 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
smalltalk.py
7.04 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
smithy.py
2.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
smv.py
2.74 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
snobol.py
2.71 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
solidity.py
3.09 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
soong.py
2.28 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
sophia.py
3.3 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
special.py
3.47 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
spice.py
2.72 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
sql.py
41.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
srcinfo.py
1.71 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
stata.py
6.26 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
supercollider.py
3.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tact.py
10.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tal.py
2.84 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tcl.py
5.38 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
teal.py
3.44 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
templates.py
73.94 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
teraterm.py
9.49 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
testing.py
10.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
text.py
1.02 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
textedit.py
7.58 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
textfmts.py
15.16 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
theorem.py
17.44 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
thingsdb.py
5.88 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tlb.py
1.42 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tls.py
1.5 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
tnt.py
10.21 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
trafficscript.py
1.47 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
typoscript.py
8.14 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
typst.py
4.24 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
ul4.py
10.25 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
unicon.py
18.19 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
urbi.py
5.94 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
usd.py
3.23 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
varnish.py
7.3 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
verification.py
3.84 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
verifpal.py
2.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
vip.py
5.58 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
vyper.py
5.46 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
web.py
913 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
webassembly.py
5.56 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
webidl.py
10.27 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
webmisc.py
39.61 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
wgsl.py
11.6 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
whiley.py
3.92 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
wowtoc.py
3.98 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
wren.py
3.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
x10.py
1.9 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
xorg.py
925 bytes
05/08/2024 06:42:35 PM
rw-r--r--
π
yang.py
4.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
yara.py
2.37 KB
05/08/2024 06:42:35 PM
rw-r--r--
π
zig.py
3.88 KB
05/08/2024 06:42:35 PM
rw-r--r--
Editing: csound.py
Close
""" pygments.lexers.csound ~~~~~~~~~~~~~~~~~~~~~~ Lexers for Csound languages. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, bygroups, default, include, using, words from pygments.token import Comment, Error, Keyword, Name, Number, Operator, Punctuation, \ String, Text, Whitespace from pygments.lexers._csound_builtins import OPCODES, DEPRECATED_OPCODES, REMOVED_OPCODES from pygments.lexers.html import HtmlLexer from pygments.lexers.python import PythonLexer from pygments.lexers.scripting import LuaLexer __all__ = ['CsoundScoreLexer', 'CsoundOrchestraLexer', 'CsoundDocumentLexer'] newline = (r'((?:(?:;|//).*)*)(\n)', bygroups(Comment.Single, Text)) class CsoundLexer(RegexLexer): url = 'https://csound.com/' tokens = { 'whitespace': [ (r'[ \t]+', Whitespace), (r'/[*](?:.|\n)*?[*]/', Comment.Multiline), (r'(?:;|//).*$', Comment.Single), (r'(\\)(\n)', bygroups(Text, Whitespace)) ], 'preprocessor directives': [ (r'#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+', Comment.Preproc), (r'#includestr', Comment.Preproc, 'includestr directive'), (r'#include', Comment.Preproc, 'include directive'), (r'#[ \t]*define', Comment.Preproc, 'define directive'), (r'#(?:ifn?def|undef)\b', Comment.Preproc, 'macro directive') ], 'include directive': [ include('whitespace'), (r'([^ \t]).*?\1', String, '#pop') ], 'includestr directive': [ include('whitespace'), (r'"', String, ('#pop', 'quoted string')) ], 'define directive': [ (r'\n', Whitespace), include('whitespace'), (r'([A-Z_a-z]\w*)(\()', bygroups(Comment.Preproc, Punctuation), ('#pop', 'macro parameter name list')), (r'[A-Z_a-z]\w*', Comment.Preproc, ('#pop', 'before macro body')) ], 'macro parameter name list': [ include('whitespace'), (r'[A-Z_a-z]\w*', Comment.Preproc), (r"['#]", Punctuation), (r'\)', Punctuation, ('#pop', 'before macro body')) ], 'before macro body': [ (r'\n', Whitespace), include('whitespace'), (r'#', Punctuation, ('#pop', 'macro body')) ], 'macro body': [ (r'(?:\\(?!#)|[^#\\]|\n)+', Comment.Preproc), (r'\\#', Comment.Preproc), (r'(?<!\\)#', Punctuation, '#pop') ], 'macro directive': [ include('whitespace'), (r'[A-Z_a-z]\w*', Comment.Preproc, '#pop') ], 'macro uses': [ (r'(\$[A-Z_a-z]\w*\.?)(\()', bygroups(Comment.Preproc, Punctuation), 'macro parameter value list'), (r'\$[A-Z_a-z]\w*(?:\.|\b)', Comment.Preproc) ], 'macro parameter value list': [ (r'(?:[^\'#"{()]|\{(?!\{))+', Comment.Preproc), (r"['#]", Punctuation), (r'"', String, 'macro parameter value quoted string'), (r'\{\{', String, 'macro parameter value braced string'), (r'\(', Comment.Preproc, 'macro parameter value parenthetical'), (r'\)', Punctuation, '#pop') ], 'macro parameter value quoted string': [ (r"\\[#'()]", Comment.Preproc), (r"[#'()]", Error), include('quoted string') ], 'macro parameter value braced string': [ (r"\\[#'()]", Comment.Preproc), (r"[#'()]", Error), include('braced string') ], 'macro parameter value parenthetical': [ (r'(?:[^\\()]|\\\))+', Comment.Preproc), (r'\(', Comment.Preproc, '#push'), (r'\)', Comment.Preproc, '#pop') ], 'whitespace and macro uses': [ include('whitespace'), include('macro uses') ], 'numbers': [ (r'\d+[Ee][+-]?\d+|(\d+\.\d*|\d*\.\d+)([Ee][+-]?\d+)?', Number.Float), (r'(0[Xx])([0-9A-Fa-f]+)', bygroups(Keyword.Type, Number.Hex)), (r'\d+', Number.Integer) ], 'quoted string': [ (r'"', String, '#pop'), (r'[^"$]+', String), include('macro uses'), (r'[$]', String) ], 'braced string': [ # Do nothing. This must be defined in subclasses. ] } class CsoundScoreLexer(CsoundLexer): """ For `Csound <https://csound.com>`_ scores. """ name = 'Csound Score' aliases = ['csound-score', 'csound-sco'] filenames = ['*.sco'] version_added = '2.1' tokens = { 'root': [ (r'\n', Whitespace), include('whitespace and macro uses'), include('preprocessor directives'), (r'[aBbCdefiqstvxy]', Keyword), # There is also a w statement that is generated internally and should not be # used; see https://github.com/csound/csound/issues/750. (r'z', Keyword.Constant), # z is a constant equal to 800,000,000,000. 800 billion seconds is about # 25,367.8 years. See also # https://csound.com/docs/manual/ScoreTop.html and # https://github.com/csound/csound/search?q=stof+path%3AEngine+filename%3Asread.c. (r'([nNpP][pP])(\d+)', bygroups(Keyword, Number.Integer)), (r'[mn]', Keyword, 'mark statement'), include('numbers'), (r'[!+\-*/^%&|<>#~.]', Operator), (r'[()\[\]]', Punctuation), (r'"', String, 'quoted string'), (r'\{', Comment.Preproc, 'loop after left brace'), ], 'mark statement': [ include('whitespace and macro uses'), (r'[A-Z_a-z]\w*', Name.Label), (r'\n', Whitespace, '#pop') ], 'loop after left brace': [ include('whitespace and macro uses'), (r'\d+', Number.Integer, ('#pop', 'loop after repeat count')), ], 'loop after repeat count': [ include('whitespace and macro uses'), (r'[A-Z_a-z]\w*', Comment.Preproc, ('#pop', 'loop')) ], 'loop': [ (r'\}', Comment.Preproc, '#pop'), include('root') ], # Braced strings are not allowed in Csound scores, but this is needed because the # superclass includes it. 'braced string': [ (r'\}\}', String, '#pop'), (r'[^}]|\}(?!\})', String) ] } class CsoundOrchestraLexer(CsoundLexer): """ For `Csound <https://csound.com>`_ orchestras. """ name = 'Csound Orchestra' aliases = ['csound', 'csound-orc'] filenames = ['*.orc', '*.udo'] version_added = '2.1' user_defined_opcodes = set() def opcode_name_callback(lexer, match): opcode = match.group(0) lexer.user_defined_opcodes.add(opcode) yield match.start(), Name.Function, opcode def name_callback(lexer, match): type_annotation_token = Keyword.Type name = match.group(1) if name in OPCODES or name in DEPRECATED_OPCODES or name in REMOVED_OPCODES: yield match.start(), Name.Builtin, name elif name in lexer.user_defined_opcodes: yield match.start(), Name.Function, name else: type_annotation_token = Name name_match = re.search(r'^(g?[afikSw])(\w+)', name) if name_match: yield name_match.start(1), Keyword.Type, name_match.group(1) yield name_match.start(2), Name, name_match.group(2) else: yield match.start(), Name, name if match.group(2): yield match.start(2), Punctuation, match.group(2) yield match.start(3), type_annotation_token, match.group(3) tokens = { 'root': [ (r'\n', Whitespace), (r'^([ \t]*)(\w+)(:)([ \t]+|$)', bygroups(Whitespace, Name.Label, Punctuation, Whitespace)), include('whitespace and macro uses'), include('preprocessor directives'), (r'\binstr\b', Keyword.Declaration, 'instrument numbers and identifiers'), (r'\bopcode\b', Keyword.Declaration, 'after opcode keyword'), (r'\b(?:end(?:in|op))\b', Keyword.Declaration), include('partial statements') ], 'partial statements': [ (r'\b(?:0dbfs|A4|k(?:r|smps)|nchnls(?:_i)?|sr)\b', Name.Variable.Global), include('numbers'), (r'\+=|-=|\*=|/=|<<|>>|<=|>=|==|!=|&&|\|\||[~Β¬]|[=!+\-*/^%&|<>#?:]', Operator), (r'[(),\[\]]', Punctuation), (r'"', String, 'quoted string'), (r'\{\{', String, 'braced string'), (words(( 'do', 'else', 'elseif', 'endif', 'enduntil', 'fi', 'if', 'ithen', 'kthen', 'od', 'then', 'until', 'while', ), prefix=r'\b', suffix=r'\b'), Keyword), (words(('return', 'rireturn'), prefix=r'\b', suffix=r'\b'), Keyword.Pseudo), (r'\b[ik]?goto\b', Keyword, 'goto label'), (r'\b(r(?:einit|igoto)|tigoto)(\(|\b)', bygroups(Keyword.Pseudo, Punctuation), 'goto label'), (r'\b(c(?:g|in?|k|nk?)goto)(\(|\b)', bygroups(Keyword.Pseudo, Punctuation), ('goto label', 'goto argument')), (r'\b(timout)(\(|\b)', bygroups(Keyword.Pseudo, Punctuation), ('goto label', 'goto argument', 'goto argument')), (r'\b(loop_[gl][et])(\(|\b)', bygroups(Keyword.Pseudo, Punctuation), ('goto label', 'goto argument', 'goto argument', 'goto argument')), (r'\bprintk?s\b', Name.Builtin, 'prints opcode'), (r'\b(?:readscore|scoreline(?:_i)?)\b', Name.Builtin, 'Csound score opcode'), (r'\bpyl?run[it]?\b', Name.Builtin, 'Python opcode'), (r'\blua_(?:exec|opdef)\b', Name.Builtin, 'Lua opcode'), (r'\bp\d+\b', Name.Variable.Instance), (r'\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\b', name_callback) ], 'instrument numbers and identifiers': [ include('whitespace and macro uses'), (r'\d+|[A-Z_a-z]\w*', Name.Function), (r'[+,]', Punctuation), (r'\n', Whitespace, '#pop') ], 'after opcode keyword': [ include('whitespace and macro uses'), (r'[A-Z_a-z]\w*', opcode_name_callback, ('#pop', 'opcode type signatures')), (r'\n', Whitespace, '#pop') ], 'opcode type signatures': [ include('whitespace and macro uses'), # https://github.com/csound/csound/search?q=XIDENT+path%3AEngine+filename%3Acsound_orc.lex (r'0|[afijkKoOpPStV\[\]]+', Keyword.Type), (r',', Punctuation), (r'\n', Whitespace, '#pop') ], 'quoted string': [ (r'"', String, '#pop'), (r'[^\\"$%)]+', String), include('macro uses'), include('escape sequences'), include('format specifiers'), (r'[\\$%)]', String) ], 'braced string': [ (r'\}\}', String, '#pop'), (r'(?:[^\\%)}]|\}(?!\}))+', String), include('escape sequences'), include('format specifiers'), (r'[\\%)]', String) ], 'escape sequences': [ # https://github.com/csound/csound/search?q=unquote_string+path%3AEngine+filename%3Acsound_orc_compile.c (r'\\(?:[\\abnrt"]|[0-7]{1,3})', String.Escape) ], # Format specifiers are highlighted in all strings, even though only # fprintks https://csound.com/docs/manual/fprintks.html # fprints https://csound.com/docs/manual/fprints.html # printf/printf_i https://csound.com/docs/manual/printf.html # printks https://csound.com/docs/manual/printks.html # prints https://csound.com/docs/manual/prints.html # sprintf https://csound.com/docs/manual/sprintf.html # sprintfk https://csound.com/docs/manual/sprintfk.html # work with strings that contain format specifiers. In addition, these opcodesβ # handling of format specifiers is inconsistent: # - fprintks and fprints accept %a and %A specifiers, and accept %s specifiers # starting in Csound 6.15.0. # - printks and prints accept %a and %A specifiers, but donβt accept %s # specifiers. # - printf, printf_i, sprintf, and sprintfk donβt accept %a and %A specifiers, # but accept %s specifiers. # See https://github.com/csound/csound/issues/747 for more information. 'format specifiers': [ (r'%[#0\- +]*\d*(?:\.\d+)?[AE-GXac-giosux]', String.Interpol), (r'%%', String.Escape) ], 'goto argument': [ include('whitespace and macro uses'), (r',', Punctuation, '#pop'), include('partial statements') ], 'goto label': [ include('whitespace and macro uses'), (r'\w+', Name.Label, '#pop'), default('#pop') ], 'prints opcode': [ include('whitespace and macro uses'), (r'"', String, 'prints quoted string'), default('#pop') ], 'prints quoted string': [ (r'\\\\[aAbBnNrRtT]', String.Escape), (r'%[!nNrRtT]|[~^]{1,2}', String.Escape), include('quoted string') ], 'Csound score opcode': [ include('whitespace and macro uses'), (r'"', String, 'quoted string'), (r'\{\{', String, 'Csound score'), (r'\n', Whitespace, '#pop') ], 'Csound score': [ (r'\}\}', String, '#pop'), (r'([^}]+)|\}(?!\})', using(CsoundScoreLexer)) ], 'Python opcode': [ include('whitespace and macro uses'), (r'"', String, 'quoted string'), (r'\{\{', String, 'Python'), (r'\n', Whitespace, '#pop') ], 'Python': [ (r'\}\}', String, '#pop'), (r'([^}]+)|\}(?!\})', using(PythonLexer)) ], 'Lua opcode': [ include('whitespace and macro uses'), (r'"', String, 'quoted string'), (r'\{\{', String, 'Lua'), (r'\n', Whitespace, '#pop') ], 'Lua': [ (r'\}\}', String, '#pop'), (r'([^}]+)|\}(?!\})', using(LuaLexer)) ] } class CsoundDocumentLexer(RegexLexer): """ For Csound documents. """ name = 'Csound Document' aliases = ['csound-document', 'csound-csd'] filenames = ['*.csd'] url = 'https://csound.com' version_added = '2.1' # These tokens are based on those in XmlLexer in pygments/lexers/html.py. Making # CsoundDocumentLexer a subclass of XmlLexer rather than RegexLexer may seem like a # better idea, since Csound Document files look like XML files. However, Csound # Documents can contain Csound comments (preceded by //, for example) before and # after the root element, unescaped bitwise AND & and less than < operators, etc. In # other words, while Csound Document files look like XML files, they may not actually # be XML files. tokens = { 'root': [ (r'/[*](.|\n)*?[*]/', Comment.Multiline), (r'(?:;|//).*$', Comment.Single), (r'[^/;<]+|/(?!/)', Text), (r'<\s*CsInstruments', Name.Tag, ('orchestra', 'tag')), (r'<\s*CsScore', Name.Tag, ('score', 'tag')), (r'<\s*[Hh][Tt][Mm][Ll]', Name.Tag, ('HTML', 'tag')), (r'<\s*[\w:.-]+', Name.Tag, 'tag'), (r'<\s*/\s*[\w:.-]+\s*>', Name.Tag) ], 'orchestra': [ (r'<\s*/\s*CsInstruments\s*>', Name.Tag, '#pop'), (r'(.|\n)+?(?=<\s*/\s*CsInstruments\s*>)', using(CsoundOrchestraLexer)) ], 'score': [ (r'<\s*/\s*CsScore\s*>', Name.Tag, '#pop'), (r'(.|\n)+?(?=<\s*/\s*CsScore\s*>)', using(CsoundScoreLexer)) ], 'HTML': [ (r'<\s*/\s*[Hh][Tt][Mm][Ll]\s*>', Name.Tag, '#pop'), (r'(.|\n)+?(?=<\s*/\s*[Hh][Tt][Mm][Ll]\s*>)', using(HtmlLexer)) ], 'tag': [ (r'\s+', Whitespace), (r'[\w.:-]+\s*=', Name.Attribute, 'attr'), (r'/?\s*>', Name.Tag, '#pop') ], 'attr': [ (r'\s+', Whitespace), (r'".*?"', String, '#pop'), (r"'.*?'", String, '#pop'), (r'[^\s>]+', String, '#pop') ] }