mode-csound_document.js 112 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740
  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/css_highlight_rules",[], function(require, exports, module) {
  2549. "use strict";
  2550. var oop = require("../lib/oop");
  2551. var lang = require("../lib/lang");
  2552. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  2553. var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
  2554. var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
  2555. var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
  2556. var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
  2557. var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
  2558. var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
  2559. var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
  2560. var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
  2561. var CssHighlightRules = function() {
  2562. var keywordMapper = this.createKeywordMapper({
  2563. "support.function": supportFunction,
  2564. "support.constant": supportConstant,
  2565. "support.type": supportType,
  2566. "support.constant.color": supportConstantColor,
  2567. "support.constant.fonts": supportConstantFonts
  2568. }, "text", true);
  2569. this.$rules = {
  2570. "start" : [{
  2571. include : ["strings", "url", "comments"]
  2572. }, {
  2573. token: "paren.lparen",
  2574. regex: "\\{",
  2575. next: "ruleset"
  2576. }, {
  2577. token: "paren.rparen",
  2578. regex: "\\}"
  2579. }, {
  2580. token: "string",
  2581. regex: "@(?!viewport)",
  2582. next: "media"
  2583. }, {
  2584. token: "keyword",
  2585. regex: "#[a-z0-9-_]+"
  2586. }, {
  2587. token: "keyword",
  2588. regex: "%"
  2589. }, {
  2590. token: "variable",
  2591. regex: "\\.[a-z0-9-_]+"
  2592. }, {
  2593. token: "string",
  2594. regex: ":[a-z0-9-_]+"
  2595. }, {
  2596. token : "constant.numeric",
  2597. regex : numRe
  2598. }, {
  2599. token: "constant",
  2600. regex: "[a-z0-9-_]+"
  2601. }, {
  2602. caseInsensitive: true
  2603. }],
  2604. "media": [{
  2605. include : ["strings", "url", "comments"]
  2606. }, {
  2607. token: "paren.lparen",
  2608. regex: "\\{",
  2609. next: "start"
  2610. }, {
  2611. token: "paren.rparen",
  2612. regex: "\\}",
  2613. next: "start"
  2614. }, {
  2615. token: "string",
  2616. regex: ";",
  2617. next: "start"
  2618. }, {
  2619. token: "keyword",
  2620. regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
  2621. + "|page|font|keyframes|viewport|counter-style|font-feature-values"
  2622. + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
  2623. }],
  2624. "comments" : [{
  2625. token: "comment", // multi line comment
  2626. regex: "\\/\\*",
  2627. push: [{
  2628. token : "comment",
  2629. regex : "\\*\\/",
  2630. next : "pop"
  2631. }, {
  2632. defaultToken : "comment"
  2633. }]
  2634. }],
  2635. "ruleset" : [{
  2636. regex : "-(webkit|ms|moz|o)-",
  2637. token : "text"
  2638. }, {
  2639. token : "punctuation.operator",
  2640. regex : "[:;]"
  2641. }, {
  2642. token : "paren.rparen",
  2643. regex : "\\}",
  2644. next : "start"
  2645. }, {
  2646. include : ["strings", "url", "comments"]
  2647. }, {
  2648. token : ["constant.numeric", "keyword"],
  2649. regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
  2650. }, {
  2651. token : "constant.numeric",
  2652. regex : numRe
  2653. }, {
  2654. token : "constant.numeric", // hex6 color
  2655. regex : "#[a-f0-9]{6}"
  2656. }, {
  2657. token : "constant.numeric", // hex3 color
  2658. regex : "#[a-f0-9]{3}"
  2659. }, {
  2660. token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
  2661. regex : pseudoElements
  2662. }, {
  2663. token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
  2664. regex : pseudoClasses
  2665. }, {
  2666. include: "url"
  2667. }, {
  2668. token : keywordMapper,
  2669. regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
  2670. }, {
  2671. caseInsensitive: true
  2672. }],
  2673. url: [{
  2674. token : "support.function",
  2675. regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
  2676. push: [{
  2677. token : "support.function",
  2678. regex : "\\)",
  2679. next : "pop"
  2680. }, {
  2681. defaultToken: "string"
  2682. }]
  2683. }],
  2684. strings: [{
  2685. token : "string.start",
  2686. regex : "'",
  2687. push : [{
  2688. token : "string.end",
  2689. regex : "'|$",
  2690. next: "pop"
  2691. }, {
  2692. include : "escapes"
  2693. }, {
  2694. token : "constant.language.escape",
  2695. regex : /\\$/,
  2696. consumeLineEnd: true
  2697. }, {
  2698. defaultToken: "string"
  2699. }]
  2700. }, {
  2701. token : "string.start",
  2702. regex : '"',
  2703. push : [{
  2704. token : "string.end",
  2705. regex : '"|$',
  2706. next: "pop"
  2707. }, {
  2708. include : "escapes"
  2709. }, {
  2710. token : "constant.language.escape",
  2711. regex : /\\$/,
  2712. consumeLineEnd: true
  2713. }, {
  2714. defaultToken: "string"
  2715. }]
  2716. }],
  2717. escapes: [{
  2718. token : "constant.language.escape",
  2719. regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
  2720. }]
  2721. };
  2722. this.normalizeRules();
  2723. };
  2724. oop.inherits(CssHighlightRules, TextHighlightRules);
  2725. exports.CssHighlightRules = CssHighlightRules;
  2726. });
  2727. ace.define("ace/mode/doc_comment_highlight_rules",[], function(require, exports, module) {
  2728. "use strict";
  2729. var oop = require("../lib/oop");
  2730. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  2731. var DocCommentHighlightRules = function() {
  2732. this.$rules = {
  2733. "start" : [ {
  2734. token : "comment.doc.tag",
  2735. regex : "@[\\w\\d_]+" // TODO: fix email addresses
  2736. },
  2737. DocCommentHighlightRules.getTagRule(),
  2738. {
  2739. defaultToken : "comment.doc",
  2740. caseInsensitive: true
  2741. }]
  2742. };
  2743. };
  2744. oop.inherits(DocCommentHighlightRules, TextHighlightRules);
  2745. DocCommentHighlightRules.getTagRule = function(start) {
  2746. return {
  2747. token : "comment.doc.tag.storage.type",
  2748. regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
  2749. };
  2750. };
  2751. DocCommentHighlightRules.getStartRule = function(start) {
  2752. return {
  2753. token : "comment.doc", // doc comment
  2754. regex : "\\/\\*(?=\\*)",
  2755. next : start
  2756. };
  2757. };
  2758. DocCommentHighlightRules.getEndRule = function (start) {
  2759. return {
  2760. token : "comment.doc", // closing comment
  2761. regex : "\\*\\/",
  2762. next : start
  2763. };
  2764. };
  2765. exports.DocCommentHighlightRules = DocCommentHighlightRules;
  2766. });
  2767. ace.define("ace/mode/javascript_highlight_rules",[], function(require, exports, module) {
  2768. "use strict";
  2769. var oop = require("../lib/oop");
  2770. var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
  2771. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  2772. var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
  2773. var JavaScriptHighlightRules = function(options) {
  2774. var keywordMapper = this.createKeywordMapper({
  2775. "variable.language":
  2776. "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
  2777. "Namespace|QName|XML|XMLList|" + // E4X
  2778. "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
  2779. "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
  2780. "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
  2781. "SyntaxError|TypeError|URIError|" +
  2782. "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
  2783. "isNaN|parseFloat|parseInt|" +
  2784. "JSON|Math|" + // Other
  2785. "this|arguments|prototype|window|document" , // Pseudo
  2786. "keyword":
  2787. "const|yield|import|get|set|async|await|" +
  2788. "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
  2789. "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
  2790. "__parent__|__count__|escape|unescape|with|__proto__|" +
  2791. "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
  2792. "storage.type":
  2793. "const|let|var|function",
  2794. "constant.language":
  2795. "null|Infinity|NaN|undefined",
  2796. "support.function":
  2797. "alert",
  2798. "constant.language.boolean": "true|false"
  2799. }, "identifier");
  2800. var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
  2801. var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
  2802. "u[0-9a-fA-F]{4}|" + // unicode
  2803. "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
  2804. "[0-2][0-7]{0,2}|" + // oct
  2805. "3[0-7][0-7]?|" + // oct
  2806. "[4-7][0-7]?|" + //oct
  2807. ".)";
  2808. this.$rules = {
  2809. "no_regex" : [
  2810. DocCommentHighlightRules.getStartRule("doc-start"),
  2811. comments("no_regex"),
  2812. {
  2813. token : "string",
  2814. regex : "'(?=.)",
  2815. next : "qstring"
  2816. }, {
  2817. token : "string",
  2818. regex : '"(?=.)',
  2819. next : "qqstring"
  2820. }, {
  2821. token : "constant.numeric", // hexadecimal, octal and binary
  2822. regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
  2823. }, {
  2824. token : "constant.numeric", // decimal integers and floats
  2825. regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
  2826. }, {
  2827. token : [
  2828. "storage.type", "punctuation.operator", "support.function",
  2829. "punctuation.operator", "entity.name.function", "text","keyword.operator"
  2830. ],
  2831. regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
  2832. next: "function_arguments"
  2833. }, {
  2834. token : [
  2835. "storage.type", "punctuation.operator", "entity.name.function", "text",
  2836. "keyword.operator", "text", "storage.type", "text", "paren.lparen"
  2837. ],
  2838. regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
  2839. next: "function_arguments"
  2840. }, {
  2841. token : [
  2842. "entity.name.function", "text", "keyword.operator", "text", "storage.type",
  2843. "text", "paren.lparen"
  2844. ],
  2845. regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
  2846. next: "function_arguments"
  2847. }, {
  2848. token : [
  2849. "storage.type", "punctuation.operator", "entity.name.function", "text",
  2850. "keyword.operator", "text",
  2851. "storage.type", "text", "entity.name.function", "text", "paren.lparen"
  2852. ],
  2853. regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
  2854. next: "function_arguments"
  2855. }, {
  2856. token : [
  2857. "storage.type", "text", "entity.name.function", "text", "paren.lparen"
  2858. ],
  2859. regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
  2860. next: "function_arguments"
  2861. }, {
  2862. token : [
  2863. "entity.name.function", "text", "punctuation.operator",
  2864. "text", "storage.type", "text", "paren.lparen"
  2865. ],
  2866. regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
  2867. next: "function_arguments"
  2868. }, {
  2869. token : [
  2870. "text", "text", "storage.type", "text", "paren.lparen"
  2871. ],
  2872. regex : "(:)(\\s*)(function)(\\s*)(\\()",
  2873. next: "function_arguments"
  2874. }, {
  2875. token : "keyword",
  2876. regex : "from(?=\\s*('|\"))"
  2877. }, {
  2878. token : "keyword",
  2879. regex : "(?:" + kwBeforeRe + ")\\b",
  2880. next : "start"
  2881. }, {
  2882. token : ["support.constant"],
  2883. regex : /that\b/
  2884. }, {
  2885. token : ["storage.type", "punctuation.operator", "support.function.firebug"],
  2886. regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
  2887. }, {
  2888. token : keywordMapper,
  2889. regex : identifierRe
  2890. }, {
  2891. token : "punctuation.operator",
  2892. regex : /[.](?![.])/,
  2893. next : "property"
  2894. }, {
  2895. token : "storage.type",
  2896. regex : /=>/
  2897. }, {
  2898. token : "keyword.operator",
  2899. regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
  2900. next : "start"
  2901. }, {
  2902. token : "punctuation.operator",
  2903. regex : /[?:,;.]/,
  2904. next : "start"
  2905. }, {
  2906. token : "paren.lparen",
  2907. regex : /[\[({]/,
  2908. next : "start"
  2909. }, {
  2910. token : "paren.rparen",
  2911. regex : /[\])}]/
  2912. }, {
  2913. token: "comment",
  2914. regex: /^#!.*$/
  2915. }
  2916. ],
  2917. property: [{
  2918. token : "text",
  2919. regex : "\\s+"
  2920. }, {
  2921. token : [
  2922. "storage.type", "punctuation.operator", "entity.name.function", "text",
  2923. "keyword.operator", "text",
  2924. "storage.type", "text", "entity.name.function", "text", "paren.lparen"
  2925. ],
  2926. regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
  2927. next: "function_arguments"
  2928. }, {
  2929. token : "punctuation.operator",
  2930. regex : /[.](?![.])/
  2931. }, {
  2932. token : "support.function",
  2933. regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
  2934. }, {
  2935. token : "support.function.dom",
  2936. regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
  2937. }, {
  2938. token : "support.constant",
  2939. regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
  2940. }, {
  2941. token : "identifier",
  2942. regex : identifierRe
  2943. }, {
  2944. regex: "",
  2945. token: "empty",
  2946. next: "no_regex"
  2947. }
  2948. ],
  2949. "start": [
  2950. DocCommentHighlightRules.getStartRule("doc-start"),
  2951. comments("start"),
  2952. {
  2953. token: "string.regexp",
  2954. regex: "\\/",
  2955. next: "regex"
  2956. }, {
  2957. token : "text",
  2958. regex : "\\s+|^$",
  2959. next : "start"
  2960. }, {
  2961. token: "empty",
  2962. regex: "",
  2963. next: "no_regex"
  2964. }
  2965. ],
  2966. "regex": [
  2967. {
  2968. token: "regexp.keyword.operator",
  2969. regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
  2970. }, {
  2971. token: "string.regexp",
  2972. regex: "/[sxngimy]*",
  2973. next: "no_regex"
  2974. }, {
  2975. token : "invalid",
  2976. regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
  2977. }, {
  2978. token : "constant.language.escape",
  2979. regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
  2980. }, {
  2981. token : "constant.language.delimiter",
  2982. regex: /\|/
  2983. }, {
  2984. token: "constant.language.escape",
  2985. regex: /\[\^?/,
  2986. next: "regex_character_class"
  2987. }, {
  2988. token: "empty",
  2989. regex: "$",
  2990. next: "no_regex"
  2991. }, {
  2992. defaultToken: "string.regexp"
  2993. }
  2994. ],
  2995. "regex_character_class": [
  2996. {
  2997. token: "regexp.charclass.keyword.operator",
  2998. regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
  2999. }, {
  3000. token: "constant.language.escape",
  3001. regex: "]",
  3002. next: "regex"
  3003. }, {
  3004. token: "constant.language.escape",
  3005. regex: "-"
  3006. }, {
  3007. token: "empty",
  3008. regex: "$",
  3009. next: "no_regex"
  3010. }, {
  3011. defaultToken: "string.regexp.charachterclass"
  3012. }
  3013. ],
  3014. "function_arguments": [
  3015. {
  3016. token: "variable.parameter",
  3017. regex: identifierRe
  3018. }, {
  3019. token: "punctuation.operator",
  3020. regex: "[, ]+"
  3021. }, {
  3022. token: "punctuation.operator",
  3023. regex: "$"
  3024. }, {
  3025. token: "empty",
  3026. regex: "",
  3027. next: "no_regex"
  3028. }
  3029. ],
  3030. "qqstring" : [
  3031. {
  3032. token : "constant.language.escape",
  3033. regex : escapedRe
  3034. }, {
  3035. token : "string",
  3036. regex : "\\\\$",
  3037. consumeLineEnd : true
  3038. }, {
  3039. token : "string",
  3040. regex : '"|$',
  3041. next : "no_regex"
  3042. }, {
  3043. defaultToken: "string"
  3044. }
  3045. ],
  3046. "qstring" : [
  3047. {
  3048. token : "constant.language.escape",
  3049. regex : escapedRe
  3050. }, {
  3051. token : "string",
  3052. regex : "\\\\$",
  3053. consumeLineEnd : true
  3054. }, {
  3055. token : "string",
  3056. regex : "'|$",
  3057. next : "no_regex"
  3058. }, {
  3059. defaultToken: "string"
  3060. }
  3061. ]
  3062. };
  3063. if (!options || !options.noES6) {
  3064. this.$rules.no_regex.unshift({
  3065. regex: "[{}]", onMatch: function(val, state, stack) {
  3066. this.next = val == "{" ? this.nextState : "";
  3067. if (val == "{" && stack.length) {
  3068. stack.unshift("start", state);
  3069. }
  3070. else if (val == "}" && stack.length) {
  3071. stack.shift();
  3072. this.next = stack.shift();
  3073. if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
  3074. return "paren.quasi.end";
  3075. }
  3076. return val == "{" ? "paren.lparen" : "paren.rparen";
  3077. },
  3078. nextState: "start"
  3079. }, {
  3080. token : "string.quasi.start",
  3081. regex : /`/,
  3082. push : [{
  3083. token : "constant.language.escape",
  3084. regex : escapedRe
  3085. }, {
  3086. token : "paren.quasi.start",
  3087. regex : /\${/,
  3088. push : "start"
  3089. }, {
  3090. token : "string.quasi.end",
  3091. regex : /`/,
  3092. next : "pop"
  3093. }, {
  3094. defaultToken: "string.quasi"
  3095. }]
  3096. });
  3097. if (!options || options.jsx != false)
  3098. JSX.call(this);
  3099. }
  3100. this.embedRules(DocCommentHighlightRules, "doc-",
  3101. [ DocCommentHighlightRules.getEndRule("no_regex") ]);
  3102. this.normalizeRules();
  3103. };
  3104. oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
  3105. function JSX() {
  3106. var tagRegex = identifierRe.replace("\\d", "\\d\\-");
  3107. var jsxTag = {
  3108. onMatch : function(val, state, stack) {
  3109. var offset = val.charAt(1) == "/" ? 2 : 1;
  3110. if (offset == 1) {
  3111. if (state != this.nextState)
  3112. stack.unshift(this.next, this.nextState, 0);
  3113. else
  3114. stack.unshift(this.next);
  3115. stack[2]++;
  3116. } else if (offset == 2) {
  3117. if (state == this.nextState) {
  3118. stack[1]--;
  3119. if (!stack[1] || stack[1] < 0) {
  3120. stack.shift();
  3121. stack.shift();
  3122. }
  3123. }
  3124. }
  3125. return [{
  3126. type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
  3127. value: val.slice(0, offset)
  3128. }, {
  3129. type: "meta.tag.tag-name.xml",
  3130. value: val.substr(offset)
  3131. }];
  3132. },
  3133. regex : "</?" + tagRegex + "",
  3134. next: "jsxAttributes",
  3135. nextState: "jsx"
  3136. };
  3137. this.$rules.start.unshift(jsxTag);
  3138. var jsxJsRule = {
  3139. regex: "{",
  3140. token: "paren.quasi.start",
  3141. push: "start"
  3142. };
  3143. this.$rules.jsx = [
  3144. jsxJsRule,
  3145. jsxTag,
  3146. {include : "reference"},
  3147. {defaultToken: "string"}
  3148. ];
  3149. this.$rules.jsxAttributes = [{
  3150. token : "meta.tag.punctuation.tag-close.xml",
  3151. regex : "/?>",
  3152. onMatch : function(value, currentState, stack) {
  3153. if (currentState == stack[0])
  3154. stack.shift();
  3155. if (value.length == 2) {
  3156. if (stack[0] == this.nextState)
  3157. stack[1]--;
  3158. if (!stack[1] || stack[1] < 0) {
  3159. stack.splice(0, 2);
  3160. }
  3161. }
  3162. this.next = stack[0] || "start";
  3163. return [{type: this.token, value: value}];
  3164. },
  3165. nextState: "jsx"
  3166. },
  3167. jsxJsRule,
  3168. comments("jsxAttributes"),
  3169. {
  3170. token : "entity.other.attribute-name.xml",
  3171. regex : tagRegex
  3172. }, {
  3173. token : "keyword.operator.attribute-equals.xml",
  3174. regex : "="
  3175. }, {
  3176. token : "text.tag-whitespace.xml",
  3177. regex : "\\s+"
  3178. }, {
  3179. token : "string.attribute-value.xml",
  3180. regex : "'",
  3181. stateName : "jsx_attr_q",
  3182. push : [
  3183. {token : "string.attribute-value.xml", regex: "'", next: "pop"},
  3184. {include : "reference"},
  3185. {defaultToken : "string.attribute-value.xml"}
  3186. ]
  3187. }, {
  3188. token : "string.attribute-value.xml",
  3189. regex : '"',
  3190. stateName : "jsx_attr_qq",
  3191. push : [
  3192. {token : "string.attribute-value.xml", regex: '"', next: "pop"},
  3193. {include : "reference"},
  3194. {defaultToken : "string.attribute-value.xml"}
  3195. ]
  3196. },
  3197. jsxTag
  3198. ];
  3199. this.$rules.reference = [{
  3200. token : "constant.language.escape.reference.xml",
  3201. regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
  3202. }];
  3203. }
  3204. function comments(next) {
  3205. return [
  3206. {
  3207. token : "comment", // multi line comment
  3208. regex : /\/\*/,
  3209. next: [
  3210. DocCommentHighlightRules.getTagRule(),
  3211. {token : "comment", regex : "\\*\\/", next : next || "pop"},
  3212. {defaultToken : "comment", caseInsensitive: true}
  3213. ]
  3214. }, {
  3215. token : "comment",
  3216. regex : "\\/\\/",
  3217. next: [
  3218. DocCommentHighlightRules.getTagRule(),
  3219. {token : "comment", regex : "$|^", next : next || "pop"},
  3220. {defaultToken : "comment", caseInsensitive: true}
  3221. ]
  3222. }
  3223. ];
  3224. }
  3225. exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
  3226. });
  3227. ace.define("ace/mode/xml_highlight_rules",[], function(require, exports, module) {
  3228. "use strict";
  3229. var oop = require("../lib/oop");
  3230. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  3231. var XmlHighlightRules = function(normalize) {
  3232. var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
  3233. this.$rules = {
  3234. start : [
  3235. {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
  3236. {
  3237. token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
  3238. regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
  3239. },
  3240. {token : "comment.start.xml", regex : "<\\!--", next : "comment"},
  3241. {
  3242. token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
  3243. regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
  3244. },
  3245. {include : "tag"},
  3246. {token : "text.end-tag-open.xml", regex: "</"},
  3247. {token : "text.tag-open.xml", regex: "<"},
  3248. {include : "reference"},
  3249. {defaultToken : "text.xml"}
  3250. ],
  3251. processing_instruction : [{
  3252. token : "entity.other.attribute-name.decl-attribute-name.xml",
  3253. regex : tagRegex
  3254. }, {
  3255. token : "keyword.operator.decl-attribute-equals.xml",
  3256. regex : "="
  3257. }, {
  3258. include: "whitespace"
  3259. }, {
  3260. include: "string"
  3261. }, {
  3262. token : "punctuation.xml-decl.xml",
  3263. regex : "\\?>",
  3264. next : "start"
  3265. }],
  3266. doctype : [
  3267. {include : "whitespace"},
  3268. {include : "string"},
  3269. {token : "xml-pe.doctype.xml", regex : ">", next : "start"},
  3270. {token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
  3271. {token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
  3272. ],
  3273. int_subset : [{
  3274. token : "text.xml",
  3275. regex : "\\s+"
  3276. }, {
  3277. token: "punctuation.int-subset.xml",
  3278. regex: "]",
  3279. next: "pop"
  3280. }, {
  3281. token : ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
  3282. regex : "(<\\!)(" + tagRegex + ")",
  3283. push : [{
  3284. token : "text",
  3285. regex : "\\s+"
  3286. },
  3287. {
  3288. token : "punctuation.markup-decl.xml",
  3289. regex : ">",
  3290. next : "pop"
  3291. },
  3292. {include : "string"}]
  3293. }],
  3294. cdata : [
  3295. {token : "string.cdata.xml", regex : "\\]\\]>", next : "start"},
  3296. {token : "text.xml", regex : "\\s+"},
  3297. {token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
  3298. ],
  3299. comment : [
  3300. {token : "comment.end.xml", regex : "-->", next : "start"},
  3301. {defaultToken : "comment.xml"}
  3302. ],
  3303. reference : [{
  3304. token : "constant.language.escape.reference.xml",
  3305. regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
  3306. }],
  3307. attr_reference : [{
  3308. token : "constant.language.escape.reference.attribute-value.xml",
  3309. regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
  3310. }],
  3311. tag : [{
  3312. token : ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
  3313. regex : "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
  3314. next: [
  3315. {include : "attributes"},
  3316. {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
  3317. ]
  3318. }],
  3319. tag_whitespace : [
  3320. {token : "text.tag-whitespace.xml", regex : "\\s+"}
  3321. ],
  3322. whitespace : [
  3323. {token : "text.whitespace.xml", regex : "\\s+"}
  3324. ],
  3325. string: [{
  3326. token : "string.xml",
  3327. regex : "'",
  3328. push : [
  3329. {token : "string.xml", regex: "'", next: "pop"},
  3330. {defaultToken : "string.xml"}
  3331. ]
  3332. }, {
  3333. token : "string.xml",
  3334. regex : '"',
  3335. push : [
  3336. {token : "string.xml", regex: '"', next: "pop"},
  3337. {defaultToken : "string.xml"}
  3338. ]
  3339. }],
  3340. attributes: [{
  3341. token : "entity.other.attribute-name.xml",
  3342. regex : tagRegex
  3343. }, {
  3344. token : "keyword.operator.attribute-equals.xml",
  3345. regex : "="
  3346. }, {
  3347. include: "tag_whitespace"
  3348. }, {
  3349. include: "attribute_value"
  3350. }],
  3351. attribute_value: [{
  3352. token : "string.attribute-value.xml",
  3353. regex : "'",
  3354. push : [
  3355. {token : "string.attribute-value.xml", regex: "'", next: "pop"},
  3356. {include : "attr_reference"},
  3357. {defaultToken : "string.attribute-value.xml"}
  3358. ]
  3359. }, {
  3360. token : "string.attribute-value.xml",
  3361. regex : '"',
  3362. push : [
  3363. {token : "string.attribute-value.xml", regex: '"', next: "pop"},
  3364. {include : "attr_reference"},
  3365. {defaultToken : "string.attribute-value.xml"}
  3366. ]
  3367. }]
  3368. };
  3369. if (this.constructor === XmlHighlightRules)
  3370. this.normalizeRules();
  3371. };
  3372. (function() {
  3373. this.embedTagRules = function(HighlightRules, prefix, tag){
  3374. this.$rules.tag.unshift({
  3375. token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
  3376. regex : "(<)(" + tag + "(?=\\s|>|$))",
  3377. next: [
  3378. {include : "attributes"},
  3379. {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
  3380. ]
  3381. });
  3382. this.$rules[tag + "-end"] = [
  3383. {include : "attributes"},
  3384. {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next: "start",
  3385. onMatch : function(value, currentState, stack) {
  3386. stack.splice(0);
  3387. return this.token;
  3388. }}
  3389. ];
  3390. this.embedRules(HighlightRules, prefix, [{
  3391. token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
  3392. regex : "(</)(" + tag + "(?=\\s|>|$))",
  3393. next: tag + "-end"
  3394. }, {
  3395. token: "string.cdata.xml",
  3396. regex : "<\\!\\[CDATA\\["
  3397. }, {
  3398. token: "string.cdata.xml",
  3399. regex : "\\]\\]>"
  3400. }]);
  3401. };
  3402. }).call(TextHighlightRules.prototype);
  3403. oop.inherits(XmlHighlightRules, TextHighlightRules);
  3404. exports.XmlHighlightRules = XmlHighlightRules;
  3405. });
  3406. ace.define("ace/mode/html_highlight_rules",[], function(require, exports, module) {
  3407. "use strict";
  3408. var oop = require("../lib/oop");
  3409. var lang = require("../lib/lang");
  3410. var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
  3411. var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
  3412. var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
  3413. var tagMap = lang.createMap({
  3414. a : 'anchor',
  3415. button : 'form',
  3416. form : 'form',
  3417. img : 'image',
  3418. input : 'form',
  3419. label : 'form',
  3420. option : 'form',
  3421. script : 'script',
  3422. select : 'form',
  3423. textarea : 'form',
  3424. style : 'style',
  3425. table : 'table',
  3426. tbody : 'table',
  3427. td : 'table',
  3428. tfoot : 'table',
  3429. th : 'table',
  3430. tr : 'table'
  3431. });
  3432. var HtmlHighlightRules = function() {
  3433. XmlHighlightRules.call(this);
  3434. this.addRules({
  3435. attributes: [{
  3436. include : "tag_whitespace"
  3437. }, {
  3438. token : "entity.other.attribute-name.xml",
  3439. regex : "[-_a-zA-Z0-9:.]+"
  3440. }, {
  3441. token : "keyword.operator.attribute-equals.xml",
  3442. regex : "=",
  3443. push : [{
  3444. include: "tag_whitespace"
  3445. }, {
  3446. token : "string.unquoted.attribute-value.html",
  3447. regex : "[^<>='\"`\\s]+",
  3448. next : "pop"
  3449. }, {
  3450. token : "empty",
  3451. regex : "",
  3452. next : "pop"
  3453. }]
  3454. }, {
  3455. include : "attribute_value"
  3456. }],
  3457. tag: [{
  3458. token : function(start, tag) {
  3459. var group = tagMap[tag];
  3460. return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
  3461. "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
  3462. },
  3463. regex : "(</?)([-_a-zA-Z0-9:.]+)",
  3464. next: "tag_stuff"
  3465. }],
  3466. tag_stuff: [
  3467. {include : "attributes"},
  3468. {token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : "start"}
  3469. ]
  3470. });
  3471. this.embedTagRules(CssHighlightRules, "css-", "style");
  3472. this.embedTagRules(new JavaScriptHighlightRules({jsx: false}).getRules(), "js-", "script");
  3473. if (this.constructor === HtmlHighlightRules)
  3474. this.normalizeRules();
  3475. };
  3476. oop.inherits(HtmlHighlightRules, XmlHighlightRules);
  3477. exports.HtmlHighlightRules = HtmlHighlightRules;
  3478. });
  3479. ace.define("ace/mode/csound_document_highlight_rules",[], function(require, exports, module) {
  3480. "use strict";
  3481. var oop = require("../lib/oop");
  3482. var CsoundOrchestraHighlightRules = require("./csound_orchestra_highlight_rules").CsoundOrchestraHighlightRules;
  3483. var CsoundScoreHighlightRules = require("./csound_score_highlight_rules").CsoundScoreHighlightRules;
  3484. var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
  3485. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  3486. var CsoundDocumentHighlightRules = function() {
  3487. this.$rules = {
  3488. "start": [
  3489. {
  3490. token : ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3491. regex : /(<)(CsoundSynthesi[sz]er)(>)/,
  3492. next : "synthesizer"
  3493. },
  3494. {defaultToken : "text.csound-document"}
  3495. ],
  3496. "synthesizer": [
  3497. {
  3498. token : ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3499. regex : "(</)(CsoundSynthesi[sz]er)(>)",
  3500. next : "start"
  3501. }, {
  3502. token : ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3503. regex : "(<)(CsInstruments)(>)",
  3504. next : "csound-start"
  3505. }, {
  3506. token : ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3507. regex : "(<)(CsScore)(>)",
  3508. next : "csound-score-start"
  3509. }, {
  3510. token : ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3511. regex : "(<)([Hh][Tt][Mm][Ll])(>)",
  3512. next : "html-start"
  3513. }
  3514. ]
  3515. };
  3516. this.embedRules(CsoundOrchestraHighlightRules, "csound-", [{
  3517. token : ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3518. regex : "(</)(CsInstruments)(>)",
  3519. next : "synthesizer"
  3520. }]);
  3521. this.embedRules(CsoundScoreHighlightRules, "csound-score-", [{
  3522. token : ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3523. regex : "(</)(CsScore)(>)",
  3524. next : "synthesizer"
  3525. }]);
  3526. this.embedRules(HtmlHighlightRules, "html-", [{
  3527. token : ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
  3528. regex : "(</)([Hh][Tt][Mm][Ll])(>)",
  3529. next : "synthesizer"
  3530. }]);
  3531. this.normalizeRules();
  3532. };
  3533. oop.inherits(CsoundDocumentHighlightRules, TextHighlightRules);
  3534. exports.CsoundDocumentHighlightRules = CsoundDocumentHighlightRules;
  3535. });
  3536. ace.define("ace/mode/csound_document",[], function(require, exports, module) {
  3537. "use strict";
  3538. var oop = require("../lib/oop");
  3539. var TextMode = require("./text").Mode;
  3540. var CsoundDocumentHighlightRules = require("./csound_document_highlight_rules").CsoundDocumentHighlightRules;
  3541. var Mode = function() {
  3542. this.HighlightRules = CsoundDocumentHighlightRules;
  3543. };
  3544. oop.inherits(Mode, TextMode);
  3545. exports.Mode = Mode;
  3546. });
  3547. (function() {
  3548. ace.require(["ace/mode/csound_document"], function(m) {
  3549. if (typeof module == "object" && typeof exports == "object" && module) {
  3550. module.exports = m;
  3551. }
  3552. });
  3553. })();