mode-csound_orchestra.js 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679
  1. ace.define("ace/mode/csound_preprocessor_highlight_rules",[], function(require, exports, module) {
  2. "use strict";
  3. var oop = require("../lib/oop");
  4. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  5. var CsoundPreprocessorHighlightRules = function() {
  6. this.semicolonComments = {
  7. token : "comment.line.semicolon.csound",
  8. regex : ";.*$"
  9. };
  10. this.comments = [
  11. {
  12. token : "punctuation.definition.comment.begin.csound",
  13. regex : "/\\*",
  14. push : [
  15. {
  16. token : "punctuation.definition.comment.end.csound",
  17. regex : "\\*/",
  18. next : "pop"
  19. }, {
  20. defaultToken: "comment.block.csound"
  21. }
  22. ]
  23. }, {
  24. token : "comment.line.double-slash.csound",
  25. regex : "//.*$"
  26. },
  27. this.semicolonComments
  28. ];
  29. this.macroUses = [
  30. {
  31. token : ["entity.name.function.preprocessor.csound", "punctuation.definition.macro-parameter-value-list.begin.csound"],
  32. regex : /(\$[A-Z_a-z]\w*\.?)(\()/,
  33. next : "macro parameter value list"
  34. }, {
  35. token : "entity.name.function.preprocessor.csound",
  36. regex : /\$[A-Z_a-z]\w*(?:\.|\b)/
  37. }
  38. ];
  39. this.numbers = [
  40. {
  41. token : "constant.numeric.float.csound",
  42. regex : /(?:\d+[Ee][+-]?\d+)|(?:\d+\.\d*|\d*\.\d+)(?:[Ee][+-]?\d+)?/
  43. }, {
  44. token : ["storage.type.number.csound", "constant.numeric.integer.hexadecimal.csound"],
  45. regex : /(0[Xx])([0-9A-Fa-f]+)/
  46. }, {
  47. token : "constant.numeric.integer.decimal.csound",
  48. regex : /\d+/
  49. }
  50. ];
  51. this.bracedStringContents = [
  52. {
  53. token : "constant.character.escape.csound",
  54. regex : /\\(?:[\\abnrt"]|[0-7]{1,3})/
  55. },
  56. {
  57. token : "constant.character.placeholder.csound",
  58. regex : /%[#0\- +]*\d*(?:\.\d+)?[diuoxXfFeEgGaAcs]/
  59. }, {
  60. token : "constant.character.escape.csound",
  61. regex : /%%/
  62. }
  63. ];
  64. this.quotedStringContents = [
  65. this.macroUses,
  66. this.bracedStringContents
  67. ];
  68. var start = [
  69. this.comments,
  70. {
  71. token : "keyword.preprocessor.csound",
  72. regex : /#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+/
  73. }, {
  74. token : "keyword.preprocessor.csound",
  75. regex : /#include/,
  76. push : [
  77. this.comments,
  78. {
  79. token : "string.csound",
  80. regex : /([^ \t])(?:.*?\1)/,
  81. next : "pop"
  82. }
  83. ]
  84. }, {
  85. token : "keyword.preprocessor.csound",
  86. regex : /#[ \t]*define/,
  87. next : "define directive"
  88. }, {
  89. token : "keyword.preprocessor.csound",
  90. regex : /#(?:ifn?def|undef)\b/,
  91. next : "macro directive"
  92. },
  93. this.macroUses
  94. ];
  95. this.$rules = {
  96. "start": start,
  97. "define directive": [
  98. this.comments,
  99. {
  100. token : "entity.name.function.preprocessor.csound",
  101. regex : /[A-Z_a-z]\w*/
  102. }, {
  103. token : "punctuation.definition.macro-parameter-name-list.begin.csound",
  104. regex : /\(/,
  105. next : "macro parameter name list"
  106. }, {
  107. token : "punctuation.definition.macro.begin.csound",
  108. regex : /#/,
  109. next : "macro body"
  110. }
  111. ],
  112. "macro parameter name list": [
  113. {
  114. token : "variable.parameter.preprocessor.csound",
  115. regex : /[A-Z_a-z]\w*/
  116. }, {
  117. token : "punctuation.definition.macro-parameter-name-list.end.csound",
  118. regex : /\)/,
  119. next : "define directive"
  120. }
  121. ],
  122. "macro body": [
  123. {
  124. token : "constant.character.escape.csound",
  125. regex : /\\#/
  126. }, {
  127. token : "punctuation.definition.macro.end.csound",
  128. regex : /#/,
  129. next : "start"
  130. },
  131. start
  132. ],
  133. "macro directive": [
  134. this.comments,
  135. {
  136. token : "entity.name.function.preprocessor.csound",
  137. regex : /[A-Z_a-z]\w*/,
  138. next : "start"
  139. }
  140. ],
  141. "macro parameter value list": [
  142. {
  143. token : "punctuation.definition.macro-parameter-value-list.end.csound",
  144. regex : /\)/,
  145. next : "start"
  146. }, {
  147. token : "punctuation.definition.string.begin.csound",
  148. regex : /"/,
  149. next : "macro parameter value quoted string"
  150. }, this.pushRule({
  151. token : "punctuation.macro-parameter-value-parenthetical.begin.csound",
  152. regex : /\(/,
  153. next : "macro parameter value parenthetical"
  154. }), {
  155. token : "punctuation.macro-parameter-value-separator.csound",
  156. regex : "[#']"
  157. }
  158. ],
  159. "macro parameter value quoted string": [
  160. {
  161. token : "constant.character.escape.csound",
  162. regex : /\\[#'()]/
  163. }, {
  164. token : "invalid.illegal.csound",
  165. regex : /[#'()]/
  166. }, {
  167. token : "punctuation.definition.string.end.csound",
  168. regex : /"/,
  169. next : "macro parameter value list"
  170. },
  171. this.quotedStringContents,
  172. {
  173. defaultToken: "string.quoted.csound"
  174. }
  175. ],
  176. "macro parameter value parenthetical": [
  177. {
  178. token : "constant.character.escape.csound",
  179. regex : /\\\)/
  180. }, this.popRule({
  181. token : "punctuation.macro-parameter-value-parenthetical.end.csound",
  182. regex : /\)/
  183. }), this.pushRule({
  184. token : "punctuation.macro-parameter-value-parenthetical.begin.csound",
  185. regex : /\(/,
  186. next : "macro parameter value parenthetical"
  187. }),
  188. start
  189. ]
  190. };
  191. };
  192. oop.inherits(CsoundPreprocessorHighlightRules, TextHighlightRules);
  193. (function() {
  194. this.pushRule = function(params) {
  195. return {
  196. regex : params.regex, onMatch: function(value, currentState, stack, line) {
  197. if (stack.length === 0)
  198. stack.push(currentState);
  199. if (Array.isArray(params.next)) {
  200. for (var i = 0; i < params.next.length; i++) {
  201. stack.push(params.next[i]);
  202. }
  203. } else {
  204. stack.push(params.next);
  205. }
  206. this.next = stack[stack.length - 1];
  207. return params.token;
  208. },
  209. get next() { return Array.isArray(params.next) ? params.next[params.next.length - 1] : params.next; },
  210. set next(next) {
  211. if (Array.isArray(params.next)) {
  212. var oldNext = params.next[params.next.length - 1];
  213. var oldNextIndex = oldNext.length - 1;
  214. var newNextIndex = next.length - 1;
  215. if (newNextIndex > oldNextIndex) {
  216. while (oldNextIndex >= 0 && newNextIndex >= 0) {
  217. if (oldNext.charAt(oldNextIndex) !== next.charAt(newNextIndex)) {
  218. var prefix = next.substr(0, newNextIndex);
  219. for (var i = 0; i < params.next.length; i++) {
  220. params.next[i] = prefix + params.next[i];
  221. }
  222. break;
  223. }
  224. oldNextIndex--;
  225. newNextIndex--;
  226. }
  227. }
  228. } else {
  229. params.next = next;
  230. }
  231. },
  232. get token() { return params.token; }
  233. };
  234. };
  235. this.popRule = function(params) {
  236. return {
  237. regex : params.regex, onMatch: function(value, currentState, stack, line) {
  238. stack.pop();
  239. if (params.next) {
  240. stack.push(params.next);
  241. this.next = stack[stack.length - 1];
  242. } else {
  243. this.next = stack.length > 1 ? stack[stack.length - 1] : stack.pop();
  244. }
  245. return params.token;
  246. }
  247. };
  248. };
  249. }).call(CsoundPreprocessorHighlightRules.prototype);
  250. exports.CsoundPreprocessorHighlightRules = CsoundPreprocessorHighlightRules;
  251. });
  252. ace.define("ace/mode/csound_score_highlight_rules",[], function(require, exports, module) {
  253. "use strict";
  254. var oop = require("../lib/oop");
  255. var CsoundPreprocessorHighlightRules = require("./csound_preprocessor_highlight_rules").CsoundPreprocessorHighlightRules;
  256. var CsoundScoreHighlightRules = function() {
  257. CsoundPreprocessorHighlightRules.call(this);
  258. this.quotedStringContents.push({
  259. token : "invalid.illegal.csound-score",
  260. regex : /[^"]*$/
  261. });
  262. var start = this.$rules.start;
  263. start.push(
  264. {
  265. token : "keyword.control.csound-score",
  266. regex : /[abCdefiqstvxy]/
  267. }, {
  268. token : "invalid.illegal.csound-score",
  269. regex : /w/
  270. }, {
  271. token : "constant.numeric.language.csound-score",
  272. regex : /z/
  273. }, {
  274. token : ["keyword.control.csound-score", "constant.numeric.integer.decimal.csound-score"],
  275. regex : /([nNpP][pP])(\d+)/
  276. }, {
  277. token : "keyword.other.csound-score",
  278. regex : /[mn]/,
  279. push : [
  280. {
  281. token : "empty",
  282. regex : /$/,
  283. next : "pop"
  284. },
  285. this.comments,
  286. {
  287. token : "entity.name.label.csound-score",
  288. regex : /[A-Z_a-z]\w*/
  289. }
  290. ]
  291. }, {
  292. token : "keyword.preprocessor.csound-score",
  293. regex : /r\b/,
  294. next : "repeat section"
  295. },
  296. this.numbers,
  297. {
  298. token : "keyword.operator.csound-score",
  299. regex : "[!+\\-*/^%&|<>#~.]"
  300. },
  301. this.pushRule({
  302. token : "punctuation.definition.string.begin.csound-score",
  303. regex : /"/,
  304. next : "quoted string"
  305. }),
  306. this.pushRule({
  307. token : "punctuation.braced-loop.begin.csound-score",
  308. regex : /{/,
  309. next : "loop after left brace"
  310. })
  311. );
  312. this.addRules({
  313. "repeat section": [
  314. {
  315. token : "empty",
  316. regex : /$/,
  317. next : "start"
  318. },
  319. this.comments,
  320. {
  321. token : "constant.numeric.integer.decimal.csound-score",
  322. regex : /\d+/,
  323. next : "repeat section before label"
  324. }
  325. ],
  326. "repeat section before label": [
  327. {
  328. token : "empty",
  329. regex : /$/,
  330. next : "start"
  331. },
  332. this.comments,
  333. {
  334. token : "entity.name.label.csound-score",
  335. regex : /[A-Z_a-z]\w*/,
  336. next : "start"
  337. }
  338. ],
  339. "quoted string": [
  340. this.popRule({
  341. token : "punctuation.definition.string.end.csound-score",
  342. regex : /"/
  343. }),
  344. this.quotedStringContents,
  345. {
  346. defaultToken: "string.quoted.csound-score"
  347. }
  348. ],
  349. "loop after left brace": [
  350. this.popRule({
  351. token : "constant.numeric.integer.decimal.csound-score",
  352. regex : /\d+/,
  353. next : "loop after repeat count"
  354. }),
  355. this.comments,
  356. {
  357. token : "invalid.illegal.csound",
  358. regex : /\S.*/
  359. }
  360. ],
  361. "loop after repeat count": [
  362. this.popRule({
  363. token : "entity.name.function.preprocessor.csound-score",
  364. regex : /[A-Z_a-z]\w*\b/,
  365. next : "loop after macro name"
  366. }),
  367. this.comments,
  368. {
  369. token : "invalid.illegal.csound",
  370. regex : /\S.*/
  371. }
  372. ],
  373. "loop after macro name": [
  374. start,
  375. this.popRule({
  376. token : "punctuation.braced-loop.end.csound-score",
  377. regex : /}/
  378. })
  379. ]
  380. });
  381. this.normalizeRules();
  382. };
  383. oop.inherits(CsoundScoreHighlightRules, CsoundPreprocessorHighlightRules);
  384. exports.CsoundScoreHighlightRules = CsoundScoreHighlightRules;
  385. });
  386. ace.define("ace/mode/lua_highlight_rules",[], function(require, exports, module) {
  387. "use strict";
  388. var oop = require("../lib/oop");
  389. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  390. var LuaHighlightRules = function() {
  391. var keywords = (
  392. "break|do|else|elseif|end|for|function|if|in|local|repeat|"+
  393. "return|then|until|while|or|and|not"
  394. );
  395. var builtinConstants = ("true|false|nil|_G|_VERSION");
  396. var functions = (
  397. "string|xpcall|package|tostring|print|os|unpack|require|"+
  398. "getfenv|setmetatable|next|assert|tonumber|io|rawequal|"+
  399. "collectgarbage|getmetatable|module|rawset|math|debug|"+
  400. "pcall|table|newproxy|type|coroutine|_G|select|gcinfo|"+
  401. "pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|"+
  402. "load|error|loadfile|"+
  403. "sub|upper|len|gfind|rep|find|match|char|dump|gmatch|"+
  404. "reverse|byte|format|gsub|lower|preload|loadlib|loaded|"+
  405. "loaders|cpath|config|path|seeall|exit|setlocale|date|"+
  406. "getenv|difftime|remove|time|clock|tmpname|rename|execute|"+
  407. "lines|write|close|flush|open|output|type|read|stderr|"+
  408. "stdin|input|stdout|popen|tmpfile|log|max|acos|huge|"+
  409. "ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|"+
  410. "frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|"+
  411. "atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|"+
  412. "gethook|setmetatable|setlocal|traceback|setfenv|getinfo|"+
  413. "setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|"+
  414. "foreachi|maxn|foreach|concat|sort|remove|resume|yield|"+
  415. "status|wrap|create|running|"+
  416. "__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|"+
  417. "__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber"
  418. );
  419. var stdLibaries = ("string|package|os|io|math|debug|table|coroutine");
  420. var deprecatedIn5152 = ("setn|foreach|foreachi|gcinfo|log10|maxn");
  421. var keywordMapper = this.createKeywordMapper({
  422. "keyword": keywords,
  423. "support.function": functions,
  424. "keyword.deprecated": deprecatedIn5152,
  425. "constant.library": stdLibaries,
  426. "constant.language": builtinConstants,
  427. "variable.language": "self"
  428. }, "identifier");
  429. var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
  430. var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
  431. var integer = "(?:" + decimalInteger + "|" + hexInteger + ")";
  432. var fraction = "(?:\\.\\d+)";
  433. var intPart = "(?:\\d+)";
  434. var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
  435. var floatNumber = "(?:" + pointFloat + ")";
  436. this.$rules = {
  437. "start" : [{
  438. stateName: "bracketedComment",
  439. onMatch : function(value, currentState, stack){
  440. stack.unshift(this.next, value.length - 2, currentState);
  441. return "comment";
  442. },
  443. regex : /\-\-\[=*\[/,
  444. next : [
  445. {
  446. onMatch : function(value, currentState, stack) {
  447. if (value.length == stack[1]) {
  448. stack.shift();
  449. stack.shift();
  450. this.next = stack.shift();
  451. } else {
  452. this.next = "";
  453. }
  454. return "comment";
  455. },
  456. regex : /\]=*\]/,
  457. next : "start"
  458. }, {
  459. defaultToken : "comment"
  460. }
  461. ]
  462. },
  463. {
  464. token : "comment",
  465. regex : "\\-\\-.*$"
  466. },
  467. {
  468. stateName: "bracketedString",
  469. onMatch : function(value, currentState, stack){
  470. stack.unshift(this.next, value.length, currentState);
  471. return "string.start";
  472. },
  473. regex : /\[=*\[/,
  474. next : [
  475. {
  476. onMatch : function(value, currentState, stack) {
  477. if (value.length == stack[1]) {
  478. stack.shift();
  479. stack.shift();
  480. this.next = stack.shift();
  481. } else {
  482. this.next = "";
  483. }
  484. return "string.end";
  485. },
  486. regex : /\]=*\]/,
  487. next : "start"
  488. }, {
  489. defaultToken : "string"
  490. }
  491. ]
  492. },
  493. {
  494. token : "string", // " string
  495. regex : '"(?:[^\\\\]|\\\\.)*?"'
  496. }, {
  497. token : "string", // ' string
  498. regex : "'(?:[^\\\\]|\\\\.)*?'"
  499. }, {
  500. token : "constant.numeric", // float
  501. regex : floatNumber
  502. }, {
  503. token : "constant.numeric", // integer
  504. regex : integer + "\\b"
  505. }, {
  506. token : keywordMapper,
  507. regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
  508. }, {
  509. token : "keyword.operator",
  510. regex : "\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\."
  511. }, {
  512. token : "paren.lparen",
  513. regex : "[\\[\\(\\{]"
  514. }, {
  515. token : "paren.rparen",
  516. regex : "[\\]\\)\\}]"
  517. }, {
  518. token : "text",
  519. regex : "\\s+|\\w+"
  520. } ]
  521. };
  522. this.normalizeRules();
  523. };
  524. oop.inherits(LuaHighlightRules, TextHighlightRules);
  525. exports.LuaHighlightRules = LuaHighlightRules;
  526. });
  527. ace.define("ace/mode/python_highlight_rules",[], function(require, exports, module) {
  528. "use strict";
  529. var oop = require("../lib/oop");
  530. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  531. var PythonHighlightRules = function() {
  532. var keywords = (
  533. "and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
  534. "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
  535. "raise|return|try|while|with|yield|async|await"
  536. );
  537. var builtinConstants = (
  538. "True|False|None|NotImplemented|Ellipsis|__debug__"
  539. );
  540. var builtinFunctions = (
  541. "abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
  542. "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
  543. "binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
  544. "float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
  545. "chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|" +
  546. "cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
  547. "__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
  548. "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern"
  549. );
  550. var keywordMapper = this.createKeywordMapper({
  551. "invalid.deprecated": "debugger",
  552. "support.function": builtinFunctions,
  553. "variable.language": "self|cls",
  554. "constant.language": builtinConstants,
  555. "keyword": keywords
  556. }, "identifier");
  557. var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
  558. var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
  559. var octInteger = "(?:0[oO]?[0-7]+)";
  560. var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
  561. var binInteger = "(?:0[bB][01]+)";
  562. var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
  563. var exponent = "(?:[eE][+-]?\\d+)";
  564. var fraction = "(?:\\.\\d+)";
  565. var intPart = "(?:\\d+)";
  566. var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
  567. var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
  568. var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
  569. var stringEscape = "\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";
  570. this.$rules = {
  571. "start" : [ {
  572. token : "comment",
  573. regex : "#.*$"
  574. }, {
  575. token : "string", // multi line """ string start
  576. regex : strPre + '"{3}',
  577. next : "qqstring3"
  578. }, {
  579. token : "string", // " string
  580. regex : strPre + '"(?=.)',
  581. next : "qqstring"
  582. }, {
  583. token : "string", // multi line ''' string start
  584. regex : strPre + "'{3}",
  585. next : "qstring3"
  586. }, {
  587. token : "string", // ' string
  588. regex : strPre + "'(?=.)",
  589. next : "qstring"
  590. }, {
  591. token : "constant.numeric", // imaginary
  592. regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
  593. }, {
  594. token : "constant.numeric", // float
  595. regex : floatNumber
  596. }, {
  597. token : "constant.numeric", // long integer
  598. regex : integer + "[lL]\\b"
  599. }, {
  600. token : "constant.numeric", // integer
  601. regex : integer + "\\b"
  602. }, {
  603. token : keywordMapper,
  604. regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
  605. }, {
  606. token : "keyword.operator",
  607. regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
  608. }, {
  609. token : "paren.lparen",
  610. regex : "[\\[\\(\\{]"
  611. }, {
  612. token : "paren.rparen",
  613. regex : "[\\]\\)\\}]"
  614. }, {
  615. token : "text",
  616. regex : "\\s+"
  617. } ],
  618. "qqstring3" : [ {
  619. token : "constant.language.escape",
  620. regex : stringEscape
  621. }, {
  622. token : "string", // multi line """ string end
  623. regex : '"{3}',
  624. next : "start"
  625. }, {
  626. defaultToken : "string"
  627. } ],
  628. "qstring3" : [ {
  629. token : "constant.language.escape",
  630. regex : stringEscape
  631. }, {
  632. token : "string", // multi line ''' string end
  633. regex : "'{3}",
  634. next : "start"
  635. }, {
  636. defaultToken : "string"
  637. } ],
  638. "qqstring" : [{
  639. token : "constant.language.escape",
  640. regex : stringEscape
  641. }, {
  642. token : "string",
  643. regex : "\\\\$",
  644. next : "qqstring"
  645. }, {
  646. token : "string",
  647. regex : '"|$',
  648. next : "start"
  649. }, {
  650. defaultToken: "string"
  651. }],
  652. "qstring" : [{
  653. token : "constant.language.escape",
  654. regex : stringEscape
  655. }, {
  656. token : "string",
  657. regex : "\\\\$",
  658. next : "qstring"
  659. }, {
  660. token : "string",
  661. regex : "'|$",
  662. next : "start"
  663. }, {
  664. defaultToken: "string"
  665. }]
  666. };
  667. };
  668. oop.inherits(PythonHighlightRules, TextHighlightRules);
  669. exports.PythonHighlightRules = PythonHighlightRules;
  670. });
  671. ace.define("ace/mode/csound_orchestra_highlight_rules",[], function(require, exports, module) {
  672. "use strict";
  673. var lang = require("../lib/lang");
  674. var oop = require("../lib/oop");
  675. var CsoundPreprocessorHighlightRules = require("./csound_preprocessor_highlight_rules").CsoundPreprocessorHighlightRules;
  676. var CsoundScoreHighlightRules = require("./csound_score_highlight_rules").CsoundScoreHighlightRules;
  677. var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
  678. var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
  679. var CsoundOrchestraHighlightRules = function() {
  680. CsoundPreprocessorHighlightRules.call(this);
  681. var opcodes = [
  682. "ATSadd",
  683. "ATSaddnz",
  684. "ATSbufread",
  685. "ATScross",
  686. "ATSinfo",
  687. "ATSinterpread",
  688. "ATSpartialtap",
  689. "ATSread",
  690. "ATSreadnz",
  691. "ATSsinnoi",
  692. "FLbox",
  693. "FLbutBank",
  694. "FLbutton",
  695. "FLcloseButton",
  696. "FLcolor",
  697. "FLcolor2",
  698. "FLcount",
  699. "FLexecButton",
  700. "FLgetsnap",
  701. "FLgroup",
  702. "FLgroupEnd",
  703. "FLgroup_end",
  704. "FLhide",
  705. "FLhvsBox",
  706. "FLhvsBoxSetValue",
  707. "FLjoy",
  708. "FLkeyIn",
  709. "FLknob",
  710. "FLlabel",
  711. "FLloadsnap",
  712. "FLmouse",
  713. "FLpack",
  714. "FLpackEnd",
  715. "FLpack_end",
  716. "FLpanel",
  717. "FLpanelEnd",
  718. "FLpanel_end",
  719. "FLprintk",
  720. "FLprintk2",
  721. "FLroller",
  722. "FLrun",
  723. "FLsavesnap",
  724. "FLscroll",
  725. "FLscrollEnd",
  726. "FLscroll_end",
  727. "FLsetAlign",
  728. "FLsetBox",
  729. "FLsetColor",
  730. "FLsetColor2",
  731. "FLsetFont",
  732. "FLsetPosition",
  733. "FLsetSize",
  734. "FLsetSnapGroup",
  735. "FLsetText",
  736. "FLsetTextColor",
  737. "FLsetTextSize",
  738. "FLsetTextType",
  739. "FLsetVal",
  740. "FLsetVal_i",
  741. "FLsetVali",
  742. "FLsetsnap",
  743. "FLshow",
  744. "FLslidBnk",
  745. "FLslidBnk2",
  746. "FLslidBnk2Set",
  747. "FLslidBnk2Setk",
  748. "FLslidBnkGetHandle",
  749. "FLslidBnkSet",
  750. "FLslidBnkSetk",
  751. "FLslider",
  752. "FLtabs",
  753. "FLtabsEnd",
  754. "FLtabs_end",
  755. "FLtext",
  756. "FLupdate",
  757. "FLvalue",
  758. "FLvkeybd",
  759. "FLvslidBnk",
  760. "FLvslidBnk2",
  761. "FLxyin",
  762. "JackoAudioIn",
  763. "JackoAudioInConnect",
  764. "JackoAudioOut",
  765. "JackoAudioOutConnect",
  766. "JackoFreewheel",
  767. "JackoInfo",
  768. "JackoInit",
  769. "JackoMidiInConnect",
  770. "JackoMidiOut",
  771. "JackoMidiOutConnect",
  772. "JackoNoteOut",
  773. "JackoOn",
  774. "JackoTransport",
  775. "K35_hpf",
  776. "K35_lpf",
  777. "MixerClear",
  778. "MixerGetLevel",
  779. "MixerReceive",
  780. "MixerSend",
  781. "MixerSetLevel",
  782. "MixerSetLevel_i",
  783. "OSCinit",
  784. "OSClisten",
  785. "OSCraw",
  786. "OSCsend",
  787. "S",
  788. "STKBandedWG",
  789. "STKBeeThree",
  790. "STKBlowBotl",
  791. "STKBlowHole",
  792. "STKBowed",
  793. "STKBrass",
  794. "STKClarinet",
  795. "STKDrummer",
  796. "STKFMVoices",
  797. "STKFlute",
  798. "STKHevyMetl",
  799. "STKMandolin",
  800. "STKModalBar",
  801. "STKMoog",
  802. "STKPercFlut",
  803. "STKPlucked",
  804. "STKResonate",
  805. "STKRhodey",
  806. "STKSaxofony",
  807. "STKShakers",
  808. "STKSimple",
  809. "STKSitar",
  810. "STKStifKarp",
  811. "STKTubeBell",
  812. "STKVoicForm",
  813. "STKWhistle",
  814. "STKWurley",
  815. "a",
  816. "abs",
  817. "active",
  818. "adsr",
  819. "adsyn",
  820. "adsynt",
  821. "adsynt2",
  822. "aftouch",
  823. "alpass",
  824. "alwayson",
  825. "ampdb",
  826. "ampdbfs",
  827. "ampmidi",
  828. "ampmidid",
  829. "areson",
  830. "aresonk",
  831. "atone",
  832. "atonek",
  833. "atonex",
  834. "babo",
  835. "balance",
  836. "bamboo",
  837. "barmodel",
  838. "bbcutm",
  839. "bbcuts",
  840. "betarand",
  841. "bexprnd",
  842. "bformdec1",
  843. "bformenc1",
  844. "binit",
  845. "biquad",
  846. "biquada",
  847. "birnd",
  848. "bpf",
  849. "bqrez",
  850. "buchla",
  851. "butbp",
  852. "butbr",
  853. "buthp",
  854. "butlp",
  855. "butterbp",
  856. "butterbr",
  857. "butterhp",
  858. "butterlp",
  859. "button",
  860. "buzz",
  861. "c2r",
  862. "cabasa",
  863. "cauchy",
  864. "cauchyi",
  865. "cbrt",
  866. "ceil",
  867. "cell",
  868. "cent",
  869. "centroid",
  870. "ceps",
  871. "cepsinv",
  872. "chanctrl",
  873. "changed",
  874. "changed2",
  875. "chani",
  876. "chano",
  877. "chebyshevpoly",
  878. "checkbox",
  879. "chn_S",
  880. "chn_a",
  881. "chn_k",
  882. "chnclear",
  883. "chnexport",
  884. "chnget",
  885. "chngetks",
  886. "chnmix",
  887. "chnparams",
  888. "chnset",
  889. "chnsetks",
  890. "chuap",
  891. "clear",
  892. "clfilt",
  893. "clip",
  894. "clockoff",
  895. "clockon",
  896. "cmp",
  897. "cmplxprod",
  898. "comb",
  899. "combinv",
  900. "compilecsd",
  901. "compileorc",
  902. "compilestr",
  903. "compress",
  904. "compress2",
  905. "connect",
  906. "control",
  907. "convle",
  908. "convolve",
  909. "copya2ftab",
  910. "copyf2array",
  911. "cos",
  912. "cosh",
  913. "cosinv",
  914. "cosseg",
  915. "cossegb",
  916. "cossegr",
  917. "cps2pch",
  918. "cpsmidi",
  919. "cpsmidib",
  920. "cpsmidinn",
  921. "cpsoct",
  922. "cpspch",
  923. "cpstmid",
  924. "cpstun",
  925. "cpstuni",
  926. "cpsxpch",
  927. "cpumeter",
  928. "cpuprc",
  929. "cross2",
  930. "crossfm",
  931. "crossfmi",
  932. "crossfmpm",
  933. "crossfmpmi",
  934. "crosspm",
  935. "crosspmi",
  936. "crunch",
  937. "ctlchn",
  938. "ctrl14",
  939. "ctrl21",
  940. "ctrl7",
  941. "ctrlinit",
  942. "cuserrnd",
  943. "dam",
  944. "date",
  945. "dates",
  946. "db",
  947. "dbamp",
  948. "dbfsamp",
  949. "dcblock",
  950. "dcblock2",
  951. "dconv",
  952. "dct",
  953. "dctinv",
  954. "delay",
  955. "delay1",
  956. "delayk",
  957. "delayr",
  958. "delayw",
  959. "deltap",
  960. "deltap3",
  961. "deltapi",
  962. "deltapn",
  963. "deltapx",
  964. "deltapxw",
  965. "denorm",
  966. "diff",
  967. "diode_ladder",
  968. "directory",
  969. "diskgrain",
  970. "diskin",
  971. "diskin2",
  972. "dispfft",
  973. "display",
  974. "distort",
  975. "distort1",
  976. "divz",
  977. "doppler",
  978. "dot",
  979. "downsamp",
  980. "dripwater",
  981. "dssiactivate",
  982. "dssiaudio",
  983. "dssictls",
  984. "dssiinit",
  985. "dssilist",
  986. "dumpk",
  987. "dumpk2",
  988. "dumpk3",
  989. "dumpk4",
  990. "duserrnd",
  991. "dust",
  992. "dust2",
  993. "envlpx",
  994. "envlpxr",
  995. "ephasor",
  996. "eqfil",
  997. "evalstr",
  998. "event",
  999. "event_i",
  1000. "exciter",
  1001. "exitnow",
  1002. "exp",
  1003. "expcurve",
  1004. "expon",
  1005. "exprand",
  1006. "exprandi",
  1007. "expseg",
  1008. "expsega",
  1009. "expsegb",
  1010. "expsegba",
  1011. "expsegr",
  1012. "fareylen",
  1013. "fareyleni",
  1014. "faustaudio",
  1015. "faustcompile",
  1016. "faustctl",
  1017. "faustgen",
  1018. "fft",
  1019. "fftinv",
  1020. "ficlose",
  1021. "filebit",
  1022. "filelen",
  1023. "filenchnls",
  1024. "filepeak",
  1025. "filescal",
  1026. "filesr",
  1027. "filevalid",
  1028. "fillarray",
  1029. "filter2",
  1030. "fin",
  1031. "fini",
  1032. "fink",
  1033. "fiopen",
  1034. "flanger",
  1035. "flashtxt",
  1036. "flooper",
  1037. "flooper2",
  1038. "floor",
  1039. "fluidAllOut",
  1040. "fluidCCi",
  1041. "fluidCCk",
  1042. "fluidControl",
  1043. "fluidEngine",
  1044. "fluidLoad",
  1045. "fluidNote",
  1046. "fluidOut",
  1047. "fluidProgramSelect",
  1048. "fluidSetInterpMethod",
  1049. "fmanal",
  1050. "fmax",
  1051. "fmb3",
  1052. "fmbell",
  1053. "fmin",
  1054. "fmmetal",
  1055. "fmod",
  1056. "fmpercfl",
  1057. "fmrhode",
  1058. "fmvoice",
  1059. "fmwurlie",
  1060. "fof",
  1061. "fof2",
  1062. "fofilter",
  1063. "fog",
  1064. "fold",
  1065. "follow",
  1066. "follow2",
  1067. "foscil",
  1068. "foscili",
  1069. "fout",
  1070. "fouti",
  1071. "foutir",
  1072. "foutk",
  1073. "fprintks",
  1074. "fprints",
  1075. "frac",
  1076. "fractalnoise",
  1077. "framebuffer",
  1078. "freeverb",
  1079. "ftchnls",
  1080. "ftconv",
  1081. "ftcps",
  1082. "ftfree",
  1083. "ftgen",
  1084. "ftgenonce",
  1085. "ftgentmp",
  1086. "ftlen",
  1087. "ftload",
  1088. "ftloadk",
  1089. "ftlptim",
  1090. "ftmorf",
  1091. "ftom",
  1092. "ftresize",
  1093. "ftresizei",
  1094. "ftsamplebank",
  1095. "ftsave",
  1096. "ftsavek",
  1097. "ftsr",
  1098. "gain",
  1099. "gainslider",
  1100. "gauss",
  1101. "gaussi",
  1102. "gausstrig",
  1103. "gbuzz",
  1104. "genarray",
  1105. "genarray_i",
  1106. "gendy",
  1107. "gendyc",
  1108. "gendyx",
  1109. "getcfg",
  1110. "getcol",
  1111. "getftargs",
  1112. "getrow",
  1113. "getseed",
  1114. "gogobel",
  1115. "grain",
  1116. "grain2",
  1117. "grain3",
  1118. "granule",
  1119. "guiro",
  1120. "harmon",
  1121. "harmon2",
  1122. "harmon3",
  1123. "harmon4",
  1124. "hdf5read",
  1125. "hdf5write",
  1126. "hilbert",
  1127. "hilbert2",
  1128. "hrtfearly",
  1129. "hrtfmove",
  1130. "hrtfmove2",
  1131. "hrtfreverb",
  1132. "hrtfstat",
  1133. "hsboscil",
  1134. "hvs1",
  1135. "hvs2",
  1136. "hvs3",
  1137. "hypot",
  1138. "i",
  1139. "ihold",
  1140. "imagecreate",
  1141. "imagefree",
  1142. "imagegetpixel",
  1143. "imageload",
  1144. "imagesave",
  1145. "imagesetpixel",
  1146. "imagesize",
  1147. "in",
  1148. "in32",
  1149. "inch",
  1150. "inh",
  1151. "init",
  1152. "initc14",
  1153. "initc21",
  1154. "initc7",
  1155. "inleta",
  1156. "inletf",
  1157. "inletk",
  1158. "inletkid",
  1159. "inletv",
  1160. "ino",
  1161. "inq",
  1162. "inrg",
  1163. "ins",
  1164. "insglobal",
  1165. "insremot",
  1166. "int",
  1167. "integ",
  1168. "interp",
  1169. "invalue",
  1170. "inx",
  1171. "inz",
  1172. "jacktransport",
  1173. "jitter",
  1174. "jitter2",
  1175. "joystick",
  1176. "jspline",
  1177. "k",
  1178. "la_i_add_mc",
  1179. "la_i_add_mr",
  1180. "la_i_add_vc",
  1181. "la_i_add_vr",
  1182. "la_i_assign_mc",
  1183. "la_i_assign_mr",
  1184. "la_i_assign_t",
  1185. "la_i_assign_vc",
  1186. "la_i_assign_vr",
  1187. "la_i_conjugate_mc",
  1188. "la_i_conjugate_mr",
  1189. "la_i_conjugate_vc",
  1190. "la_i_conjugate_vr",
  1191. "la_i_distance_vc",
  1192. "la_i_distance_vr",
  1193. "la_i_divide_mc",
  1194. "la_i_divide_mr",
  1195. "la_i_divide_vc",
  1196. "la_i_divide_vr",
  1197. "la_i_dot_mc",
  1198. "la_i_dot_mc_vc",
  1199. "la_i_dot_mr",
  1200. "la_i_dot_mr_vr",
  1201. "la_i_dot_vc",
  1202. "la_i_dot_vr",
  1203. "la_i_get_mc",
  1204. "la_i_get_mr",
  1205. "la_i_get_vc",
  1206. "la_i_get_vr",
  1207. "la_i_invert_mc",
  1208. "la_i_invert_mr",
  1209. "la_i_lower_solve_mc",
  1210. "la_i_lower_solve_mr",
  1211. "la_i_lu_det_mc",
  1212. "la_i_lu_det_mr",
  1213. "la_i_lu_factor_mc",
  1214. "la_i_lu_factor_mr",
  1215. "la_i_lu_solve_mc",
  1216. "la_i_lu_solve_mr",
  1217. "la_i_mc_create",
  1218. "la_i_mc_set",
  1219. "la_i_mr_create",
  1220. "la_i_mr_set",
  1221. "la_i_multiply_mc",
  1222. "la_i_multiply_mr",
  1223. "la_i_multiply_vc",
  1224. "la_i_multiply_vr",
  1225. "la_i_norm1_mc",
  1226. "la_i_norm1_mr",
  1227. "la_i_norm1_vc",
  1228. "la_i_norm1_vr",
  1229. "la_i_norm_euclid_mc",
  1230. "la_i_norm_euclid_mr",
  1231. "la_i_norm_euclid_vc",
  1232. "la_i_norm_euclid_vr",
  1233. "la_i_norm_inf_mc",
  1234. "la_i_norm_inf_mr",
  1235. "la_i_norm_inf_vc",
  1236. "la_i_norm_inf_vr",
  1237. "la_i_norm_max_mc",
  1238. "la_i_norm_max_mr",
  1239. "la_i_print_mc",
  1240. "la_i_print_mr",
  1241. "la_i_print_vc",
  1242. "la_i_print_vr",
  1243. "la_i_qr_eigen_mc",
  1244. "la_i_qr_eigen_mr",
  1245. "la_i_qr_factor_mc",
  1246. "la_i_qr_factor_mr",
  1247. "la_i_qr_sym_eigen_mc",
  1248. "la_i_qr_sym_eigen_mr",
  1249. "la_i_random_mc",
  1250. "la_i_random_mr",
  1251. "la_i_random_vc",
  1252. "la_i_random_vr",
  1253. "la_i_size_mc",
  1254. "la_i_size_mr",
  1255. "la_i_size_vc",
  1256. "la_i_size_vr",
  1257. "la_i_subtract_mc",
  1258. "la_i_subtract_mr",
  1259. "la_i_subtract_vc",
  1260. "la_i_subtract_vr",
  1261. "la_i_t_assign",
  1262. "la_i_trace_mc",
  1263. "la_i_trace_mr",
  1264. "la_i_transpose_mc",
  1265. "la_i_transpose_mr",
  1266. "la_i_upper_solve_mc",
  1267. "la_i_upper_solve_mr",
  1268. "la_i_vc_create",
  1269. "la_i_vc_set",
  1270. "la_i_vr_create",
  1271. "la_i_vr_set",
  1272. "la_k_a_assign",
  1273. "la_k_add_mc",
  1274. "la_k_add_mr",
  1275. "la_k_add_vc",
  1276. "la_k_add_vr",
  1277. "la_k_assign_a",
  1278. "la_k_assign_f",
  1279. "la_k_assign_mc",
  1280. "la_k_assign_mr",
  1281. "la_k_assign_t",
  1282. "la_k_assign_vc",
  1283. "la_k_assign_vr",
  1284. "la_k_conjugate_mc",
  1285. "la_k_conjugate_mr",
  1286. "la_k_conjugate_vc",
  1287. "la_k_conjugate_vr",
  1288. "la_k_current_f",
  1289. "la_k_current_vr",
  1290. "la_k_distance_vc",
  1291. "la_k_distance_vr",
  1292. "la_k_divide_mc",
  1293. "la_k_divide_mr",
  1294. "la_k_divide_vc",
  1295. "la_k_divide_vr",
  1296. "la_k_dot_mc",
  1297. "la_k_dot_mc_vc",
  1298. "la_k_dot_mr",
  1299. "la_k_dot_mr_vr",
  1300. "la_k_dot_vc",
  1301. "la_k_dot_vr",
  1302. "la_k_f_assign",
  1303. "la_k_get_mc",
  1304. "la_k_get_mr",
  1305. "la_k_get_vc",
  1306. "la_k_get_vr",
  1307. "la_k_invert_mc",
  1308. "la_k_invert_mr",
  1309. "la_k_lower_solve_mc",
  1310. "la_k_lower_solve_mr",
  1311. "la_k_lu_det_mc",
  1312. "la_k_lu_det_mr",
  1313. "la_k_lu_factor_mc",
  1314. "la_k_lu_factor_mr",
  1315. "la_k_lu_solve_mc",
  1316. "la_k_lu_solve_mr",
  1317. "la_k_mc_set",
  1318. "la_k_mr_set",
  1319. "la_k_multiply_mc",
  1320. "la_k_multiply_mr",
  1321. "la_k_multiply_vc",
  1322. "la_k_multiply_vr",
  1323. "la_k_norm1_mc",
  1324. "la_k_norm1_mr",
  1325. "la_k_norm1_vc",
  1326. "la_k_norm1_vr",
  1327. "la_k_norm_euclid_mc",
  1328. "la_k_norm_euclid_mr",
  1329. "la_k_norm_euclid_vc",
  1330. "la_k_norm_euclid_vr",
  1331. "la_k_norm_inf_mc",
  1332. "la_k_norm_inf_mr",
  1333. "la_k_norm_inf_vc",
  1334. "la_k_norm_inf_vr",
  1335. "la_k_norm_max_mc",
  1336. "la_k_norm_max_mr",
  1337. "la_k_qr_eigen_mc",
  1338. "la_k_qr_eigen_mr",
  1339. "la_k_qr_factor_mc",
  1340. "la_k_qr_factor_mr",
  1341. "la_k_qr_sym_eigen_mc",
  1342. "la_k_qr_sym_eigen_mr",
  1343. "la_k_random_mc",
  1344. "la_k_random_mr",
  1345. "la_k_random_vc",
  1346. "la_k_random_vr",
  1347. "la_k_subtract_mc",
  1348. "la_k_subtract_mr",
  1349. "la_k_subtract_vc",
  1350. "la_k_subtract_vr",
  1351. "la_k_t_assign",
  1352. "la_k_trace_mc",
  1353. "la_k_trace_mr",
  1354. "la_k_upper_solve_mc",
  1355. "la_k_upper_solve_mr",
  1356. "la_k_vc_set",
  1357. "la_k_vr_set",
  1358. "lenarray",
  1359. "lfo",
  1360. "limit",
  1361. "limit1",
  1362. "line",
  1363. "linen",
  1364. "linenr",
  1365. "lineto",
  1366. "link_beat_force",
  1367. "link_beat_get",
  1368. "link_beat_request",
  1369. "link_create",
  1370. "link_enable",
  1371. "link_is_enabled",
  1372. "link_metro",
  1373. "link_peers",
  1374. "link_tempo_get",
  1375. "link_tempo_set",
  1376. "linlin",
  1377. "linrand",
  1378. "linseg",
  1379. "linsegb",
  1380. "linsegr",
  1381. "liveconv",
  1382. "locsend",
  1383. "locsig",
  1384. "log",
  1385. "log10",
  1386. "log2",
  1387. "logbtwo",
  1388. "logcurve",
  1389. "loopseg",
  1390. "loopsegp",
  1391. "looptseg",
  1392. "loopxseg",
  1393. "lorenz",
  1394. "loscil",
  1395. "loscil3",
  1396. "loscilx",
  1397. "lowpass2",
  1398. "lowres",
  1399. "lowresx",
  1400. "lpf18",
  1401. "lpform",
  1402. "lpfreson",
  1403. "lphasor",
  1404. "lpinterp",
  1405. "lposcil",
  1406. "lposcil3",
  1407. "lposcila",
  1408. "lposcilsa",
  1409. "lposcilsa2",
  1410. "lpread",
  1411. "lpreson",
  1412. "lpshold",
  1413. "lpsholdp",
  1414. "lpslot",
  1415. "lua_exec",
  1416. "lua_iaopcall",
  1417. "lua_iaopcall_off",
  1418. "lua_ikopcall",
  1419. "lua_ikopcall_off",
  1420. "lua_iopcall",
  1421. "lua_iopcall_off",
  1422. "lua_opdef",
  1423. "mac",
  1424. "maca",
  1425. "madsr",
  1426. "mags",
  1427. "mandel",
  1428. "mandol",
  1429. "maparray",
  1430. "maparray_i",
  1431. "marimba",
  1432. "massign",
  1433. "max",
  1434. "max_k",
  1435. "maxabs",
  1436. "maxabsaccum",
  1437. "maxaccum",
  1438. "maxalloc",
  1439. "maxarray",
  1440. "mclock",
  1441. "mdelay",
  1442. "median",
  1443. "mediank",
  1444. "metro",
  1445. "mfb",
  1446. "midglobal",
  1447. "midiarp",
  1448. "midic14",
  1449. "midic21",
  1450. "midic7",
  1451. "midichannelaftertouch",
  1452. "midichn",
  1453. "midicontrolchange",
  1454. "midictrl",
  1455. "mididefault",
  1456. "midifilestatus",
  1457. "midiin",
  1458. "midinoteoff",
  1459. "midinoteoncps",
  1460. "midinoteonkey",
  1461. "midinoteonoct",
  1462. "midinoteonpch",
  1463. "midion",
  1464. "midion2",
  1465. "midiout",
  1466. "midiout_i",
  1467. "midipgm",
  1468. "midipitchbend",
  1469. "midipolyaftertouch",
  1470. "midiprogramchange",
  1471. "miditempo",
  1472. "midremot",
  1473. "min",
  1474. "minabs",
  1475. "minabsaccum",
  1476. "minaccum",
  1477. "minarray",
  1478. "mincer",
  1479. "mirror",
  1480. "mode",
  1481. "modmatrix",
  1482. "monitor",
  1483. "moog",
  1484. "moogladder",
  1485. "moogladder2",
  1486. "moogvcf",
  1487. "moogvcf2",
  1488. "moscil",
  1489. "mp3bitrate",
  1490. "mp3in",
  1491. "mp3len",
  1492. "mp3nchnls",
  1493. "mp3scal",
  1494. "mp3scal_check",
  1495. "mp3scal_load",
  1496. "mp3scal_load2",
  1497. "mp3scal_play",
  1498. "mp3scal_play2",
  1499. "mp3sr",
  1500. "mpulse",
  1501. "mrtmsg",
  1502. "mtof",
  1503. "mton",
  1504. "multitap",
  1505. "mute",
  1506. "mvchpf",
  1507. "mvclpf1",
  1508. "mvclpf2",
  1509. "mvclpf3",
  1510. "mvclpf4",
  1511. "mxadsr",
  1512. "nchnls_hw",
  1513. "nestedap",
  1514. "nlalp",
  1515. "nlfilt",
  1516. "nlfilt2",
  1517. "noise",
  1518. "noteoff",
  1519. "noteon",
  1520. "noteondur",
  1521. "noteondur2",
  1522. "notnum",
  1523. "nreverb",
  1524. "nrpn",
  1525. "nsamp",
  1526. "nstance",
  1527. "nstrnum",
  1528. "ntom",
  1529. "ntrpol",
  1530. "nxtpow2",
  1531. "octave",
  1532. "octcps",
  1533. "octmidi",
  1534. "octmidib",
  1535. "octmidinn",
  1536. "octpch",
  1537. "olabuffer",
  1538. "oscbnk",
  1539. "oscil",
  1540. "oscil1",
  1541. "oscil1i",
  1542. "oscil3",
  1543. "oscili",
  1544. "oscilikt",
  1545. "osciliktp",
  1546. "oscilikts",
  1547. "osciln",
  1548. "oscils",
  1549. "oscilx",
  1550. "out",
  1551. "out32",
  1552. "outc",
  1553. "outch",
  1554. "outh",
  1555. "outiat",
  1556. "outic",
  1557. "outic14",
  1558. "outipat",
  1559. "outipb",
  1560. "outipc",
  1561. "outkat",
  1562. "outkc",
  1563. "outkc14",
  1564. "outkpat",
  1565. "outkpb",
  1566. "outkpc",
  1567. "outleta",
  1568. "outletf",
  1569. "outletk",
  1570. "outletkid",
  1571. "outletv",
  1572. "outo",
  1573. "outq",
  1574. "outq1",
  1575. "outq2",
  1576. "outq3",
  1577. "outq4",
  1578. "outrg",
  1579. "outs",
  1580. "outs1",
  1581. "outs2",
  1582. "outvalue",
  1583. "outx",
  1584. "outz",
  1585. "p",
  1586. "p5gconnect",
  1587. "p5gdata",
  1588. "pan",
  1589. "pan2",
  1590. "pareq",
  1591. "part2txt",
  1592. "partials",
  1593. "partikkel",
  1594. "partikkelget",
  1595. "partikkelset",
  1596. "partikkelsync",
  1597. "passign",
  1598. "paulstretch",
  1599. "pcauchy",
  1600. "pchbend",
  1601. "pchmidi",
  1602. "pchmidib",
  1603. "pchmidinn",
  1604. "pchoct",
  1605. "pchtom",
  1606. "pconvolve",
  1607. "pcount",
  1608. "pdclip",
  1609. "pdhalf",
  1610. "pdhalfy",
  1611. "peak",
  1612. "pgmassign",
  1613. "pgmchn",
  1614. "phaser1",
  1615. "phaser2",
  1616. "phasor",
  1617. "phasorbnk",
  1618. "phs",
  1619. "pindex",
  1620. "pinker",
  1621. "pinkish",
  1622. "pitch",
  1623. "pitchac",
  1624. "pitchamdf",
  1625. "planet",
  1626. "platerev",
  1627. "plltrack",
  1628. "pluck",
  1629. "poisson",
  1630. "pol2rect",
  1631. "polyaft",
  1632. "polynomial",
  1633. "port",
  1634. "portk",
  1635. "poscil",
  1636. "poscil3",
  1637. "pow",
  1638. "powershape",
  1639. "powoftwo",
  1640. "pows",
  1641. "prealloc",
  1642. "prepiano",
  1643. "print",
  1644. "print_type",
  1645. "printf",
  1646. "printf_i",
  1647. "printk",
  1648. "printk2",
  1649. "printks",
  1650. "printks2",
  1651. "prints",
  1652. "product",
  1653. "pset",
  1654. "ptable",
  1655. "ptable3",
  1656. "ptablei",
  1657. "ptableiw",
  1658. "ptablew",
  1659. "ptrack",
  1660. "puts",
  1661. "pvadd",
  1662. "pvbufread",
  1663. "pvcross",
  1664. "pvinterp",
  1665. "pvoc",
  1666. "pvread",
  1667. "pvs2array",
  1668. "pvs2tab",
  1669. "pvsadsyn",
  1670. "pvsanal",
  1671. "pvsarp",
  1672. "pvsbandp",
  1673. "pvsbandr",
  1674. "pvsbin",
  1675. "pvsblur",
  1676. "pvsbuffer",
  1677. "pvsbufread",
  1678. "pvsbufread2",
  1679. "pvscale",
  1680. "pvscent",
  1681. "pvsceps",
  1682. "pvscross",
  1683. "pvsdemix",
  1684. "pvsdiskin",
  1685. "pvsdisp",
  1686. "pvsenvftw",
  1687. "pvsfilter",
  1688. "pvsfread",
  1689. "pvsfreeze",
  1690. "pvsfromarray",
  1691. "pvsftr",
  1692. "pvsftw",
  1693. "pvsfwrite",
  1694. "pvsgain",
  1695. "pvsgendy",
  1696. "pvshift",
  1697. "pvsifd",
  1698. "pvsin",
  1699. "pvsinfo",
  1700. "pvsinit",
  1701. "pvslock",
  1702. "pvsmaska",
  1703. "pvsmix",
  1704. "pvsmooth",
  1705. "pvsmorph",
  1706. "pvsosc",
  1707. "pvsout",
  1708. "pvspitch",
  1709. "pvstanal",
  1710. "pvstencil",
  1711. "pvstrace",
  1712. "pvsvoc",
  1713. "pvswarp",
  1714. "pvsynth",
  1715. "pwd",
  1716. "pyassign",
  1717. "pyassigni",
  1718. "pyassignt",
  1719. "pycall",
  1720. "pycall1",
  1721. "pycall1i",
  1722. "pycall1t",
  1723. "pycall2",
  1724. "pycall2i",
  1725. "pycall2t",
  1726. "pycall3",
  1727. "pycall3i",
  1728. "pycall3t",
  1729. "pycall4",
  1730. "pycall4i",
  1731. "pycall4t",
  1732. "pycall5",
  1733. "pycall5i",
  1734. "pycall5t",
  1735. "pycall6",
  1736. "pycall6i",
  1737. "pycall6t",
  1738. "pycall7",
  1739. "pycall7i",
  1740. "pycall7t",
  1741. "pycall8",
  1742. "pycall8i",
  1743. "pycall8t",
  1744. "pycalli",
  1745. "pycalln",
  1746. "pycallni",
  1747. "pycallt",
  1748. "pyeval",
  1749. "pyevali",
  1750. "pyevalt",
  1751. "pyexec",
  1752. "pyexeci",
  1753. "pyexect",
  1754. "pyinit",
  1755. "pylassign",
  1756. "pylassigni",
  1757. "pylassignt",
  1758. "pylcall",
  1759. "pylcall1",
  1760. "pylcall1i",
  1761. "pylcall1t",
  1762. "pylcall2",
  1763. "pylcall2i",
  1764. "pylcall2t",
  1765. "pylcall3",
  1766. "pylcall3i",
  1767. "pylcall3t",
  1768. "pylcall4",
  1769. "pylcall4i",
  1770. "pylcall4t",
  1771. "pylcall5",
  1772. "pylcall5i",
  1773. "pylcall5t",
  1774. "pylcall6",
  1775. "pylcall6i",
  1776. "pylcall6t",
  1777. "pylcall7",
  1778. "pylcall7i",
  1779. "pylcall7t",
  1780. "pylcall8",
  1781. "pylcall8i",
  1782. "pylcall8t",
  1783. "pylcalli",
  1784. "pylcalln",
  1785. "pylcallni",
  1786. "pylcallt",
  1787. "pyleval",
  1788. "pylevali",
  1789. "pylevalt",
  1790. "pylexec",
  1791. "pylexeci",
  1792. "pylexect",
  1793. "pylrun",
  1794. "pylruni",
  1795. "pylrunt",
  1796. "pyrun",
  1797. "pyruni",
  1798. "pyrunt",
  1799. "qinf",
  1800. "qnan",
  1801. "r2c",
  1802. "rand",
  1803. "randh",
  1804. "randi",
  1805. "random",
  1806. "randomh",
  1807. "randomi",
  1808. "rbjeq",
  1809. "readclock",
  1810. "readf",
  1811. "readfi",
  1812. "readk",
  1813. "readk2",
  1814. "readk3",
  1815. "readk4",
  1816. "readks",
  1817. "readscore",
  1818. "readscratch",
  1819. "rect2pol",
  1820. "release",
  1821. "remoteport",
  1822. "remove",
  1823. "repluck",
  1824. "reson",
  1825. "resonk",
  1826. "resonr",
  1827. "resonx",
  1828. "resonxk",
  1829. "resony",
  1830. "resonz",
  1831. "resyn",
  1832. "reverb",
  1833. "reverb2",
  1834. "reverbsc",
  1835. "rewindscore",
  1836. "rezzy",
  1837. "rfft",
  1838. "rifft",
  1839. "rms",
  1840. "rnd",
  1841. "rnd31",
  1842. "round",
  1843. "rspline",
  1844. "rtclock",
  1845. "s16b14",
  1846. "s32b14",
  1847. "samphold",
  1848. "sandpaper",
  1849. "sc_lag",
  1850. "sc_lagud",
  1851. "sc_phasor",
  1852. "sc_trig",
  1853. "scale",
  1854. "scalearray",
  1855. "scanhammer",
  1856. "scans",
  1857. "scantable",
  1858. "scanu",
  1859. "schedkwhen",
  1860. "schedkwhennamed",
  1861. "schedule",
  1862. "schedwhen",
  1863. "scoreline",
  1864. "scoreline_i",
  1865. "seed",
  1866. "sekere",
  1867. "select",
  1868. "semitone",
  1869. "sense",
  1870. "sensekey",
  1871. "seqtime",
  1872. "seqtime2",
  1873. "serialBegin",
  1874. "serialEnd",
  1875. "serialFlush",
  1876. "serialPrint",
  1877. "serialRead",
  1878. "serialWrite",
  1879. "serialWrite_i",
  1880. "setcol",
  1881. "setctrl",
  1882. "setksmps",
  1883. "setrow",
  1884. "setscorepos",
  1885. "sfilist",
  1886. "sfinstr",
  1887. "sfinstr3",
  1888. "sfinstr3m",
  1889. "sfinstrm",
  1890. "sfload",
  1891. "sflooper",
  1892. "sfpassign",
  1893. "sfplay",
  1894. "sfplay3",
  1895. "sfplay3m",
  1896. "sfplaym",
  1897. "sfplist",
  1898. "sfpreset",
  1899. "shaker",
  1900. "shiftin",
  1901. "shiftout",
  1902. "signalflowgraph",
  1903. "signum",
  1904. "sin",
  1905. "sinh",
  1906. "sininv",
  1907. "sinsyn",
  1908. "sleighbells",
  1909. "slicearray",
  1910. "slider16",
  1911. "slider16f",
  1912. "slider16table",
  1913. "slider16tablef",
  1914. "slider32",
  1915. "slider32f",
  1916. "slider32table",
  1917. "slider32tablef",
  1918. "slider64",
  1919. "slider64f",
  1920. "slider64table",
  1921. "slider64tablef",
  1922. "slider8",
  1923. "slider8f",
  1924. "slider8table",
  1925. "slider8tablef",
  1926. "sliderKawai",
  1927. "sndloop",
  1928. "sndwarp",
  1929. "sndwarpst",
  1930. "sockrecv",
  1931. "sockrecvs",
  1932. "socksend",
  1933. "socksend_k",
  1934. "socksends",
  1935. "sorta",
  1936. "sortd",
  1937. "soundin",
  1938. "space",
  1939. "spat3d",
  1940. "spat3di",
  1941. "spat3dt",
  1942. "spdist",
  1943. "splitrig",
  1944. "sprintf",
  1945. "sprintfk",
  1946. "spsend",
  1947. "sqrt",
  1948. "squinewave",
  1949. "statevar",
  1950. "stix",
  1951. "strcat",
  1952. "strcatk",
  1953. "strchar",
  1954. "strchark",
  1955. "strcmp",
  1956. "strcmpk",
  1957. "strcpy",
  1958. "strcpyk",
  1959. "strecv",
  1960. "streson",
  1961. "strfromurl",
  1962. "strget",
  1963. "strindex",
  1964. "strindexk",
  1965. "strlen",
  1966. "strlenk",
  1967. "strlower",
  1968. "strlowerk",
  1969. "strrindex",
  1970. "strrindexk",
  1971. "strset",
  1972. "strsub",
  1973. "strsubk",
  1974. "strtod",
  1975. "strtodk",
  1976. "strtol",
  1977. "strtolk",
  1978. "strupper",
  1979. "strupperk",
  1980. "stsend",
  1981. "subinstr",
  1982. "subinstrinit",
  1983. "sum",
  1984. "sumarray",
  1985. "svfilter",
  1986. "syncgrain",
  1987. "syncloop",
  1988. "syncphasor",
  1989. "system",
  1990. "system_i",
  1991. "tab",
  1992. "tab2pvs",
  1993. "tab_i",
  1994. "tabifd",
  1995. "table",
  1996. "table3",
  1997. "table3kt",
  1998. "tablecopy",
  1999. "tablefilter",
  2000. "tablefilteri",
  2001. "tablegpw",
  2002. "tablei",
  2003. "tableicopy",
  2004. "tableigpw",
  2005. "tableikt",
  2006. "tableimix",
  2007. "tableiw",
  2008. "tablekt",
  2009. "tablemix",
  2010. "tableng",
  2011. "tablera",
  2012. "tableseg",
  2013. "tableshuffle",
  2014. "tableshufflei",
  2015. "tablew",
  2016. "tablewa",
  2017. "tablewkt",
  2018. "tablexkt",
  2019. "tablexseg",
  2020. "tabmorph",
  2021. "tabmorpha",
  2022. "tabmorphak",
  2023. "tabmorphi",
  2024. "tabplay",
  2025. "tabrec",
  2026. "tabsum",
  2027. "tabw",
  2028. "tabw_i",
  2029. "tambourine",
  2030. "tan",
  2031. "tanh",
  2032. "taninv",
  2033. "taninv2",
  2034. "tb0",
  2035. "tb0_init",
  2036. "tb1",
  2037. "tb10",
  2038. "tb10_init",
  2039. "tb11",
  2040. "tb11_init",
  2041. "tb12",
  2042. "tb12_init",
  2043. "tb13",
  2044. "tb13_init",
  2045. "tb14",
  2046. "tb14_init",
  2047. "tb15",
  2048. "tb15_init",
  2049. "tb1_init",
  2050. "tb2",
  2051. "tb2_init",
  2052. "tb3",
  2053. "tb3_init",
  2054. "tb4",
  2055. "tb4_init",
  2056. "tb5",
  2057. "tb5_init",
  2058. "tb6",
  2059. "tb6_init",
  2060. "tb7",
  2061. "tb7_init",
  2062. "tb8",
  2063. "tb8_init",
  2064. "tb9",
  2065. "tb9_init",
  2066. "tbvcf",
  2067. "tempest",
  2068. "tempo",
  2069. "temposcal",
  2070. "tempoval",
  2071. "timedseq",
  2072. "timeinstk",
  2073. "timeinsts",
  2074. "timek",
  2075. "times",
  2076. "tival",
  2077. "tlineto",
  2078. "tone",
  2079. "tonek",
  2080. "tonex",
  2081. "tradsyn",
  2082. "trandom",
  2083. "transeg",
  2084. "transegb",
  2085. "transegr",
  2086. "trcross",
  2087. "trfilter",
  2088. "trhighest",
  2089. "trigger",
  2090. "trigseq",
  2091. "trirand",
  2092. "trlowest",
  2093. "trmix",
  2094. "trscale",
  2095. "trshift",
  2096. "trsplit",
  2097. "turnoff",
  2098. "turnoff2",
  2099. "turnon",
  2100. "tvconv",
  2101. "unirand",
  2102. "unwrap",
  2103. "upsamp",
  2104. "urandom",
  2105. "urd",
  2106. "vactrol",
  2107. "vadd",
  2108. "vadd_i",
  2109. "vaddv",
  2110. "vaddv_i",
  2111. "vaget",
  2112. "valpass",
  2113. "vaset",
  2114. "vbap",
  2115. "vbapg",
  2116. "vbapgmove",
  2117. "vbaplsinit",
  2118. "vbapmove",
  2119. "vbapz",
  2120. "vbapzmove",
  2121. "vcella",
  2122. "vco",
  2123. "vco2",
  2124. "vco2ft",
  2125. "vco2ift",
  2126. "vco2init",
  2127. "vcomb",
  2128. "vcopy",
  2129. "vcopy_i",
  2130. "vdel_k",
  2131. "vdelay",
  2132. "vdelay3",
  2133. "vdelayk",
  2134. "vdelayx",
  2135. "vdelayxq",
  2136. "vdelayxs",
  2137. "vdelayxw",
  2138. "vdelayxwq",
  2139. "vdelayxws",
  2140. "vdivv",
  2141. "vdivv_i",
  2142. "vecdelay",
  2143. "veloc",
  2144. "vexp",
  2145. "vexp_i",
  2146. "vexpseg",
  2147. "vexpv",
  2148. "vexpv_i",
  2149. "vibes",
  2150. "vibr",
  2151. "vibrato",
  2152. "vincr",
  2153. "vlimit",
  2154. "vlinseg",
  2155. "vlowres",
  2156. "vmap",
  2157. "vmirror",
  2158. "vmult",
  2159. "vmult_i",
  2160. "vmultv",
  2161. "vmultv_i",
  2162. "voice",
  2163. "vosim",
  2164. "vphaseseg",
  2165. "vport",
  2166. "vpow",
  2167. "vpow_i",
  2168. "vpowv",
  2169. "vpowv_i",
  2170. "vpvoc",
  2171. "vrandh",
  2172. "vrandi",
  2173. "vsubv",
  2174. "vsubv_i",
  2175. "vtaba",
  2176. "vtabi",
  2177. "vtabk",
  2178. "vtable1k",
  2179. "vtablea",
  2180. "vtablei",
  2181. "vtablek",
  2182. "vtablewa",
  2183. "vtablewi",
  2184. "vtablewk",
  2185. "vtabwa",
  2186. "vtabwi",
  2187. "vtabwk",
  2188. "vwrap",
  2189. "waveset",
  2190. "websocket",
  2191. "weibull",
  2192. "wgbow",
  2193. "wgbowedbar",
  2194. "wgbrass",
  2195. "wgclar",
  2196. "wgflute",
  2197. "wgpluck",
  2198. "wgpluck2",
  2199. "wguide1",
  2200. "wguide2",
  2201. "wiiconnect",
  2202. "wiidata",
  2203. "wiirange",
  2204. "wiisend",
  2205. "window",
  2206. "wrap",
  2207. "writescratch",
  2208. "wterrain",
  2209. "xadsr",
  2210. "xin",
  2211. "xout",
  2212. "xscanmap",
  2213. "xscans",
  2214. "xscansmap",
  2215. "xscanu",
  2216. "xtratim",
  2217. "xyscale",
  2218. "zacl",
  2219. "zakinit",
  2220. "zamod",
  2221. "zar",
  2222. "zarg",
  2223. "zaw",
  2224. "zawm",
  2225. "zdf_1pole",
  2226. "zdf_1pole_mode",
  2227. "zdf_2pole",
  2228. "zdf_2pole_mode",
  2229. "zdf_ladder",
  2230. "zfilter2",
  2231. "zir",
  2232. "ziw",
  2233. "ziwm",
  2234. "zkcl",
  2235. "zkmod",
  2236. "zkr",
  2237. "zkw",
  2238. "zkwm"
  2239. ];
  2240. var deprecatedOpcodes = [
  2241. "array",
  2242. "bformdec",
  2243. "bformenc",
  2244. "copy2ftab",
  2245. "copy2ttab",
  2246. "hrtfer",
  2247. "ktableseg",
  2248. "lentab",
  2249. "maxtab",
  2250. "mintab",
  2251. "scalet",
  2252. "sndload",
  2253. "soundout",
  2254. "soundouts",
  2255. "specaddm",
  2256. "specdiff",
  2257. "specdisp",
  2258. "specfilt",
  2259. "spechist",
  2260. "specptrk",
  2261. "specscal",
  2262. "specsum",
  2263. "spectrum",
  2264. "sumtab",
  2265. "tabgen",
  2266. "tabmap",
  2267. "tabmap_i",
  2268. "tabslice",
  2269. "vbap16",
  2270. "vbap4",
  2271. "vbap4move",
  2272. "vbap8",
  2273. "vbap8move",
  2274. "xyin"
  2275. ];
  2276. opcodes = lang.arrayToMap(opcodes);
  2277. deprecatedOpcodes = lang.arrayToMap(deprecatedOpcodes);
  2278. this.lineContinuations = [
  2279. {
  2280. token : "constant.character.escape.line-continuation.csound",
  2281. regex : /\\$/
  2282. }, this.pushRule({
  2283. token : "constant.character.escape.line-continuation.csound",
  2284. regex : /\\/,
  2285. next : "line continuation"
  2286. })
  2287. ];
  2288. this.comments.push(this.lineContinuations);
  2289. this.quotedStringContents.push(
  2290. this.lineContinuations,
  2291. {
  2292. token : "invalid.illegal",
  2293. regex : /[^"\\]*$/
  2294. }
  2295. );
  2296. var start = this.$rules.start;
  2297. start.splice(1, 0, {
  2298. token : ["text.csound", "entity.name.label.csound", "entity.punctuation.label.csound", "text.csound"],
  2299. regex : /^([ \t]*)(\w+)(:)([ \t]+|$)/
  2300. });
  2301. start.push(
  2302. this.pushRule({
  2303. token : "keyword.function.csound",
  2304. regex : /\binstr\b/,
  2305. next : "instrument numbers and identifiers"
  2306. }), this.pushRule({
  2307. token : "keyword.function.csound",
  2308. regex : /\bopcode\b/,
  2309. next : "after opcode keyword"
  2310. }), {
  2311. token : "keyword.other.csound",
  2312. regex : /\bend(?:in|op)\b/
  2313. },
  2314. {
  2315. token : "variable.language.csound",
  2316. regex : /\b(?:0dbfs|A4|k(?:r|smps)|nchnls(?:_i)?|sr)\b/
  2317. },
  2318. this.numbers,
  2319. {
  2320. token : "keyword.operator.csound",
  2321. regex : "\\+=|-=|\\*=|/=|<<|>>|<=|>=|==|!=|&&|\\|\\||[~¬]|[=!+\\-*/^%&|<>#?:]"
  2322. },
  2323. this.pushRule({
  2324. token : "punctuation.definition.string.begin.csound",
  2325. regex : /"/,
  2326. next : "quoted string"
  2327. }), this.pushRule({
  2328. token : "punctuation.definition.string.begin.csound",
  2329. regex : /{{/,
  2330. next : "braced string"
  2331. }),
  2332. {
  2333. token : "keyword.control.csound",
  2334. regex : /\b(?:do|else(?:if)?|end(?:if|until)|fi|i(?:f|then)|kthen|od|r(?:ir)?eturn|then|until|while)\b/
  2335. },
  2336. this.pushRule({
  2337. token : "keyword.control.csound",
  2338. regex : /\b[ik]?goto\b/,
  2339. next : "goto before label"
  2340. }), this.pushRule({
  2341. token : "keyword.control.csound",
  2342. regex : /\b(?:r(?:einit|igoto)|tigoto)\b/,
  2343. next : "goto before label"
  2344. }), this.pushRule({
  2345. token : "keyword.control.csound",
  2346. regex : /\bc(?:g|in?|k|nk?)goto\b/,
  2347. next : ["goto before label", "goto before argument"]
  2348. }), this.pushRule({
  2349. token : "keyword.control.csound",
  2350. regex : /\btimout\b/,
  2351. next : ["goto before label", "goto before argument", "goto before argument"]
  2352. }), this.pushRule({
  2353. token : "keyword.control.csound",
  2354. regex : /\bloop_[gl][et]\b/,
  2355. next : ["goto before label", "goto before argument", "goto before argument", "goto before argument"]
  2356. }),
  2357. this.pushRule({
  2358. token : "support.function.csound",
  2359. regex : /\b(?:readscore|scoreline(?:_i)?)\b/,
  2360. next : "Csound score opcode"
  2361. }), this.pushRule({
  2362. token : "support.function.csound",
  2363. regex : /\bpyl?run[it]?\b(?!$)/,
  2364. next : "Python opcode"
  2365. }), this.pushRule({
  2366. token : "support.function.csound",
  2367. regex : /\blua_(?:exec|opdef)\b(?!$)/,
  2368. next : "Lua opcode"
  2369. }),
  2370. {
  2371. token : "support.variable.csound",
  2372. regex : /\bp\d+\b/
  2373. }, {
  2374. regex : /\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\b/, onMatch: function(value, currentState, stack, line) {
  2375. var tokens = value.split(this.splitRegex);
  2376. var name = tokens[1];
  2377. var type;
  2378. if (opcodes.hasOwnProperty(name))
  2379. type = "support.function.csound";
  2380. else if (deprecatedOpcodes.hasOwnProperty(name))
  2381. type = "invalid.deprecated.csound";
  2382. if (type) {
  2383. if (tokens[2]) {
  2384. return [
  2385. {type: type, value: name},
  2386. {type: "punctuation.type-annotation.csound", value: tokens[2]},
  2387. {type: "type-annotation.storage.type.csound", value: tokens[3]}
  2388. ];
  2389. }
  2390. return type;
  2391. }
  2392. return "text.csound";
  2393. }
  2394. }
  2395. );
  2396. this.$rules["macro parameter value list"].splice(2, 0, {
  2397. token : "punctuation.definition.string.begin.csound",
  2398. regex : /{{/,
  2399. next : "macro parameter value braced string"
  2400. });
  2401. this.addRules({
  2402. "macro parameter value braced string": [
  2403. {
  2404. token : "constant.character.escape.csound",
  2405. regex : /\\[#'()]/
  2406. }, {
  2407. token : "invalid.illegal.csound.csound",
  2408. regex : /[#'()]/
  2409. }, {
  2410. token : "punctuation.definition.string.end.csound",
  2411. regex : /}}/,
  2412. next : "macro parameter value list"
  2413. }, {
  2414. defaultToken: "string.braced.csound"
  2415. }
  2416. ],
  2417. "instrument numbers and identifiers": [
  2418. this.comments,
  2419. {
  2420. token : "entity.name.function.csound",
  2421. regex : /\d+|[A-Z_a-z]\w*/
  2422. }, this.popRule({
  2423. token : "empty",
  2424. regex : /$/
  2425. })
  2426. ],
  2427. "after opcode keyword": [
  2428. this.comments,
  2429. this.popRule({
  2430. token : "empty",
  2431. regex : /$/
  2432. }), this.popRule({
  2433. token : "entity.name.function.opcode.csound",
  2434. regex : /[A-Z_a-z]\w*/,
  2435. next : "opcode type signatures"
  2436. })
  2437. ],
  2438. "opcode type signatures": [
  2439. this.comments,
  2440. this.popRule({
  2441. token : "empty",
  2442. regex : /$/
  2443. }), {
  2444. token : "storage.type.csound",
  2445. regex : /\b(?:0|[afijkKoOpPStV\[\]]+)/
  2446. }
  2447. ],
  2448. "quoted string": [
  2449. this.popRule({
  2450. token : "punctuation.definition.string.end.csound",
  2451. regex : /"/
  2452. }),
  2453. this.quotedStringContents,
  2454. {
  2455. defaultToken: "string.quoted.csound"
  2456. }
  2457. ],
  2458. "braced string": [
  2459. this.popRule({
  2460. token : "punctuation.definition.string.end.csound",
  2461. regex : /}}/
  2462. }),
  2463. this.bracedStringContents,
  2464. {
  2465. defaultToken: "string.braced.csound"
  2466. }
  2467. ],
  2468. "goto before argument": [
  2469. this.popRule({
  2470. token : "text.csound",
  2471. regex : /,/
  2472. }),
  2473. start
  2474. ],
  2475. "goto before label": [
  2476. {
  2477. token : "text.csound",
  2478. regex : /\s+/
  2479. },
  2480. this.comments,
  2481. this.popRule({
  2482. token : "entity.name.label.csound",
  2483. regex : /\w+/
  2484. }), this.popRule({
  2485. token : "empty",
  2486. regex : /(?!\w)/
  2487. })
  2488. ],
  2489. "Csound score opcode": [
  2490. this.comments,
  2491. {
  2492. token : "punctuation.definition.string.begin.csound",
  2493. regex : /{{/,
  2494. next : "csound-score-start"
  2495. }, this.popRule({
  2496. token : "empty",
  2497. regex : /$/
  2498. })
  2499. ],
  2500. "Python opcode": [
  2501. this.comments,
  2502. {
  2503. token : "punctuation.definition.string.begin.csound",
  2504. regex : /{{/,
  2505. next : "python-start"
  2506. }, this.popRule({
  2507. token : "empty",
  2508. regex : /$/
  2509. })
  2510. ],
  2511. "Lua opcode": [
  2512. this.comments,
  2513. {
  2514. token : "punctuation.definition.string.begin.csound",
  2515. regex : /{{/,
  2516. next : "lua-start"
  2517. }, this.popRule({
  2518. token : "empty",
  2519. regex : /$/
  2520. })
  2521. ],
  2522. "line continuation": [
  2523. this.popRule({
  2524. token : "empty",
  2525. regex : /$/
  2526. }),
  2527. this.semicolonComments,
  2528. {
  2529. token : "invalid.illegal.csound",
  2530. regex : /\S.*/
  2531. }
  2532. ]
  2533. });
  2534. var rules = [
  2535. this.popRule({
  2536. token : "punctuation.definition.string.end.csound",
  2537. regex : /}}/
  2538. })
  2539. ];
  2540. this.embedRules(CsoundScoreHighlightRules, "csound-score-", rules);
  2541. this.embedRules(PythonHighlightRules, "python-", rules);
  2542. this.embedRules(LuaHighlightRules, "lua-", rules);
  2543. this.normalizeRules();
  2544. };
  2545. oop.inherits(CsoundOrchestraHighlightRules, CsoundPreprocessorHighlightRules);
  2546. exports.CsoundOrchestraHighlightRules = CsoundOrchestraHighlightRules;
  2547. });
  2548. ace.define("ace/mode/csound_orchestra",[], function(require, exports, module) {
  2549. "use strict";
  2550. var oop = require("../lib/oop");
  2551. var TextMode = require("./text").Mode;
  2552. var CsoundOrchestraHighlightRules = require("./csound_orchestra_highlight_rules").CsoundOrchestraHighlightRules;
  2553. var Mode = function() {
  2554. this.HighlightRules = CsoundOrchestraHighlightRules;
  2555. };
  2556. oop.inherits(Mode, TextMode);
  2557. (function() {
  2558. this.lineCommentStart = ";";
  2559. this.blockComment = {start: "/*", end: "*/"};
  2560. }).call(Mode.prototype);
  2561. exports.Mode = Mode;
  2562. });
  2563. (function() {
  2564. ace.require(["ace/mode/csound_orchestra"], function(m) {
  2565. if (typeof module == "object" && typeof exports == "object" && module) {
  2566. module.exports = m;
  2567. }
  2568. });
  2569. })();