summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorNate Whetsell <nathan.whetsell@gmail.com>2020-08-17 03:02:41 -0400
committerGitHub <noreply@github.com>2020-08-17 09:02:41 +0200
commite59cdb5d26079a2fb35434dd7461db672955c2f1 (patch)
tree3ef437d9d82fd4cd464f8fd642ecc84a110585b7 /pygments/lexers
parentf8387353f5b89624c4cd7f2759233dde1a34bd64 (diff)
downloadpygments-git-e59cdb5d26079a2fb35434dd7461db672955c2f1.tar.gz
Update for Csound 6.15.0 (#1509)
* Update for Csound 6.15.0 * Update comment
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/_csound_builtins.py39
-rw-r--r--pygments/lexers/csound.py14
2 files changed, 43 insertions, 10 deletions
diff --git a/pygments/lexers/_csound_builtins.py b/pygments/lexers/_csound_builtins.py
index e4f8fc7e..98c5a3a9 100644
--- a/pygments/lexers/_csound_builtins.py
+++ b/pygments/lexers/_csound_builtins.py
@@ -3,7 +3,7 @@
pygments.lexers._csound_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -200,6 +200,7 @@ adsyn
adsynt
adsynt2
aftouch
+allpole
alpass
alwayson
ampdb
@@ -207,6 +208,10 @@ ampdbfs
ampmidi
ampmidicurve
ampmidid
+apoleparams
+arduinoRead
+arduinoStart
+arduinoStop
areson
aresonk
atone
@@ -229,6 +234,7 @@ binit
biquad
biquada
birnd
+bob
bpf
bpfcos
bqrez
@@ -286,6 +292,11 @@ clockoff
clockon
cmp
cmplxprod
+cntCreate
+cntCycles
+cntRead
+cntReset
+cntState
comb
combinv
compilecsd
@@ -305,6 +316,8 @@ cosinv
cosseg
cossegb
cossegr
+count
+count_i
cps2pch
cpsmidi
cpsmidib
@@ -492,7 +505,9 @@ ftresizei
ftsamplebank
ftsave
ftsavek
+ftset
ftslice
+ftslicei
ftsr
gain
gainslider
@@ -757,6 +772,8 @@ la_k_upper_solve_mc
la_k_upper_solve_mr
la_k_vc_set
la_k_vr_set
+lag
+lagud
lastcycle
lenarray
lfo
@@ -803,6 +820,8 @@ loscilx
lowpass2
lowres
lowresx
+lpcanal
+lpcfilter
lpf18
lpform
lpfreson
@@ -826,6 +845,7 @@ lua_ikopcall_off
lua_iopcall
lua_iopcall_off
lua_opdef
+lufs
mac
maca
madsr
@@ -1053,12 +1073,11 @@ printk
printk2
printks
printks2
+println
prints
+printsk
product
pset
-ptable
-ptable3
-ptablei
ptablew
ptrack
puts
@@ -1075,6 +1094,7 @@ pvsanal
pvsarp
pvsbandp
pvsbandr
+pvsbandwidth
pvsbin
pvsblur
pvsbuffer
@@ -1083,6 +1103,7 @@ pvsbufread2
pvscale
pvscent
pvsceps
+pvscfs
pvscross
pvsdemix
pvsdiskin
@@ -1102,6 +1123,7 @@ pvsin
pvsinfo
pvsinit
pvslock
+pvslpc
pvsmaska
pvsmix
pvsmooth
@@ -1227,6 +1249,7 @@ remove
repluck
reshapearray
reson
+resonbnk
resonk
resonr
resonx
@@ -1244,6 +1267,7 @@ rifft
rms
rnd
rnd31
+rndseed
round
rspline
rtclock
@@ -1352,6 +1376,7 @@ spsend
sqrt
squinewave
statevar
+sterrain
stix
strcat
strcatk
@@ -1463,6 +1488,8 @@ trcross
trfilter
trhighest
trigger
+trighold
+trigphasor
trigseq
trim
trim_i
@@ -1545,6 +1572,7 @@ vpow
vpow_i
vpowv
vpowv_i
+vps
vpvoc
vrandh
vrandi
@@ -1630,6 +1658,9 @@ maxtab
mintab
pop
pop_f
+ptable
+ptable3
+ptablei
ptableiw
push
push_f
diff --git a/pygments/lexers/csound.py b/pygments/lexers/csound.py
index e0d9ea9f..ac4e16ad 100644
--- a/pygments/lexers/csound.py
+++ b/pygments/lexers/csound.py
@@ -5,7 +5,7 @@
Lexers for Csound languages.
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -149,7 +149,7 @@ class CsoundScoreLexer(CsoundLexer):
include('whitespace and macro uses'),
include('preprocessor directives'),
- (r'[abCdefiqstvxy]', Keyword),
+ (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.
@@ -339,10 +339,12 @@ class CsoundOrchestraLexer(CsoundLexer):
# 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, fprints, printks, and prints do accept %a and %A
- # specifiers, but can’t accept %s specifiers.
- # - printf, printf_i, sprintf, and sprintfk don’t accept %a and %A
- # specifiers, but can accept %s specifiers.
+ # - 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+)?[diuoxXfFeEgGaAcs]', String.Interpol),