選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

highlight.pack.js 133KB

7ヶ月前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319
  1. var hljs = new function () {
  2. function m(p) {
  3. return p.replace(/&/gm, "&amp;").replace(/</gm, "&lt;")
  4. }
  5. function c(r) {
  6. for (var p = 0; p < r.childNodes.length; p++) {
  7. var q = r.childNodes[p];
  8. if (q.nodeName == "CODE") {
  9. return q
  10. }
  11. if (!(q.nodeType == 3 && q.nodeValue.match(/\s+/))) {
  12. break
  13. }
  14. }
  15. }
  16. var b = (typeof navigator !== "undefined" && /MSIE [678]/.test(navigator.userAgent));
  17. function i(t, s) {
  18. var p = "";
  19. for (var r = 0; r < t.childNodes.length; r++) {
  20. if (t.childNodes[r].nodeType == 3) {
  21. var q = t.childNodes[r].nodeValue;
  22. if (s) {
  23. q = q.replace(/\n/g, "")
  24. }
  25. p += q
  26. } else {
  27. if (t.childNodes[r].nodeName == "BR") {
  28. p += "\n"
  29. } else {
  30. p += i(t.childNodes[r])
  31. }
  32. }
  33. }
  34. if (b) {
  35. p = p.replace(/\r/g, "\n")
  36. }
  37. return p
  38. }
  39. function a(s) {
  40. var r = s.className.split(/\s+/);
  41. r = r.concat(s.parentNode.className.split(/\s+/));
  42. for (var q = 0; q < r.length; q++) {
  43. var p = r[q].replace(/^language-/, "");
  44. if (f[p] || p == "no-highlight") {
  45. return p
  46. }
  47. }
  48. }
  49. function d(r) {
  50. var p = [];
  51. (function q(t, u) {
  52. for (var s = 0; s < t.childNodes.length; s++) {
  53. if (t.childNodes[s].nodeType == 3) {
  54. u += t.childNodes[s].nodeValue.length
  55. } else {
  56. if (t.childNodes[s].nodeName == "BR") {
  57. u += 1
  58. } else {
  59. if (t.childNodes[s].nodeType == 1) {
  60. p.push({
  61. event: "start",
  62. offset: u,
  63. node: t.childNodes[s]
  64. });
  65. u = q(t.childNodes[s], u);
  66. p.push({
  67. event: "stop",
  68. offset: u,
  69. node: t.childNodes[s]
  70. })
  71. }
  72. }
  73. }
  74. }
  75. return u
  76. })(r, 0);
  77. return p
  78. }
  79. function k(y, w, x) {
  80. var q = 0;
  81. var z = "";
  82. var s = [];
  83. function u() {
  84. if (y.length && w.length) {
  85. if (y[0].offset != w[0].offset) {
  86. return (y[0].offset < w[0].offset) ? y : w
  87. } else {
  88. return w[0].event == "start" ? y : w
  89. }
  90. } else {
  91. return y.length ? y : w
  92. }
  93. }
  94. function t(D) {
  95. var A = "<" + D.nodeName.toLowerCase();
  96. for (var B = 0; B < D.attributes.length; B++) {
  97. var C = D.attributes[B];
  98. A += " " + C.nodeName.toLowerCase();
  99. if (C.value !== undefined && C.value !== false && C.value !== null) {
  100. A += '="' + m(C.value) + '"'
  101. }
  102. }
  103. return A + ">"
  104. }
  105. while (y.length || w.length) {
  106. var v = u().splice(0, 1)[0];
  107. z += m(x.substr(q, v.offset - q));
  108. q = v.offset;
  109. if (v.event == "start") {
  110. z += t(v.node);
  111. s.push(v.node)
  112. } else {
  113. if (v.event == "stop") {
  114. var p, r = s.length;
  115. do {
  116. r--;
  117. p = s[r];
  118. z += ("</" + p.nodeName.toLowerCase() + ">")
  119. } while (p != v.node);
  120. s.splice(r, 1);
  121. while (r < s.length) {
  122. z += t(s[r]);
  123. r++
  124. }
  125. }
  126. }
  127. }
  128. return z + m(x.substr(q))
  129. }
  130. function g(r) {
  131. function p(t, s) {
  132. var exp = null
  133. try{exp = RegExp(t, "m" + (r.cI ? "i" : "") + (s ? "g" : ""));}catch(err){}
  134. return exp ? exp : RegExp("abc")
  135. }
  136. function q(z, x) {
  137. if (z.compiled) {
  138. return
  139. }
  140. z.compiled = true;
  141. var u = [];
  142. if (z.k) {
  143. var s = {};
  144. function A(E, D) {
  145. var B = D.split(" ");
  146. for (var t = 0; t < B.length; t++) {
  147. var C = B[t].split("|");
  148. s[C[0]] = [E, C[1] ? Number(C[1]) : 1];
  149. u.push(C[0])
  150. }
  151. }
  152. z.lR = p(z.l || hljs.IR, true);
  153. if (typeof z.k == "string") {
  154. A("keyword", z.k)
  155. } else {
  156. for (var y in z.k) {
  157. if (!z.k.hasOwnProperty(y)) {
  158. continue
  159. }
  160. A(y, z.k[y])
  161. }
  162. }
  163. z.k = s
  164. }
  165. if (x) {
  166. if (z.bWK) {
  167. z.b = "\\b(" + u.join("|") + ")\\s"
  168. }
  169. z.bR = p(z.b ? z.b : "\\B|\\b");
  170. if (!z.e && !z.eW) {
  171. z.e = "\\B|\\b"
  172. }
  173. if (z.e) {
  174. z.eR = p(z.e)
  175. }
  176. z.tE = z.e || "";
  177. if (z.eW && x.tE) {
  178. z.tE += (z.e ? "|" : "") + x.tE
  179. }
  180. }
  181. if (z.i) {
  182. z.iR = p(z.i)
  183. }
  184. if (z.r === undefined) {
  185. z.r = 1
  186. }
  187. if (!z.c) {
  188. z.c = []
  189. }
  190. for (var w = 0; w < z.c.length; w++) {
  191. if (z.c[w] == "self") {
  192. z.c[w] = z
  193. }
  194. q(z.c[w], z)
  195. }
  196. if (z.starts) {
  197. q(z.starts, x)
  198. }
  199. var v = [];
  200. for (var w = 0; w < z.c.length; w++) {
  201. v.push(z.c[w].b)
  202. }
  203. if (z.tE) {
  204. v.push(z.tE)
  205. }
  206. if (z.i) {
  207. v.push(z.i)
  208. }
  209. z.t = v.length ? p(v.join("|"), true) : null
  210. }
  211. q(r)
  212. }
  213. function e(D, E) {
  214. function s(r, N) {
  215. for (var M = 0; M < N.c.length; M++) {
  216. var L = N.c[M].bR.exec(r);
  217. if (L && L.index == 0) {
  218. return N.c[M]
  219. }
  220. }
  221. }
  222. function v(L, r) {
  223. if (p[L].e && p[L].eR.test(r)) {
  224. return 1
  225. }
  226. if (p[L].eW) {
  227. var M = v(L - 1, r);
  228. return M ? M + 1 : 0
  229. }
  230. return 0
  231. }
  232. function w(r, L) {
  233. return L.i && L.iR.test(r)
  234. }
  235. function q(L, r) {
  236. var M = p[p.length - 1];
  237. if (M.t) {
  238. M.t.lastIndex = r;
  239. return M.t.exec(L)
  240. }
  241. }
  242. function A(N, r) {
  243. var L = F.cI ? r[0].toLowerCase() : r[0];
  244. var M = N.k[L];
  245. if (M && M instanceof Array) {
  246. return M
  247. }
  248. return false
  249. }
  250. function G(L, P) {
  251. L = m(L);
  252. if (!P.k) {
  253. return L
  254. }
  255. var r = "";
  256. var O = 0;
  257. P.lR.lastIndex = 0;
  258. var M = P.lR.exec(L);
  259. while (M) {
  260. r += L.substr(O, M.index - O);
  261. var N = A(P, M);
  262. if (N) {
  263. y += N[1];
  264. r += '<span class="' + N[0] + '">' + M[0] + "</span>"
  265. } else {
  266. r += M[0]
  267. }
  268. O = P.lR.lastIndex;
  269. M = P.lR.exec(L)
  270. }
  271. return r + L.substr(O)
  272. }
  273. function B(L, M) {
  274. var r;
  275. if (M.sL == "") {
  276. r = h(L)
  277. } else {
  278. r = e(M.sL, L)
  279. }
  280. if (M.r > 0) {
  281. y += r.keyword_count;
  282. C += r.r
  283. }
  284. return '<span class="' + r.language + '">' + r.value + "</span>"
  285. }
  286. function K(r, L) {
  287. if (L.sL && f[L.sL] || L.sL == "") {
  288. return B(r, L)
  289. } else {
  290. return G(r, L)
  291. }
  292. }
  293. function J(M, r) {
  294. var L = M.cN ? '<span class="' + M.cN + '">' : "";
  295. if (M.rB) {
  296. z += L;
  297. M.buffer = ""
  298. } else {
  299. if (M.eB) {
  300. z += m(r) + L;
  301. M.buffer = ""
  302. } else {
  303. z += L;
  304. M.buffer = r
  305. }
  306. }
  307. p.push(M);
  308. C += M.r
  309. }
  310. function H(N, M) {
  311. var Q = p[p.length - 1];
  312. if (M === undefined) {
  313. z += K(Q.buffer + N, Q);
  314. return
  315. }
  316. var P = s(M, Q);
  317. if (P) {
  318. z += K(Q.buffer + N, Q);
  319. J(P, M);
  320. return P.rB
  321. }
  322. var L = v(p.length - 1, M);
  323. if (L) {
  324. var O = Q.cN ? "</span>" : "";
  325. if (Q.rE) {
  326. z += K(Q.buffer + N, Q) + O
  327. } else {
  328. if (Q.eE) {
  329. z += K(Q.buffer + N, Q) + O + m(M)
  330. } else {
  331. z += K(Q.buffer + N + M, Q) + O
  332. }
  333. }
  334. while (L > 1) {
  335. O = p[p.length - 2].cN ? "</span>" : "";
  336. z += O;
  337. L--;
  338. p.length--
  339. }
  340. var r = p[p.length - 1];
  341. p.length--;
  342. p[p.length - 1].buffer = "";
  343. if (r.starts) {
  344. J(r.starts, "")
  345. }
  346. return Q.rE
  347. }
  348. if (w(M, Q)) {
  349. throw "Illegal"
  350. }
  351. }
  352. var F = f[D];
  353. g(F);
  354. var p = [F];
  355. F.buffer = "";
  356. var C = 0;
  357. var y = 0;
  358. var z = "";
  359. try {
  360. var x, u = 0;
  361. while (true) {
  362. x = q(E, u);
  363. if (!x) {
  364. break
  365. }
  366. var t = H(E.substr(u, x.index - u), x[0]);
  367. u = x.index + (t ? 0 : x[0].length)
  368. }
  369. H(E.substr(u), undefined);
  370. return {
  371. r: C,
  372. keyword_count: y,
  373. value: z,
  374. language: D
  375. }
  376. } catch (I) {
  377. if (I == "Illegal") {
  378. return {
  379. r: 0,
  380. keyword_count: 0,
  381. value: m(E)
  382. }
  383. } else {
  384. throw I
  385. }
  386. }
  387. }
  388. function h(t) {
  389. var p = {
  390. keyword_count: 0,
  391. r: 0,
  392. value: m(t)
  393. };
  394. var r = p;
  395. for (var q in f) {
  396. if (!f.hasOwnProperty(q)) {
  397. continue
  398. }
  399. var s = e(q, t);
  400. s.language = q;
  401. if (s.keyword_count + s.r > r.keyword_count + r.r) {
  402. r = s
  403. }
  404. if (s.keyword_count + s.r > p.keyword_count + p.r) {
  405. r = p;
  406. p = s
  407. }
  408. }
  409. if (r.language) {
  410. p.second_best = r
  411. }
  412. return p
  413. }
  414. function j(r, q, p) {
  415. if (q) {
  416. r = r.replace(/^((<[^>]+>|\t)+)/gm, function (t, w, v, u) {
  417. return w.replace(/\t/g, q)
  418. })
  419. }
  420. if (p) {
  421. r = r.replace(/\n/g, "<br>")
  422. }
  423. return r
  424. }
  425. function n(t, w, r) {
  426. var x = i(t, r);
  427. var v = a(t);
  428. var y, s;
  429. if (v == "no-highlight") {
  430. return
  431. }
  432. if (v) {
  433. y = e(v, x)
  434. } else {
  435. y = h(x);
  436. v = y.language
  437. }
  438. var q = d(t);
  439. if (q.length) {
  440. s = document.createElement("pre");
  441. s.innerHTML = y.value;
  442. y.value = k(q, d(s), x)
  443. }
  444. y.value = j(y.value, w, r);
  445. var u = t.className;
  446. if (!u.match("(\\s|^)(language-)?" + v + "(\\s|$)")) {
  447. u = u ? (u + " " + v) : v
  448. }
  449. if (b && t.tagName == "CODE" && t.parentNode.tagName == "PRE") {
  450. s = t.parentNode;
  451. var p = document.createElement("div");
  452. p.innerHTML = "<pre><code>" + y.value + "</code></pre>";
  453. t = p.firstChild.firstChild;
  454. p.firstChild.cN = s.cN;
  455. s.parentNode.replaceChild(p.firstChild, s)
  456. } else {
  457. t.innerHTML = y.value
  458. }
  459. t.className = u;
  460. t.result = {
  461. language: v,
  462. kw: y.keyword_count,
  463. re: y.r
  464. };
  465. if (y.second_best) {
  466. t.second_best = {
  467. language: y.second_best.language,
  468. kw: y.second_best.keyword_count,
  469. re: y.second_best.r
  470. }
  471. }
  472. }
  473. function o() {
  474. if (o.called) {
  475. return
  476. }
  477. o.called = true;
  478. var r = document.getElementsByTagName("pre");
  479. for (var p = 0; p < r.length; p++) {
  480. var q = c(r[p]);
  481. if (q) {
  482. n(q, hljs.tabReplace)
  483. }
  484. }
  485. }
  486. function l() {
  487. if (window.addEventListener) {
  488. window.addEventListener("DOMContentLoaded", o, false);
  489. window.addEventListener("load", o, false)
  490. } else {
  491. if (window.attachEvent) {
  492. window.attachEvent("onload", o)
  493. } else {
  494. window.onload = o
  495. }
  496. }
  497. }
  498. var f = {};
  499. this.LANGUAGES = f;
  500. this.highlight = e;
  501. this.highlightAuto = h;
  502. this.fixMarkup = j;
  503. this.highlightBlock = n;
  504. this.initHighlighting = o;
  505. this.initHighlightingOnLoad = l;
  506. this.IR = "[a-zA-Z][a-zA-Z0-9_]*";
  507. this.UIR = "[a-zA-Z_][a-zA-Z0-9_]*";
  508. this.NR = "\\b\\d+(\\.\\d+)?";
  509. this.CNR = "(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";
  510. this.BNR = "\\b(0b[01]+)";
  511. this.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
  512. this.BE = {
  513. b: "\\\\[\\s\\S]",
  514. r: 0
  515. };
  516. this.ASM = {
  517. cN: "string",
  518. b: "'",
  519. e: "'",
  520. i: "\\n",
  521. c: [this.BE],
  522. r: 0
  523. };
  524. this.QSM = {
  525. cN: "string",
  526. b: '"',
  527. e: '"',
  528. i: "\\n",
  529. c: [this.BE],
  530. r: 0
  531. };
  532. this.CLCM = {
  533. cN: "comment",
  534. b: "//",
  535. e: "$"
  536. };
  537. this.CBLCLM = {
  538. cN: "comment",
  539. b: "/\\*",
  540. e: "\\*/"
  541. };
  542. this.HCM = {
  543. cN: "comment",
  544. b: "#",
  545. e: "$"
  546. };
  547. this.NM = {
  548. cN: "number",
  549. b: this.NR,
  550. r: 0
  551. };
  552. this.CNM = {
  553. cN: "number",
  554. b: this.CNR,
  555. r: 0
  556. };
  557. this.BNM = {
  558. cN: "number",
  559. b: this.BNR,
  560. r: 0
  561. };
  562. this.inherit = function (r, s) {
  563. var p = {};
  564. for (var q in r) {
  565. p[q] = r[q]
  566. }
  567. if (s) {
  568. for (var q in s) {
  569. p[q] = s[q]
  570. }
  571. }
  572. return p
  573. }
  574. }();
  575. hljs.LANGUAGES["1c"] = function (b) {
  576. var f = "[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*";
  577. var c = "возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт";
  578. var e = "ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон";
  579. var a = {
  580. cN: "dquote",
  581. b: '""'
  582. };
  583. var d = {
  584. cN: "string",
  585. b: '"',
  586. e: '"|$',
  587. c: [a],
  588. r: 0
  589. };
  590. var g = {
  591. cN: "string",
  592. b: "\\|",
  593. e: '"|$',
  594. c: [a]
  595. };
  596. return {
  597. cI: true,
  598. l: f,
  599. k: {
  600. keyword: c,
  601. built_in: e
  602. },
  603. c: [b.CLCM, b.NM, d, g, {
  604. cN: "function",
  605. b: "(процедура|функция)",
  606. e: "$",
  607. l: f,
  608. k: "процедура функция",
  609. c: [{
  610. cN: "title",
  611. b: f
  612. }, {
  613. cN: "tail",
  614. eW: true,
  615. c: [{
  616. cN: "params",
  617. b: "\\(",
  618. e: "\\)",
  619. l: f,
  620. k: "знач",
  621. c: [d, g]
  622. }, {
  623. cN: "export",
  624. b: "экспорт",
  625. eW: true,
  626. l: f,
  627. k: "экспорт",
  628. c: [b.CLCM]
  629. }]
  630. }, b.CLCM]
  631. }, {
  632. cN: "preprocessor",
  633. b: "#",
  634. e: "$"
  635. }, {
  636. cN: "date",
  637. b: "'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"
  638. }]
  639. }
  640. }(hljs);
  641. hljs.LANGUAGES.actionscript = function (a) {
  642. var d = "[a-zA-Z_$][a-zA-Z0-9_$]*";
  643. var c = "([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";
  644. var e = {
  645. cN: "rest_arg",
  646. b: "[.]{3}",
  647. e: d,
  648. r: 10
  649. };
  650. var b = {
  651. cN: "title",
  652. b: d
  653. };
  654. return {
  655. k: {
  656. keyword: "as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",
  657. literal: "true false null undefined"
  658. },
  659. c: [a.ASM, a.QSM, a.CLCM, a.CBLCLM, a.CNM, {
  660. cN: "package",
  661. bWK: true,
  662. e: "{",
  663. k: "package",
  664. c: [b]
  665. }, {
  666. cN: "class",
  667. bWK: true,
  668. e: "{",
  669. k: "class interface",
  670. c: [{
  671. bWK: true,
  672. k: "extends implements"
  673. }, b]
  674. }, {
  675. cN: "preprocessor",
  676. bWK: true,
  677. e: ";",
  678. k: "import include"
  679. }, {
  680. cN: "function",
  681. bWK: true,
  682. e: "[{;]",
  683. k: "function",
  684. i: "\\S",
  685. c: [b, {
  686. cN: "params",
  687. b: "\\(",
  688. e: "\\)",
  689. c: [a.ASM, a.QSM, a.CLCM, a.CBLCLM, e]
  690. }, {
  691. cN: "type",
  692. b: ":",
  693. e: c,
  694. r: 10
  695. }]
  696. }]
  697. }
  698. }(hljs);
  699. hljs.LANGUAGES.apache = function (a) {
  700. var b = {
  701. cN: "number",
  702. b: "[\\$%]\\d+"
  703. };
  704. return {
  705. cI: true,
  706. k: {
  707. keyword: "acceptfilter acceptmutex acceptpathinfo accessfilename action addalt addaltbyencoding addaltbytype addcharset adddefaultcharset adddescription addencoding addhandler addicon addiconbyencoding addiconbytype addinputfilter addlanguage addmoduleinfo addoutputfilter addoutputfilterbytype addtype alias aliasmatch allow allowconnect allowencodedslashes allowoverride anonymous anonymous_logemail anonymous_mustgiveemail anonymous_nouserid anonymous_verifyemail authbasicauthoritative authbasicprovider authdbduserpwquery authdbduserrealmquery authdbmgroupfile authdbmtype authdbmuserfile authdefaultauthoritative authdigestalgorithm authdigestdomain authdigestnccheck authdigestnonceformat authdigestnoncelifetime authdigestprovider authdigestqop authdigestshmemsize authgroupfile authldapbinddn authldapbindpassword authldapcharsetconfig authldapcomparednonserver authldapdereferencealiases authldapgroupattribute authldapgroupattributeisdn authldapremoteuserattribute authldapremoteuserisdn authldapurl authname authnprovideralias authtype authuserfile authzdbmauthoritative authzdbmtype authzdefaultauthoritative authzgroupfileauthoritative authzldapauthoritative authzownerauthoritative authzuserauthoritative balancermember browsermatch browsermatchnocase bufferedlogs cachedefaultexpire cachedirlength cachedirlevels cachedisable cacheenable cachefile cacheignorecachecontrol cacheignoreheaders cacheignorenolastmod cacheignorequerystring cachelastmodifiedfactor cachemaxexpire cachemaxfilesize cacheminfilesize cachenegotiateddocs cacheroot cachestorenostore cachestoreprivate cgimapextension charsetdefault charsetoptions charsetsourceenc checkcaseonly checkspelling chrootdir contentdigest cookiedomain cookieexpires cookielog cookiename cookiestyle cookietracking coredumpdirectory customlog dav davdepthinfinity davgenericlockdb davlockdb davmintimeout dbdexptime dbdkeep dbdmax dbdmin dbdparams dbdpersist dbdpreparesql dbdriver defaulticon defaultlanguage defaulttype deflatebuffersize deflatecompressionlevel deflatefilternote deflatememlevel deflatewindowsize deny directoryindex directorymatch directoryslash documentroot dumpioinput dumpiologlevel dumpiooutput enableexceptionhook enablemmap enablesendfile errordocument errorlog example expiresactive expiresbytype expiresdefault extendedstatus extfilterdefine extfilteroptions fileetag filterchain filterdeclare filterprotocol filterprovider filtertrace forcelanguagepriority forcetype forensiclog gracefulshutdowntimeout group header headername hostnamelookups identitycheck identitychecktimeout imapbase imapdefault imapmenu include indexheadinsert indexignore indexoptions indexorderdefault indexstylesheet isapiappendlogtoerrors isapiappendlogtoquery isapicachefile isapifakeasync isapilognotsupported isapireadaheadbuffer keepalive keepalivetimeout languagepriority ldapcacheentries ldapcachettl ldapconnectiontimeout ldapopcacheentries ldapopcachettl ldapsharedcachefile ldapsharedcachesize ldaptrustedclientcert ldaptrustedglobalcert ldaptrustedmode ldapverifyservercert limitinternalrecursion limitrequestbody limitrequestfields limitrequestfieldsize limitrequestline limitxmlrequestbody listen listenbacklog loadfile loadmodule lockfile logformat loglevel maxclients maxkeepaliverequests maxmemfree maxrequestsperchild maxrequestsperthread maxspareservers maxsparethreads maxthreads mcachemaxobjectcount mcachemaxobjectsize mcachemaxstreamingbuffer mcacheminobjectsize mcacheremovalalgorithm mcachesize metadir metafiles metasuffix mimemagicfile minspareservers minsparethreads mmapfile mod_gzip_on mod_gzip_add_header_count mod_gzip_keep_workfiles mod_gzip_dechunk mod_gzip_min_http mod_gzip_minimum_file_size mod_gzip_maximum_file_size mod_gzip_maximum_inmem_size mod_gzip_temp_dir mod_gzip_item_include mod_gzip_item_exclude mod_gzip_command_version mod_gzip_can_negotiate mod_gzip_handle_methods mod_gzip_static_suffix mod_gzip_send_vary mod_gzip_update_static modmimeusepathinfo multiviewsmatch namevirtualhost noproxy nwssltrustedcerts nwsslupgradeable options order passenv pidfile protocolecho proxybadheader proxyblock proxydomain proxyerroroverride proxyftpdircharset proxyiobuffersize proxymaxforwards proxypass proxypassinterpolateenv proxypassmatch proxypassreverse proxypassreversecookiedomain proxypassreversecookiepath proxypreservehost proxyreceivebuffersize proxyremote proxyremotematch proxyrequests proxyset proxystatus proxytimeout proxyvia readmename receivebuffersize redirect redirectmatch redirectpermanent redirecttemp removecharset removeencoding removehandler removeinputfilter removelanguage removeoutputfilter removetype requestheader require rewritebase rewritecond rewriteengine rewritelock rewritelog rewriteloglevel rewritemap rewriteoptions rewriterule rlimitcpu rlimitmem rlimitnproc satisfy scoreboardfile script scriptalias scriptaliasmatch scriptinterpretersource scriptlog scriptlogbuffer scriptloglength scriptsock securelisten seerequesttail sendbuffersize serveradmin serveralias serverlimit servername serverpath serverroot serversignature servertokens setenv setenvif setenvifnocase sethandler setinputfilter setoutputfilter ssienableaccess ssiendtag ssierrormsg ssistarttag ssitimeformat ssiundefinedecho sslcacertificatefile sslcacertificatepath sslcadnrequestfile sslcadnrequestpath sslcarevocationfile sslcarevocationpath sslcertificatechainfile sslcertificatefile sslcertificatekeyfile sslciphersuite sslcryptodevice sslengine sslhonorciperorder sslmutex ssloptions sslpassphrasedialog sslprotocol sslproxycacertificatefile sslproxycacertificatepath sslproxycarevocationfile sslproxycarevocationpath sslproxyciphersuite sslproxyengine sslproxymachinecertificatefile sslproxymachinecertificatepath sslproxyprotocol sslproxyverify sslproxyverifydepth sslrandomseed sslrequire sslrequiressl sslsessioncache sslsessioncachetimeout sslusername sslverifyclient sslverifydepth startservers startthreads substitute suexecusergroup threadlimit threadsperchild threadstacksize timeout traceenable transferlog typesconfig unsetenv usecanonicalname usecanonicalphysicalport user userdir virtualdocumentroot virtualdocumentrootip virtualscriptalias virtualscriptaliasip win32disableacceptex xbithack",
  708. literal: "on off"
  709. },
  710. c: [a.HCM, {
  711. cN: "sqbracket",
  712. b: "\\s\\[",
  713. e: "\\]$"
  714. }, {
  715. cN: "cbracket",
  716. b: "[\\$%]\\{",
  717. e: "\\}",
  718. c: ["self", b]
  719. }, b, {
  720. cN: "tag",
  721. b: "</?",
  722. e: ">"
  723. }, a.QSM]
  724. }
  725. }(hljs);
  726. hljs.LANGUAGES.avrasm = function (a) {
  727. return {
  728. cI: true,
  729. k: {
  730. keyword: "adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",
  731. built_in: "r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf"
  732. },
  733. c: [a.CBLCLM, {
  734. cN: "comment",
  735. b: ";",
  736. e: "$"
  737. }, a.CNM, a.BNM, {
  738. cN: "number",
  739. b: "\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"
  740. }, a.QSM, {
  741. cN: "string",
  742. b: "'",
  743. e: "[^\\\\]'",
  744. i: "[^\\\\][^']"
  745. }, {
  746. cN: "label",
  747. b: "^[A-Za-z0-9_.$]+:"
  748. }, {
  749. cN: "preprocessor",
  750. b: "#",
  751. e: "$"
  752. }, {
  753. cN: "preprocessor",
  754. b: "\\.[a-zA-Z]+"
  755. }, {
  756. cN: "localvars",
  757. b: "@[0-9]+"
  758. }]
  759. }
  760. }(hljs);
  761. hljs.LANGUAGES.axapta = function (a) {
  762. return {
  763. k: "false int abstract private char interface boolean static null if for true while long throw finally protected extends final implements return void enum else break new catch byte super class case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",
  764. c: [a.CLCM, a.CBLCLM, a.ASM, a.QSM, a.CNM, {
  765. cN: "preprocessor",
  766. b: "#",
  767. e: "$"
  768. }, {
  769. cN: "class",
  770. bWK: true,
  771. e: "{",
  772. i: ":",
  773. k: "class interface",
  774. c: [{
  775. cN: "inheritance",
  776. bWK: true,
  777. k: "extends implements",
  778. r: 10
  779. }, {
  780. cN: "title",
  781. b: a.UIR
  782. }]
  783. }]
  784. }
  785. }(hljs);
  786. hljs.LANGUAGES.bash = function (a) {
  787. var f = "true false";
  788. var c = {
  789. cN: "variable",
  790. b: "\\$[a-zA-Z0-9_]+\\b"
  791. };
  792. var b = {
  793. cN: "variable",
  794. b: "\\${([^}]|\\\\})+}"
  795. };
  796. var g = {
  797. cN: "string",
  798. b: '"',
  799. e: '"',
  800. i: "\\n",
  801. c: [a.BE, c, b],
  802. r: 0
  803. };
  804. var d = {
  805. cN: "string",
  806. b: "'",
  807. e: "'",
  808. c: [{
  809. b: "''"
  810. }],
  811. r: 0
  812. };
  813. var e = {
  814. cN: "test_condition",
  815. b: "",
  816. e: "",
  817. c: [g, d, c, b],
  818. k: {
  819. literal: f
  820. },
  821. r: 0
  822. };
  823. return {
  824. k: {
  825. keyword: "if then else fi for break continue while in do done echo exit return set declare",
  826. literal: f
  827. },
  828. c: [{
  829. cN: "shebang",
  830. b: "(#!\\/bin\\/bash)|(#!\\/bin\\/sh)",
  831. r: 10
  832. }, c, b, a.HCM, g, d, a.inherit(e, {
  833. b: "\\[ ",
  834. e: " \\]",
  835. r: 0
  836. }), a.inherit(e, {
  837. b: "\\[\\[ ",
  838. e: " \\]\\]"
  839. })]
  840. }
  841. }(hljs);
  842. hljs.LANGUAGES.clojure = function (l) {
  843. var e = {
  844. built_in: "def cond apply if-not if-let if not not= = &lt; < > &lt;= <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for doseq dosync dotimes and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import intern refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! import use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if throw printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time ns assert re-find re-groups rand-int rand mod locking assert-valid-fdecl alias namespace resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! memfn to-array future future-call into-array aset gen-class reduce merge map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
  845. };
  846. var f = "[a-zA-Z_0-9\\!\\.\\?\\-\\+\\*\\/\\<\\=\\>\\&\\#\\$';]+";
  847. var a = "[\\s:\\(\\{]+\\d+(\\.\\d+)?";
  848. var d = {
  849. cN: "number",
  850. b: a,
  851. r: 0
  852. };
  853. var j = {
  854. cN: "string",
  855. b: '"',
  856. e: '"',
  857. c: [l.BE],
  858. r: 0
  859. };
  860. var o = {
  861. cN: "comment",
  862. b: ";",
  863. e: "$",
  864. r: 0
  865. };
  866. var n = {
  867. cN: "collection",
  868. b: "[\\[\\{]",
  869. e: "[\\]\\}]"
  870. };
  871. var c = {
  872. cN: "comment",
  873. b: "\\^" + f
  874. };
  875. var b = {
  876. cN: "comment",
  877. b: "\\^\\{",
  878. e: "\\}"
  879. };
  880. var h = {
  881. cN: "attribute",
  882. b: "[:]" + f
  883. };
  884. var m = {
  885. cN: "list",
  886. b: "\\(",
  887. e: "\\)",
  888. r: 0
  889. };
  890. var g = {
  891. eW: true,
  892. eE: true,
  893. k: {
  894. literal: "true false nil"
  895. },
  896. r: 0
  897. };
  898. var i = {
  899. k: e,
  900. l: f,
  901. cN: "title",
  902. b: f,
  903. starts: g
  904. };
  905. m.c = [{
  906. cN: "comment",
  907. b: "comment"
  908. }, i];
  909. g.c = [m, j, c, b, o, h, n, d];
  910. n.c = [m, j, c, o, h, n, d];
  911. return {
  912. cI: true,
  913. i: "\\S",
  914. c: [o, m]
  915. }
  916. }(hljs);
  917. hljs.LANGUAGES.cmake = function (a) {
  918. return {
  919. cI: true,
  920. k: "add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file",
  921. c: [{
  922. cN: "envvar",
  923. b: "\\${",
  924. e: "}"
  925. }, a.HCM, a.QSM, a.NM]
  926. }
  927. }(hljs);
  928. hljs.LANGUAGES.coffeescript = function (g) {
  929. var f = {
  930. keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger class extends superthen unless until loop of by when and or is isnt not",
  931. literal: "true false null undefined yes no on off ",
  932. reserved: "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf"
  933. };
  934. var a = "[A-Za-z$_][0-9A-Za-z$_]*";
  935. var j = {
  936. cN: "subst",
  937. b: "#\\{",
  938. e: "}",
  939. k: f,
  940. c: [g.CNM, g.BNM]
  941. };
  942. var c = {
  943. cN: "string",
  944. b: '"',
  945. e: '"',
  946. r: 0,
  947. c: [g.BE, j]
  948. };
  949. var m = {
  950. cN: "string",
  951. b: '"""',
  952. e: '"""',
  953. c: [g.BE, j]
  954. };
  955. var h = {
  956. cN: "comment",
  957. b: "###",
  958. e: "###"
  959. };
  960. var i = {
  961. cN: "regexp",
  962. b: "///",
  963. e: "///",
  964. c: [g.HCM]
  965. };
  966. var d = {
  967. cN: "regexp",
  968. b: "//[gim]*"
  969. };
  970. var b = {
  971. cN: "regexp",
  972. b: "/\\S(\\\\.|[^\\n])*/[gim]*"
  973. };
  974. var l = {
  975. cN: "function",
  976. b: a + "\\s*=\\s*(\\(.+\\))?\\s*[-=]>",
  977. rB: true,
  978. c: [{
  979. cN: "title",
  980. b: a
  981. }, {
  982. cN: "params",
  983. b: "\\(",
  984. e: "\\)"
  985. }]
  986. };
  987. var e = {
  988. b: "`",
  989. e: "`",
  990. eB: true,
  991. eE: true,
  992. sL: "javascript"
  993. };
  994. return {
  995. k: f,
  996. c: [g.CNM, g.BNM, g.ASM, m, c, h, g.HCM, i, d, b, e, l]
  997. }
  998. }(hljs);
  999. hljs.LANGUAGES.cpp = function (a) {
  1000. var b = {
  1001. keyword: "false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex",
  1002. built_in: "std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr"
  1003. };
  1004. return {
  1005. k: b,
  1006. i: "</",
  1007. c: [a.CLCM, a.CBLCLM, a.QSM, {
  1008. cN: "string",
  1009. b: "'\\\\?.",
  1010. e: "'",
  1011. i: "."
  1012. }, {
  1013. cN: "number",
  1014. b: "\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"
  1015. }, a.CNM, {
  1016. cN: "preprocessor",
  1017. b: "#",
  1018. e: "$"
  1019. }, {
  1020. cN: "stl_container",
  1021. b: "\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
  1022. e: ">",
  1023. k: b,
  1024. r: 10,
  1025. c: ["self"]
  1026. }]
  1027. }
  1028. }(hljs);
  1029. hljs.LANGUAGES.cs = function (a) {
  1030. return {
  1031. k: "abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while ascending descending from get group into join let orderby partial select set value var where yield",
  1032. c: [{
  1033. cN: "comment",
  1034. b: "///",
  1035. e: "$",
  1036. rB: true,
  1037. c: [{
  1038. cN: "xmlDocTag",
  1039. b: "///|<!--|-->"
  1040. }, {
  1041. cN: "xmlDocTag",
  1042. b: "</?",
  1043. e: ">"
  1044. }]
  1045. }, a.CLCM, a.CBLCLM, {
  1046. cN: "preprocessor",
  1047. b: "#",
  1048. e: "$",
  1049. k: "if else elif endif define undef warning error line region endregion pragma checksum"
  1050. }, {
  1051. cN: "string",
  1052. b: '@"',
  1053. e: '"',
  1054. c: [{
  1055. b: '""'
  1056. }]
  1057. }, a.ASM, a.QSM, a.CNM]
  1058. }
  1059. }(hljs);
  1060. hljs.LANGUAGES.css = function (a) {
  1061. var b = {
  1062. cN: "function",
  1063. b: a.IR + "\\(",
  1064. e: "\\)",
  1065. c: [a.NM, a.ASM, a.QSM]
  1066. };
  1067. return {
  1068. cI: true,
  1069. i: "[=/|']",
  1070. c: [a.CBLCLM, {
  1071. cN: "id",
  1072. b: "\\#[A-Za-z0-9_-]+"
  1073. }, {
  1074. cN: "class",
  1075. b: "\\.[A-Za-z0-9_-]+",
  1076. r: 0
  1077. }, {
  1078. cN: "attr_selector",
  1079. b: "\\[",
  1080. e: "\\]",
  1081. i: "$"
  1082. }, {
  1083. cN: "pseudo",
  1084. b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
  1085. }, {
  1086. cN: "at_rule",
  1087. b: "@(font-face|page)",
  1088. l: "[a-z-]+",
  1089. k: "font-face page"
  1090. }, {
  1091. cN: "at_rule",
  1092. b: "@",
  1093. e: "[{;]",
  1094. eE: true,
  1095. k: "import page media charset",
  1096. c: [b, a.ASM, a.QSM, a.NM]
  1097. }, {
  1098. cN: "tag",
  1099. b: a.IR,
  1100. r: 0
  1101. }, {
  1102. cN: "rules",
  1103. b: "{",
  1104. e: "}",
  1105. i: "[^\\s]",
  1106. r: 0,
  1107. c: [a.CBLCLM, {
  1108. cN: "rule",
  1109. b: "[^\\s]",
  1110. rB: true,
  1111. e: ";",
  1112. eW: true,
  1113. c: [{
  1114. cN: "attribute",
  1115. b: "[A-Z\\_\\.\\-]+",
  1116. e: ":",
  1117. eE: true,
  1118. i: "[^\\s]",
  1119. starts: {
  1120. cN: "value",
  1121. eW: true,
  1122. eE: true,
  1123. c: [b, a.NM, a.QSM, a.ASM, a.CBLCLM, {
  1124. cN: "hexcolor",
  1125. b: "\\#[0-9A-F]+"
  1126. }, {
  1127. cN: "important",
  1128. b: "!important"
  1129. }]
  1130. }
  1131. }]
  1132. }]
  1133. }]
  1134. }
  1135. }(hljs);
  1136. hljs.LANGUAGES.d = function (x) {
  1137. var b = {
  1138. keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
  1139. built_in: "bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
  1140. literal: "false null true"
  1141. };
  1142. var c = "(0|[1-9][\\d_]*)",
  1143. q = "(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",
  1144. h = "0[bB][01_]+",
  1145. v = "([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",
  1146. y = "0[xX]" + v,
  1147. p = "([eE][+-]?" + q + ")",
  1148. o = "(" + q + "(\\.\\d*|" + p + ")|\\d+\\." + q + q + "|\\." + c + p + "?)",
  1149. k = "(0[xX](" + v + "\\." + v + "|\\.?" + v + ")[pP][+-]?" + q + ")",
  1150. l = "(" + c + "|" + h + "|" + y + ")",
  1151. n = "(" + k + "|" + o + ")";
  1152. var z = "\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};";
  1153. var m = {
  1154. cN: "number",
  1155. b: "\\b" + l + "(L|u|U|Lu|LU|uL|UL)?",
  1156. r: 0
  1157. };
  1158. var j = {
  1159. cN: "number",
  1160. b: "\\b(" + n + "([fF]|L|i|[fF]i|Li)?|" + l + "(i|[fF]i|Li))",
  1161. r: 0
  1162. };
  1163. var s = {
  1164. cN: "string",
  1165. b: "'(" + z + "|.)",
  1166. e: "'",
  1167. i: "."
  1168. };
  1169. var r = {
  1170. b: z,
  1171. r: 0
  1172. };
  1173. var w = {
  1174. cN: "string",
  1175. b: '"',
  1176. c: [r],
  1177. e: '"[cwd]?',
  1178. r: 0
  1179. };
  1180. var f = {
  1181. cN: "string",
  1182. b: '[rq]"',
  1183. e: '"[cwd]?',
  1184. r: 5
  1185. };
  1186. var u = {
  1187. cN: "string",
  1188. b: "`",
  1189. e: "`[cwd]?"
  1190. };
  1191. var i = {
  1192. cN: "string",
  1193. b: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',
  1194. r: 10
  1195. };
  1196. var t = {
  1197. cN: "string",
  1198. b: 'q"\\{',
  1199. e: '\\}"'
  1200. };
  1201. var e = {
  1202. cN: "shebang",
  1203. b: "^#!",
  1204. e: "$",
  1205. r: 5
  1206. };
  1207. var g = {
  1208. cN: "preprocessor",
  1209. b: "#(line)",
  1210. e: "$",
  1211. r: 5
  1212. };
  1213. var d = {
  1214. cN: "keyword",
  1215. b: "@[a-zA-Z_][a-zA-Z_\\d]*"
  1216. };
  1217. var a = {
  1218. cN: "comment",
  1219. b: "\\/\\+",
  1220. c: ["self"],
  1221. e: "\\+\\/",
  1222. r: 10
  1223. };
  1224. return {
  1225. l: x.UIR,
  1226. k: b,
  1227. c: [x.CLCM, x.CBLCLM, a, i, w, f, u, t, j, m, s, e, g, d]
  1228. }
  1229. }(hljs);
  1230. hljs.LANGUAGES.delphi = function (b) {
  1231. var f = "and safecall cdecl then string exports library not pascal set virtual file in array label packed end. index while const raise for to implementation with except overload destructor downto finally program exit unit inherited override if type until function do begin repeat goto nil far initialization object else var uses external resourcestring interface end finalization class asm mod case on shr shl of register xorwrite threadvar try record near stored constructor stdcall inline div out or procedure";
  1232. var e = "safecall stdcall pascal stored const implementation finalization except to finally program inherited override then exports string read not mod shr try div shl set library message packed index for near overload label downto exit public goto interface asm on of constructor or private array unit raise destructor var type until function else external with case default record while protected property procedure published and cdecl do threadvar file in if end virtual write far out begin repeat nil initialization object uses resourcestring class register xorwrite inline static";
  1233. var a = {
  1234. cN: "comment",
  1235. b: "{",
  1236. e: "}",
  1237. r: 0
  1238. };
  1239. var g = {
  1240. cN: "comment",
  1241. b: "\\(\\*",
  1242. e: "\\*\\)",
  1243. r: 10
  1244. };
  1245. var c = {
  1246. cN: "string",
  1247. b: "'",
  1248. e: "'",
  1249. c: [{
  1250. b: "''"
  1251. }],
  1252. r: 0
  1253. };
  1254. var d = {
  1255. cN: "string",
  1256. b: "(#\\d+)+"
  1257. };
  1258. var h = {
  1259. cN: "function",
  1260. bWK: true,
  1261. e: "[:;]",
  1262. k: "function constructor|10 destructor|10 procedure|10",
  1263. c: [{
  1264. cN: "title",
  1265. b: b.IR
  1266. }, {
  1267. cN: "params",
  1268. b: "\\(",
  1269. e: "\\)",
  1270. k: f,
  1271. c: [c, d]
  1272. }, a, g]
  1273. };
  1274. return {
  1275. cI: true,
  1276. k: f,
  1277. i: '("|\\$[G-Zg-z]|\\/\\*|</)',
  1278. c: [a, g, b.CLCM, c, d, b.NM, h, {
  1279. cN: "class",
  1280. b: "=\\bclass\\b",
  1281. e: "end;",
  1282. k: e,
  1283. c: [c, d, a, g, b.CLCM, h]
  1284. }]
  1285. }
  1286. }(hljs);
  1287. hljs.LANGUAGES.diff = function (a) {
  1288. return {
  1289. cI: true,
  1290. c: [{
  1291. cN: "chunk",
  1292. b: "^\\@\\@ +\\-\\d+,\\d+ +\\+\\d+,\\d+ +\\@\\@$",
  1293. r: 10
  1294. }, {
  1295. cN: "chunk",
  1296. b: "^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*$",
  1297. r: 10
  1298. }, {
  1299. cN: "chunk",
  1300. b: "^\\-\\-\\- +\\d+,\\d+ +\\-\\-\\-\\-$",
  1301. r: 10
  1302. }, {
  1303. cN: "header",
  1304. b: "Index: ",
  1305. e: "$"
  1306. }, {
  1307. cN: "header",
  1308. b: "=====",
  1309. e: "=====$"
  1310. }, {
  1311. cN: "header",
  1312. b: "^\\-\\-\\-",
  1313. e: "$"
  1314. }, {
  1315. cN: "header",
  1316. b: "^\\*{3} ",
  1317. e: "$"
  1318. }, {
  1319. cN: "header",
  1320. b: "^\\+\\+\\+",
  1321. e: "$"
  1322. }, {
  1323. cN: "header",
  1324. b: "\\*{5}",
  1325. e: "\\*{5}$"
  1326. }, {
  1327. cN: "addition",
  1328. b: "^\\+",
  1329. e: "$"
  1330. }, {
  1331. cN: "deletion",
  1332. b: "^\\-",
  1333. e: "$"
  1334. }, {
  1335. cN: "change",
  1336. b: "^\\!",
  1337. e: "$"
  1338. }]
  1339. }
  1340. }(hljs);
  1341. hljs.LANGUAGES.xml = function (a) {
  1342. var c = "[A-Za-z0-9\\._:-]+";
  1343. var b = {
  1344. eW: true,
  1345. c: [{
  1346. cN: "attribute",
  1347. b: c,
  1348. r: 0
  1349. }, {
  1350. b: '="',
  1351. rB: true,
  1352. e: '"',
  1353. c: [{
  1354. cN: "value",
  1355. b: '"',
  1356. eW: true
  1357. }]
  1358. }, {
  1359. b: "='",
  1360. rB: true,
  1361. e: "'",
  1362. c: [{
  1363. cN: "value",
  1364. b: "'",
  1365. eW: true
  1366. }]
  1367. }, {
  1368. b: "=",
  1369. c: [{
  1370. cN: "value",
  1371. b: "[^\\s/>]+"
  1372. }]
  1373. }]
  1374. };
  1375. return {
  1376. cI: true,
  1377. c: [{
  1378. cN: "pi",
  1379. b: "<\\?",
  1380. e: "\\?>",
  1381. r: 10
  1382. }, {
  1383. cN: "doctype",
  1384. b: "<!DOCTYPE",
  1385. e: ">",
  1386. r: 10,
  1387. c: [{
  1388. b: "\\[",
  1389. e: "\\]"
  1390. }]
  1391. }, {
  1392. cN: "comment",
  1393. b: "<!--",
  1394. e: "-->",
  1395. r: 10
  1396. }, {
  1397. cN: "cdata",
  1398. b: "<\\!\\[CDATA\\[",
  1399. e: "\\]\\]>",
  1400. r: 10
  1401. }, {
  1402. cN: "tag",
  1403. b: "<style(?=\\s|>|$)",
  1404. e: ">",
  1405. k: {
  1406. title: "style"
  1407. },
  1408. c: [b],
  1409. starts: {
  1410. e: "</style>",
  1411. rE: true,
  1412. sL: "css"
  1413. }
  1414. }, {
  1415. cN: "tag",
  1416. b: "<script(?=\\s|>|$)",
  1417. e: ">",
  1418. k: {
  1419. title: "script"
  1420. },
  1421. c: [b],
  1422. starts: {
  1423. e: "<\/script>",
  1424. rE: true,
  1425. sL: "javascript"
  1426. }
  1427. }, {
  1428. b: "<%",
  1429. e: "%>",
  1430. sL: "vbscript"
  1431. }, {
  1432. cN: "tag",
  1433. b: "</?",
  1434. e: "/?>",
  1435. c: [{
  1436. cN: "title",
  1437. b: "[^ />]+"
  1438. }, b]
  1439. }]
  1440. }
  1441. }(hljs);
  1442. hljs.LANGUAGES.django = function (c) {
  1443. function e(h, g) {
  1444. return (g == undefined || (!h.cN && g.cN == "tag") || h.cN == "value")
  1445. }
  1446. function f(l, k) {
  1447. var g = {};
  1448. for (var j in l) {
  1449. if (j != "contains") {
  1450. g[j] = l[j]
  1451. }
  1452. var m = [];
  1453. for (var h = 0; l.c && h < l.c.length; h++) {
  1454. m.push(f(l.c[h], l))
  1455. }
  1456. if (e(l, k)) {
  1457. m = b.concat(m)
  1458. }
  1459. if (m.length) {
  1460. g.c = m
  1461. }
  1462. }
  1463. return g
  1464. }
  1465. var d = {
  1466. cN: "filter",
  1467. b: "\\|[A-Za-z]+\\:?",
  1468. eE: true,
  1469. k: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone",
  1470. c: [{
  1471. cN: "argument",
  1472. b: '"',
  1473. e: '"'
  1474. }]
  1475. };
  1476. var b = [{
  1477. cN: "template_comment",
  1478. b: "{%\\s*comment\\s*%}",
  1479. e: "{%\\s*endcomment\\s*%}"
  1480. }, {
  1481. cN: "template_comment",
  1482. b: "{#",
  1483. e: "#}"
  1484. }, {
  1485. cN: "template_tag",
  1486. b: "{%",
  1487. e: "%}",
  1488. k: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor in ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup by as ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone",
  1489. c: [d]
  1490. }, {
  1491. cN: "variable",
  1492. b: "{{",
  1493. e: "}}",
  1494. c: [d]
  1495. }];
  1496. var a = f(c.LANGUAGES.xml);
  1497. a.cI = true;
  1498. return a
  1499. }(hljs);
  1500. hljs.LANGUAGES.dos = function (a) {
  1501. return {
  1502. cI: true,
  1503. k: {
  1504. flow: "if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",
  1505. keyword: "shift cd dir echo setlocal endlocal set pause copy",
  1506. stream: "prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux",
  1507. winutils: "ping net ipconfig taskkill xcopy ren del"
  1508. },
  1509. c: [{
  1510. cN: "envvar",
  1511. b: "%%[^ ]"
  1512. }, {
  1513. cN: "envvar",
  1514. b: "%[^ ]+?%"
  1515. }, {
  1516. cN: "envvar",
  1517. b: "![^ ]+?!"
  1518. }, {
  1519. cN: "number",
  1520. b: "\\b\\d+",
  1521. r: 0
  1522. }, {
  1523. cN: "comment",
  1524. b: "@?rem",
  1525. e: "$"
  1526. }]
  1527. }
  1528. }(hljs);
  1529. hljs.LANGUAGES["erlang-repl"] = function (a) {
  1530. return {
  1531. k: {
  1532. special_functions: "spawn spawn_link self",
  1533. reserved: "after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
  1534. },
  1535. c: [{
  1536. cN: "input_number",
  1537. b: "^[0-9]+> ",
  1538. r: 10
  1539. }, {
  1540. cN: "comment",
  1541. b: "%",
  1542. e: "$"
  1543. }, {
  1544. cN: "number",
  1545. b: "\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",
  1546. r: 0
  1547. }, a.ASM, a.QSM, {
  1548. cN: "constant",
  1549. b: "\\?(::)?([A-Z]\\w*(::)?)+"
  1550. }, {
  1551. cN: "arrow",
  1552. b: "->"
  1553. }, {
  1554. cN: "ok",
  1555. b: "ok"
  1556. }, {
  1557. cN: "exclamation_mark",
  1558. b: "!"
  1559. }, {
  1560. cN: "function_or_atom",
  1561. b: "(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",
  1562. r: 0
  1563. }, {
  1564. cN: "variable",
  1565. b: "[A-Z][a-zA-Z0-9_']*",
  1566. r: 0
  1567. }]
  1568. }
  1569. }(hljs);
  1570. hljs.LANGUAGES.erlang = function (i) {
  1571. var c = "[a-z'][a-zA-Z0-9_']*";
  1572. var o = "(" + c + ":" + c + "|" + c + ")";
  1573. var f = {
  1574. keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun let not of orelse|10 query receive rem try when xor",
  1575. literal: "false true"
  1576. };
  1577. var l = {
  1578. cN: "comment",
  1579. b: "%",
  1580. e: "$",
  1581. r: 0
  1582. };
  1583. var e = {
  1584. cN: "number",
  1585. b: "\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",
  1586. r: 0
  1587. };
  1588. var g = {
  1589. b: "fun\\s+" + c + "/\\d+"
  1590. };
  1591. var n = {
  1592. b: o + "\\(",
  1593. e: "\\)",
  1594. rB: true,
  1595. r: 0,
  1596. c: [{
  1597. cN: "function_name",
  1598. b: o,
  1599. r: 0
  1600. }, {
  1601. b: "\\(",
  1602. e: "\\)",
  1603. eW: true,
  1604. rE: true,
  1605. r: 0
  1606. }]
  1607. };
  1608. var h = {
  1609. cN: "tuple",
  1610. b: "{",
  1611. e: "}",
  1612. r: 0
  1613. };
  1614. var a = {
  1615. cN: "variable",
  1616. b: "\\b_([A-Z][A-Za-z0-9_]*)?",
  1617. r: 0
  1618. };
  1619. var m = {
  1620. cN: "variable",
  1621. b: "[A-Z][a-zA-Z0-9_]*",
  1622. r: 0
  1623. };
  1624. var b = {
  1625. b: "#",
  1626. e: "}",
  1627. i: ".",
  1628. r: 0,
  1629. rB: true,
  1630. c: [{
  1631. cN: "record_name",
  1632. b: "#" + i.UIR,
  1633. r: 0
  1634. }, {
  1635. b: "{",
  1636. eW: true,
  1637. r: 0
  1638. }]
  1639. };
  1640. var k = {
  1641. k: f,
  1642. b: "(fun|receive|if|try|case)",
  1643. e: "end"
  1644. };
  1645. k.c = [l, g, i.inherit(i.ASM, {
  1646. cN: ""
  1647. }), k, n, i.QSM, e, h, a, m, b];
  1648. var j = [l, g, k, n, i.QSM, e, h, a, m, b];
  1649. n.c[1].c = j;
  1650. h.c = j;
  1651. b.c[1].c = j;
  1652. var d = {
  1653. cN: "params",
  1654. b: "\\(",
  1655. e: "\\)",
  1656. c: j
  1657. };
  1658. return {
  1659. k: f,
  1660. i: "(</|\\*=|\\+=|-=|/=|/\\*|\\*/|\\(\\*|\\*\\))",
  1661. c: [{
  1662. cN: "function",
  1663. b: "^" + c + "\\s*\\(",
  1664. e: "->",
  1665. rB: true,
  1666. i: "\\(|#|//|/\\*|\\\\|:",
  1667. c: [d, {
  1668. cN: "title",
  1669. b: c
  1670. }],
  1671. starts: {
  1672. e: ";|\\.",
  1673. k: f,
  1674. c: j
  1675. }
  1676. }, l, {
  1677. cN: "pp",
  1678. b: "^-",
  1679. e: "\\.",
  1680. r: 0,
  1681. eE: true,
  1682. rB: true,
  1683. l: "-" + i.IR,
  1684. k: "-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior",
  1685. c: [d]
  1686. }, e, i.QSM, b, a, m, h]
  1687. }
  1688. }(hljs);
  1689. hljs.LANGUAGES.glsl = function (a) {
  1690. return {
  1691. k: {
  1692. keyword: "atomic_uint attribute bool break bvec2 bvec3 bvec4 case centroid coherent const continue default discard dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 do double dvec2 dvec3 dvec4 else flat float for highp if iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray in inout int invariant isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 layout lowp mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 mediump noperspective out patch precision readonly restrict return sample sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow smooth struct subroutine switch uimage1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint uniform usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D usamplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 varying vec2 vec3 vec4 void volatile while writeonly",
  1693. built_in: "gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffsetgl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_PerVertex gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicCounter atomicCounterDecrement atomicCounterIncrement barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow gl_TextureMatrix gl_TextureMatrixInverse",
  1694. literal: "true false"
  1695. },
  1696. i: '"',
  1697. c: [a.CLCM, a.CBLCLM, a.CNM, {
  1698. cN: "preprocessor",
  1699. b: "#",
  1700. e: "$"
  1701. }]
  1702. }
  1703. }(hljs);
  1704. hljs.LANGUAGES.go = function (a) {
  1705. var b = {
  1706. keyword: "break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer",
  1707. constant: "true false iota nil",
  1708. typename: "bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",
  1709. built_in: "append cap close complex copy imag len make new panic print println real recover delete"
  1710. };
  1711. return {
  1712. k: b,
  1713. i: "</",
  1714. c: [a.CLCM, a.CBLCLM, a.QSM, {
  1715. cN: "string",
  1716. b: "'",
  1717. e: "[^\\\\]'",
  1718. r: 0
  1719. }, {
  1720. cN: "string",
  1721. b: "`",
  1722. e: "`"
  1723. }, {
  1724. cN: "number",
  1725. b: "[^a-zA-Z_0-9](\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s)(\\+|\\-)?\\d+)?",
  1726. r: 0
  1727. }, a.CNM]
  1728. }
  1729. }(hljs);
  1730. hljs.LANGUAGES.haskell = function (a) {
  1731. var d = {
  1732. cN: "type",
  1733. b: "\\b[A-Z][\\w']*",
  1734. r: 0
  1735. };
  1736. var c = {
  1737. cN: "container",
  1738. b: "\\(",
  1739. e: "\\)",
  1740. c: [{
  1741. cN: "type",
  1742. b: "\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"
  1743. }, {
  1744. cN: "title",
  1745. b: "[_a-z][\\w']*"
  1746. }]
  1747. };
  1748. var b = {
  1749. cN: "container",
  1750. b: "{",
  1751. e: "}",
  1752. c: c.c
  1753. };
  1754. return {
  1755. k: "let in if then else case of where do module import hiding qualified type data newtype deriving class instance not as foreign ccall safe unsafe",
  1756. c: [{
  1757. cN: "comment",
  1758. b: "--",
  1759. e: "$"
  1760. }, {
  1761. cN: "preprocessor",
  1762. b: "{-#",
  1763. e: "#-}"
  1764. }, {
  1765. cN: "comment",
  1766. c: ["self"],
  1767. b: "{-",
  1768. e: "-}"
  1769. }, {
  1770. cN: "string",
  1771. b: "\\s+'",
  1772. e: "'",
  1773. c: [a.BE],
  1774. r: 0
  1775. }, a.QSM, {
  1776. cN: "import",
  1777. b: "\\bimport",
  1778. e: "$",
  1779. k: "import qualified as hiding",
  1780. c: [c],
  1781. i: "\\W\\.|;"
  1782. }, {
  1783. cN: "module",
  1784. b: "\\bmodule",
  1785. e: "where",
  1786. k: "module where",
  1787. c: [c],
  1788. i: "\\W\\.|;"
  1789. }, {
  1790. cN: "class",
  1791. b: "\\b(class|instance)",
  1792. e: "where",
  1793. k: "class where instance",
  1794. c: [d]
  1795. }, {
  1796. cN: "typedef",
  1797. b: "\\b(data|(new)?type)",
  1798. e: "$",
  1799. k: "data type newtype deriving",
  1800. c: [d, c, b]
  1801. }, a.CNM, {
  1802. cN: "shebang",
  1803. b: "#!\\/usr\\/bin\\/env runhaskell",
  1804. e: "$"
  1805. }, d, {
  1806. cN: "title",
  1807. b: "^[_a-z][\\w']*"
  1808. }]
  1809. }
  1810. }(hljs);
  1811. hljs.LANGUAGES.http = function (a) {
  1812. return {
  1813. i: "\\S",
  1814. c: [{
  1815. cN: "status",
  1816. b: "^HTTP/[0-9\\.]+",
  1817. e: "$",
  1818. c: [{
  1819. cN: "number",
  1820. b: "\\b\\d{3}\\b"
  1821. }]
  1822. }, {
  1823. cN: "request",
  1824. b: "^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",
  1825. rB: true,
  1826. e: "$",
  1827. c: [{
  1828. cN: "string",
  1829. b: " ",
  1830. e: " ",
  1831. eB: true,
  1832. eE: true
  1833. }]
  1834. }, {
  1835. cN: "attribute",
  1836. b: "^\\w",
  1837. e: ": ",
  1838. eE: true,
  1839. i: "\\n|\\s|=",
  1840. starts: {
  1841. cN: "string",
  1842. e: "$"
  1843. }
  1844. }, {
  1845. b: "\\n\\n",
  1846. starts: {
  1847. sL: "",
  1848. eW: true
  1849. }
  1850. }]
  1851. }
  1852. }(hljs);
  1853. hljs.LANGUAGES.ini = function (a) {
  1854. return {
  1855. cI: true,
  1856. i: "[^\\s]",
  1857. c: [{
  1858. cN: "comment",
  1859. b: ";",
  1860. e: "$"
  1861. }, {
  1862. cN: "title",
  1863. b: "^\\[",
  1864. e: "\\]"
  1865. }, {
  1866. cN: "setting",
  1867. b: "^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",
  1868. e: "$",
  1869. c: [{
  1870. cN: "value",
  1871. eW: true,
  1872. k: "on off true false yes no",
  1873. c: [a.QSM, a.NM]
  1874. }]
  1875. }]
  1876. }
  1877. }(hljs);
  1878. hljs.LANGUAGES.java = function (a) {
  1879. return {
  1880. k: "false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws",
  1881. c: [{
  1882. cN: "javadoc",
  1883. b: "/\\*\\*",
  1884. e: "\\*/",
  1885. c: [{
  1886. cN: "javadoctag",
  1887. b: "@[A-Za-z]+"
  1888. }],
  1889. r: 10
  1890. }, a.CLCM, a.CBLCLM, a.ASM, a.QSM, {
  1891. cN: "class",
  1892. bWK: true,
  1893. e: "{",
  1894. k: "class interface",
  1895. i: ":",
  1896. c: [{
  1897. bWK: true,
  1898. k: "extends implements",
  1899. r: 10
  1900. }, {
  1901. cN: "title",
  1902. b: a.UIR
  1903. }]
  1904. }, a.CNM, {
  1905. cN: "annotation",
  1906. b: "@[A-Za-z]+"
  1907. }]
  1908. }
  1909. }(hljs);
  1910. hljs.LANGUAGES.javascript = function (a) {
  1911. return {
  1912. k: {
  1913. keyword: "in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const",
  1914. literal: "true false null undefined NaN Infinity"
  1915. },
  1916. c: [a.ASM, a.QSM, a.CLCM, a.CBLCLM, a.CNM, {
  1917. b: "(" + a.RSR + "|\\b(case|return|throw)\\b)\\s*",
  1918. k: "return throw case",
  1919. c: [a.CLCM, a.CBLCLM, {
  1920. cN: "regexp",
  1921. b: "/",
  1922. e: "/[gim]*",
  1923. c: [{
  1924. b: "\\\\/"
  1925. }]
  1926. }],
  1927. r: 0
  1928. }, {
  1929. cN: "function",
  1930. bWK: true,
  1931. e: "{",
  1932. k: "function",
  1933. c: [{
  1934. cN: "title",
  1935. b: "[A-Za-z$_][0-9A-Za-z$_]*"
  1936. }, {
  1937. cN: "params",
  1938. b: "\\(",
  1939. e: "\\)",
  1940. c: [a.CLCM, a.CBLCLM],
  1941. i: "[\"'\\(]"
  1942. }],
  1943. i: "\\[|%"
  1944. }]
  1945. }
  1946. }(hljs);
  1947. hljs.LANGUAGES.json = function (a) {
  1948. var e = {
  1949. literal: "true false null"
  1950. };
  1951. var d = [a.QSM, a.CNM];
  1952. var c = {
  1953. cN: "value",
  1954. e: ",",
  1955. eW: true,
  1956. eE: true,
  1957. c: d,
  1958. k: e
  1959. };
  1960. var b = {
  1961. b: "{",
  1962. e: "}",
  1963. c: [{
  1964. cN: "attribute",
  1965. b: '\\s*"',
  1966. e: '"\\s*:\\s*',
  1967. eB: true,
  1968. eE: true,
  1969. c: [a.BE],
  1970. i: "\\n",
  1971. starts: c
  1972. }],
  1973. i: "\\S"
  1974. };
  1975. var f = {
  1976. b: "\\[",
  1977. e: "\\]",
  1978. c: [a.inherit(c, {
  1979. cN: null
  1980. })],
  1981. i: "\\S"
  1982. };
  1983. d.splice(d.length, 0, b, f);
  1984. return {
  1985. c: d,
  1986. k: e,
  1987. i: "\\S"
  1988. }
  1989. }(hljs);
  1990. hljs.LANGUAGES.lisp = function (i) {
  1991. var k = "[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#]*";
  1992. var l = "(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s)(\\+|\\-)?\\d+)?";
  1993. var a = {
  1994. cN: "literal",
  1995. b: "\\b(t{1}|nil)\\b"
  1996. };
  1997. var d = [{
  1998. cN: "number",
  1999. b: l
  2000. }, {
  2001. cN: "number",
  2002. b: "#b[0-1]+(/[0-1]+)?"
  2003. }, {
  2004. cN: "number",
  2005. b: "#o[0-7]+(/[0-7]+)?"
  2006. }, {
  2007. cN: "number",
  2008. b: "#x[0-9a-f]+(/[0-9a-f]+)?"
  2009. }, {
  2010. cN: "number",
  2011. b: "#c\\(" + l + " +" + l,
  2012. e: "\\)"
  2013. }];
  2014. var h = {
  2015. cN: "string",
  2016. b: '"',
  2017. e: '"',
  2018. c: [i.BE],
  2019. r: 0
  2020. };
  2021. var m = {
  2022. cN: "comment",
  2023. b: ";",
  2024. e: "$"
  2025. };
  2026. var g = {
  2027. cN: "variable",
  2028. b: "\\*",
  2029. e: "\\*"
  2030. };
  2031. var n = {
  2032. cN: "keyword",
  2033. b: "[:&]" + k
  2034. };
  2035. var b = {
  2036. b: "\\(",
  2037. e: "\\)",
  2038. c: ["self", a, h].concat(d)
  2039. };
  2040. var e = {
  2041. cN: "quoted",
  2042. b: "['`]\\(",
  2043. e: "\\)",
  2044. c: d.concat([h, g, n, b])
  2045. };
  2046. var c = {
  2047. cN: "quoted",
  2048. b: "\\(quote ",
  2049. e: "\\)",
  2050. k: {
  2051. title: "quote"
  2052. },
  2053. c: d.concat([h, g, n, b])
  2054. };
  2055. var j = {
  2056. cN: "list",
  2057. b: "\\(",
  2058. e: "\\)"
  2059. };
  2060. var f = {
  2061. cN: "body",
  2062. eW: true,
  2063. eE: true
  2064. };
  2065. j.c = [{
  2066. cN: "title",
  2067. b: k
  2068. }, f];
  2069. f.c = [e, c, j, a].concat(d).concat([h, m, g, n]);
  2070. return {
  2071. cI: true,
  2072. i: "[^\\s]",
  2073. c: d.concat([a, h, m, e, c, j])
  2074. }
  2075. }(hljs);
  2076. hljs.LANGUAGES.lua = function (b) {
  2077. var a = "\\[=*\\[";
  2078. var e = "\\]=*\\]";
  2079. var c = {
  2080. b: a,
  2081. e: e,
  2082. c: ["self"]
  2083. };
  2084. var d = [{
  2085. cN: "comment",
  2086. b: "--(?!" + a + ")",
  2087. e: "$"
  2088. }, {
  2089. cN: "comment",
  2090. b: "--" + a,
  2091. e: e,
  2092. c: [c],
  2093. r: 10
  2094. }];
  2095. return {
  2096. l: b.UIR,
  2097. k: {
  2098. keyword: "and break do else elseif end false for if in local nil not or repeat return then true until while",
  2099. built_in: "_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"
  2100. },
  2101. c: d.concat([{
  2102. cN: "function",
  2103. bWK: true,
  2104. e: "\\)",
  2105. k: "function",
  2106. c: [{
  2107. cN: "title",
  2108. b: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"
  2109. }, {
  2110. cN: "params",
  2111. b: "\\(",
  2112. eW: true,
  2113. c: d
  2114. }].concat(d)
  2115. }, b.CNM, b.ASM, b.QSM, {
  2116. cN: "string",
  2117. b: a,
  2118. e: e,
  2119. c: [c],
  2120. r: 10
  2121. }])
  2122. }
  2123. }(hljs);
  2124. hljs.LANGUAGES.markdown = function (a) {
  2125. return {
  2126. cI: true,
  2127. c: [{
  2128. cN: "header",
  2129. b: "^#{1,3}",
  2130. e: "$"
  2131. }, {
  2132. cN: "header",
  2133. b: "^.+?\\n[=-]{2,}$"
  2134. }, {
  2135. b: "<",
  2136. e: ">",
  2137. sL: "xml",
  2138. r: 0
  2139. }, {
  2140. cN: "bullet",
  2141. b: "^([*+-]|(\\d+\\.))\\s+"
  2142. }, {
  2143. cN: "strong",
  2144. b: "[*_]{2}.+?[*_]{2}"
  2145. }, {
  2146. cN: "emphasis",
  2147. b: "\\*.+?\\*"
  2148. }, {
  2149. cN: "emphasis",
  2150. b: "_.+?_",
  2151. r: 0
  2152. }, {
  2153. cN: "blockquote",
  2154. b: "^>\\s+",
  2155. e: "$"
  2156. }, {
  2157. cN: "code",
  2158. b: "`.+?`"
  2159. }, {
  2160. cN: "code",
  2161. b: "^ ",
  2162. e: "$",
  2163. r: 0
  2164. }, {
  2165. cN: "horizontal_rule",
  2166. b: "^-{3,}",
  2167. e: "$"
  2168. }, {
  2169. b: "\\[.+?\\]\\(.+?\\)",
  2170. rB: true,
  2171. c: [{
  2172. cN: "link_label",
  2173. b: "\\[.+\\]"
  2174. }, {
  2175. cN: "link_url",
  2176. b: "\\(",
  2177. e: "\\)",
  2178. eB: true,
  2179. eE: true
  2180. }]
  2181. }]
  2182. }
  2183. }(hljs);
  2184. hljs.LANGUAGES.matlab = function (a) {
  2185. var b = [a.CNM, {
  2186. cN: "string",
  2187. b: "'",
  2188. e: "'",
  2189. c: [a.BE, {
  2190. b: "''"
  2191. }],
  2192. r: 0
  2193. }];
  2194. return {
  2195. k: {
  2196. keyword: "break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",
  2197. built_in: "sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"
  2198. },
  2199. i: '(//|"|#|/\\*|\\s+/\\w+)',
  2200. c: [{
  2201. cN: "function",
  2202. bWK: true,
  2203. e: "$",
  2204. k: "function",
  2205. c: [{
  2206. cN: "title",
  2207. b: a.UIR
  2208. }, {
  2209. cN: "params",
  2210. b: "\\(",
  2211. e: "\\)"
  2212. }, {
  2213. cN: "params",
  2214. b: "\\[",
  2215. e: "\\]"
  2216. }]
  2217. }, {
  2218. cN: "transposed_variable",
  2219. b: "[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",
  2220. e: ""
  2221. }, {
  2222. cN: "matrix",
  2223. b: "\\[",
  2224. e: "\\]'*[\\.']*",
  2225. c: b
  2226. }, {
  2227. cN: "cell",
  2228. b: "\\{",
  2229. e: "\\}'*[\\.']*",
  2230. c: b
  2231. }, {
  2232. cN: "comment",
  2233. b: "\\%",
  2234. e: "$"
  2235. }].concat(b)
  2236. }
  2237. }(hljs);
  2238. hljs.LANGUAGES.mel = function (a) {
  2239. return {
  2240. k: "int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",
  2241. i: "</",
  2242. c: [a.CNM, a.ASM, a.QSM, {
  2243. cN: "string",
  2244. b: "`",
  2245. e: "`",
  2246. c: [a.BE]
  2247. }, {
  2248. cN: "variable",
  2249. b: "\\$\\d",
  2250. r: 5
  2251. }, {
  2252. cN: "variable",
  2253. b: "[\\$\\%\\@\\*](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)"
  2254. }, a.CLCM, a.CBLCLM]
  2255. }
  2256. }(hljs);
  2257. hljs.LANGUAGES.nginx = function (b) {
  2258. var c = [{
  2259. cN: "variable",
  2260. b: "\\$\\d+"
  2261. }, {
  2262. cN: "variable",
  2263. b: "\\${",
  2264. e: "}"
  2265. }, {
  2266. cN: "variable",
  2267. b: "[\\$\\@]" + b.UIR
  2268. }];
  2269. var a = {
  2270. eW: true,
  2271. l: "[a-z/_]+",
  2272. k: {
  2273. built_in: "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"
  2274. },
  2275. r: 0,
  2276. i: "=>",
  2277. c: [b.HCM, {
  2278. cN: "string",
  2279. b: '"',
  2280. e: '"',
  2281. c: [b.BE].concat(c),
  2282. r: 0
  2283. }, {
  2284. cN: "string",
  2285. b: "'",
  2286. e: "'",
  2287. c: [b.BE].concat(c),
  2288. r: 0
  2289. }, {
  2290. cN: "url",
  2291. b: "([a-z]+):/",
  2292. e: "\\s",
  2293. eW: true,
  2294. eE: true
  2295. }, {
  2296. cN: "regexp",
  2297. b: "\\s\\^",
  2298. e: "\\s|{|;",
  2299. rE: true,
  2300. c: [b.BE].concat(c)
  2301. }, {
  2302. cN: "regexp",
  2303. b: "~\\*?\\s+",
  2304. e: "\\s|{|;",
  2305. rE: true,
  2306. c: [b.BE].concat(c)
  2307. }, {
  2308. cN: "regexp",
  2309. b: "\\*(\\.[a-z\\-]+)+",
  2310. c: [b.BE].concat(c)
  2311. }, {
  2312. cN: "regexp",
  2313. b: "([a-z\\-]+\\.)+\\*",
  2314. c: [b.BE].concat(c)
  2315. }, {
  2316. cN: "number",
  2317. b: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
  2318. }, {
  2319. cN: "number",
  2320. b: "\\b\\d+[kKmMgGdshdwy]*\\b",
  2321. r: 0
  2322. }].concat(c)
  2323. };
  2324. return {
  2325. c: [b.HCM, {
  2326. b: b.UIR + "\\s",
  2327. e: ";|{",
  2328. rB: true,
  2329. c: [{
  2330. cN: "title",
  2331. b: b.UIR,
  2332. starts: a
  2333. }]
  2334. }],
  2335. i: "[^\\s\\}]"
  2336. }
  2337. }(hljs);
  2338. hljs.LANGUAGES.objectivec = function (a) {
  2339. var b = {
  2340. keyword: "int float while private char catch export sizeof typedef const struct for union unsigned long volatile static protected bool mutable if public do return goto void enum else break extern class asm case short default double throw register explicit signed typename try this switch continue wchar_t inline readonly assign property protocol self synchronized end synthesize id optional required implementation nonatomic interface super unichar finally dynamic IBOutlet IBAction selector strong weak readonly",
  2341. literal: "false true FALSE TRUE nil YES NO NULL",
  2342. built_in: "NSString NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection class UIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"
  2343. };
  2344. return {
  2345. k: b,
  2346. i: "</",
  2347. c: [a.CLCM, a.CBLCLM, a.CNM, a.QSM, {
  2348. cN: "string",
  2349. b: "'",
  2350. e: "[^\\\\]'",
  2351. i: "[^\\\\][^']"
  2352. }, {
  2353. cN: "preprocessor",
  2354. b: "#import",
  2355. e: "$",
  2356. c: [{
  2357. cN: "title",
  2358. b: '"',
  2359. e: '"'
  2360. }, {
  2361. cN: "title",
  2362. b: "<",
  2363. e: ">"
  2364. }]
  2365. }, {
  2366. cN: "preprocessor",
  2367. b: "#",
  2368. e: "$"
  2369. }, {
  2370. cN: "class",
  2371. bWK: true,
  2372. e: "({|$)",
  2373. k: "interface class protocol implementation",
  2374. c: [{
  2375. cN: "id",
  2376. b: a.UIR
  2377. }]
  2378. }, {
  2379. cN: "variable",
  2380. b: "\\." + a.UIR
  2381. }]
  2382. }
  2383. }(hljs);
  2384. hljs.LANGUAGES.parser3 = function (a) {
  2385. return {
  2386. sL: "xml",
  2387. c: [{
  2388. cN: "comment",
  2389. b: "^#",
  2390. e: "$"
  2391. }, {
  2392. cN: "comment",
  2393. b: "\\^rem{",
  2394. e: "}",
  2395. r: 10,
  2396. c: [{
  2397. b: "{",
  2398. e: "}",
  2399. c: ["self"]
  2400. }]
  2401. }, {
  2402. cN: "preprocessor",
  2403. b: "^@(?:BASE|USE|CLASS|OPTIONS)$",
  2404. r: 10
  2405. }, {
  2406. cN: "title",
  2407. b: "@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"
  2408. }, {
  2409. cN: "variable",
  2410. b: "\\$\\{?[\\w\\-\\.\\:]+\\}?"
  2411. }, {
  2412. cN: "keyword",
  2413. b: "\\^[\\w\\-\\.\\:]+"
  2414. }, {
  2415. cN: "number",
  2416. b: "\\^#[0-9a-fA-F]+"
  2417. }, a.CNM]
  2418. }
  2419. }(hljs);
  2420. hljs.LANGUAGES.perl = function (e) {
  2421. var a = "getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0";
  2422. var d = {
  2423. cN: "subst",
  2424. b: "[$@]\\{",
  2425. e: "\\}",
  2426. k: a,
  2427. r: 10
  2428. };
  2429. var b = {
  2430. cN: "variable",
  2431. b: "\\$\\d"
  2432. };
  2433. var i = {
  2434. cN: "variable",
  2435. b: "[\\$\\%\\@\\*](\\^\\w\\b|#\\w+(\\:\\:\\w+)*|[^\\s\\w{]|{\\w+}|\\w+(\\:\\:\\w*)*)"
  2436. };
  2437. var f = [e.BE, d, b, i];
  2438. var h = {
  2439. b: "->",
  2440. c: [{
  2441. b: e.IR
  2442. }, {
  2443. b: "{",
  2444. e: "}"
  2445. }]
  2446. };
  2447. var g = {
  2448. cN: "comment",
  2449. b: "^(__END__|__DATA__)",
  2450. e: "\\n$",
  2451. r: 5
  2452. };
  2453. var c = [b, i, e.HCM, g, {
  2454. cN: "comment",
  2455. b: "^\\=\\w",
  2456. e: "\\=cut",
  2457. eW: true
  2458. }, h, {
  2459. cN: "string",
  2460. b: "q[qwxr]?\\s*\\(",
  2461. e: "\\)",
  2462. c: f,
  2463. r: 5
  2464. }, {
  2465. cN: "string",
  2466. b: "q[qwxr]?\\s*\\[",
  2467. e: "\\]",
  2468. c: f,
  2469. r: 5
  2470. }, {
  2471. cN: "string",
  2472. b: "q[qwxr]?\\s*\\{",
  2473. e: "\\}",
  2474. c: f,
  2475. r: 5
  2476. }, {
  2477. cN: "string",
  2478. b: "q[qwxr]?\\s*\\|",
  2479. e: "\\|",
  2480. c: f,
  2481. r: 5
  2482. }, {
  2483. cN: "string",
  2484. b: "q[qwxr]?\\s*\\<",
  2485. e: "\\>",
  2486. c: f,
  2487. r: 5
  2488. }, {
  2489. cN: "string",
  2490. b: "qw\\s+q",
  2491. e: "q",
  2492. c: f,
  2493. r: 5
  2494. }, {
  2495. cN: "string",
  2496. b: "'",
  2497. e: "'",
  2498. c: [e.BE],
  2499. r: 0
  2500. }, {
  2501. cN: "string",
  2502. b: '"',
  2503. e: '"',
  2504. c: f,
  2505. r: 0
  2506. }, {
  2507. cN: "string",
  2508. b: "`",
  2509. e: "`",
  2510. c: [e.BE]
  2511. }, {
  2512. cN: "string",
  2513. b: "{\\w+}",
  2514. r: 0
  2515. }, {
  2516. cN: "string",
  2517. b: "-?\\w+\\s*\\=\\>",
  2518. r: 0
  2519. }, {
  2520. cN: "number",
  2521. b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
  2522. r: 0
  2523. }, {
  2524. b: "(" + e.RSR + "|\\b(split|return|print|reverse|grep)\\b)\\s*",
  2525. k: "split return print reverse grep",
  2526. r: 0,
  2527. c: [e.HCM, g, {
  2528. cN: "regexp",
  2529. b: "(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",
  2530. r: 10
  2531. }, {
  2532. cN: "regexp",
  2533. b: "(m|qr)?/",
  2534. e: "/[a-z]*",
  2535. c: [e.BE],
  2536. r: 0
  2537. }]
  2538. }, {
  2539. cN: "sub",
  2540. bWK: true,
  2541. e: "(\\s*\\(.*?\\))?[;{]",
  2542. k: "sub",
  2543. r: 5
  2544. }, {
  2545. cN: "operator",
  2546. b: "-\\w\\b",
  2547. r: 0
  2548. }];
  2549. d.c = c;
  2550. h.c[1].c = c;
  2551. return {
  2552. k: a,
  2553. c: c
  2554. }
  2555. }(hljs);
  2556. hljs.LANGUAGES.php = function (a) {
  2557. var e = {
  2558. cN: "variable",
  2559. b: "\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"
  2560. };
  2561. var b = [a.inherit(a.ASM, {
  2562. i: null
  2563. }), a.inherit(a.QSM, {
  2564. i: null
  2565. }), {
  2566. cN: "string",
  2567. b: 'b"',
  2568. e: '"',
  2569. c: [a.BE]
  2570. }, {
  2571. cN: "string",
  2572. b: "b'",
  2573. e: "'",
  2574. c: [a.BE]
  2575. }];
  2576. var c = [a.CNM, a.BNM];
  2577. var d = {
  2578. cN: "title",
  2579. b: a.UIR
  2580. };
  2581. return {
  2582. cI: true,
  2583. k: "and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return implements parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception php_user_filter default die require __FUNCTION__ enddeclare final try this switch continue endfor endif declare unset true false namespace trait goto instanceof insteadof __DIR__ __NAMESPACE__ __halt_compiler",
  2584. c: [a.CLCM, a.HCM, {
  2585. cN: "comment",
  2586. b: "/\\*",
  2587. e: "\\*/",
  2588. c: [{
  2589. cN: "phpdoc",
  2590. b: "\\s@[A-Za-z]+"
  2591. }]
  2592. }, {
  2593. cN: "comment",
  2594. eB: true,
  2595. b: "__halt_compiler.+?;",
  2596. eW: true
  2597. }, {
  2598. cN: "string",
  2599. b: "<<<['\"]?\\w+['\"]?$",
  2600. e: "^\\w+;",
  2601. c: [a.BE]
  2602. }, {
  2603. cN: "preprocessor",
  2604. b: "<\\?php",
  2605. r: 10
  2606. }, {
  2607. cN: "preprocessor",
  2608. b: "\\?>"
  2609. }, e, {
  2610. cN: "function",
  2611. bWK: true,
  2612. e: "{",
  2613. k: "function",
  2614. i: "\\$|\\[|%",
  2615. c: [d, {
  2616. cN: "params",
  2617. b: "\\(",
  2618. e: "\\)",
  2619. c: ["self", e, a.CBLCLM].concat(b).concat(c)
  2620. }]
  2621. }, {
  2622. cN: "class",
  2623. bWK: true,
  2624. e: "{",
  2625. k: "class",
  2626. i: "[:\\(\\$]",
  2627. c: [{
  2628. bWK: true,
  2629. eW: true,
  2630. k: "extends",
  2631. c: [d]
  2632. }, d]
  2633. }, {
  2634. b: "=>"
  2635. }].concat(b).concat(c)
  2636. }
  2637. }(hljs);
  2638. hljs.LANGUAGES.profile = function (a) {
  2639. return {
  2640. c: [a.CNM, {
  2641. cN: "builtin",
  2642. b: "{",
  2643. e: "}$",
  2644. eB: true,
  2645. eE: true,
  2646. c: [a.ASM, a.QSM],
  2647. r: 0
  2648. }, {
  2649. cN: "filename",
  2650. b: "[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",
  2651. e: ":",
  2652. eE: true
  2653. }, {
  2654. cN: "header",
  2655. b: "(ncalls|tottime|cumtime)",
  2656. e: "$",
  2657. k: "ncalls tottime|10 cumtime|10 filename",
  2658. r: 10
  2659. }, {
  2660. cN: "summary",
  2661. b: "function calls",
  2662. e: "$",
  2663. c: [a.CNM],
  2664. r: 10
  2665. }, a.ASM, a.QSM, {
  2666. cN: "function",
  2667. b: "\\(",
  2668. e: "\\)$",
  2669. c: [{
  2670. cN: "title",
  2671. b: a.UIR,
  2672. r: 0
  2673. }],
  2674. r: 0
  2675. }]
  2676. }
  2677. }(hljs);
  2678. hljs.LANGUAGES.python = function (a) {
  2679. var c = [{
  2680. cN: "string",
  2681. b: "(u|b)?r?'''",
  2682. e: "'''",
  2683. r: 10
  2684. }, {
  2685. cN: "string",
  2686. b: '(u|b)?r?"""',
  2687. e: '"""',
  2688. r: 10
  2689. }, {
  2690. cN: "string",
  2691. b: "(u|r|ur)'",
  2692. e: "'",
  2693. c: [a.BE],
  2694. r: 10
  2695. }, {
  2696. cN: "string",
  2697. b: '(u|r|ur)"',
  2698. e: '"',
  2699. c: [a.BE],
  2700. r: 10
  2701. }, {
  2702. cN: "string",
  2703. b: "(b|br)'",
  2704. e: "'",
  2705. c: [a.BE]
  2706. }, {
  2707. cN: "string",
  2708. b: '(b|br)"',
  2709. e: '"',
  2710. c: [a.BE]
  2711. }].concat([a.ASM, a.QSM]);
  2712. var e = {
  2713. cN: "title",
  2714. b: a.UIR
  2715. };
  2716. var d = {
  2717. cN: "params",
  2718. b: "\\(",
  2719. e: "\\)",
  2720. c: ["self", a.CNM].concat(c)
  2721. };
  2722. var b = {
  2723. bWK: true,
  2724. e: ":",
  2725. i: "[${=;\\n]",
  2726. c: [e, d],
  2727. r: 10
  2728. };
  2729. return {
  2730. k: {
  2731. keyword: "and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10",
  2732. built_in: "None True False Ellipsis NotImplemented"
  2733. },
  2734. i: "(</|->|\\?)",
  2735. c: c.concat([a.HCM, a.inherit(b, {
  2736. cN: "function",
  2737. k: "def"
  2738. }), a.inherit(b, {
  2739. cN: "class",
  2740. k: "class"
  2741. }), a.CNM, {
  2742. cN: "decorator",
  2743. b: "@",
  2744. e: "$"
  2745. }, {
  2746. b: "\\b(print|exec)\\("
  2747. }])
  2748. }
  2749. }(hljs);
  2750. hljs.LANGUAGES.r = function (a) {
  2751. var b = "([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";
  2752. return {
  2753. c: [a.HCM, {
  2754. b: b,
  2755. l: b,
  2756. k: {
  2757. keyword: "function if in break next repeat else for return switch while try tryCatch|10 stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...|10",
  2758. literal: "NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"
  2759. },
  2760. r: 0
  2761. }, {
  2762. cN: "number",
  2763. b: "0[xX][0-9a-fA-F]+[Li]?\\b",
  2764. r: 0
  2765. }, {
  2766. cN: "number",
  2767. b: "\\d+(?:[eE][+\\-]?\\d*)?L\\b",
  2768. r: 0
  2769. }, {
  2770. cN: "number",
  2771. b: "\\d+\\.(?!\\d)(?:i\\b)?",
  2772. r: 0
  2773. }, {
  2774. cN: "number",
  2775. b: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",
  2776. r: 0
  2777. }, {
  2778. cN: "number",
  2779. b: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",
  2780. r: 0
  2781. }, {
  2782. b: "`",
  2783. e: "`",
  2784. r: 0
  2785. }, {
  2786. cN: "string",
  2787. b: '"',
  2788. e: '"',
  2789. c: [a.BE],
  2790. r: 0
  2791. }, {
  2792. cN: "string",
  2793. b: "'",
  2794. e: "'",
  2795. c: [a.BE],
  2796. r: 0
  2797. }]
  2798. }
  2799. }(hljs);
  2800. hljs.LANGUAGES.rib = function (a) {
  2801. return {
  2802. k: "ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",
  2803. i: "</",
  2804. c: [a.HCM, a.CNM, a.ASM, a.QSM]
  2805. }
  2806. }(hljs);
  2807. hljs.LANGUAGES.rsl = function (a) {
  2808. return {
  2809. k: {
  2810. keyword: "float color point normal vector matrix while for if do return else break extern continue",
  2811. built_in: "abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"
  2812. },
  2813. i: "</",
  2814. c: [a.CLCM, a.CBLCLM, a.QSM, a.ASM, a.CNM, {
  2815. cN: "preprocessor",
  2816. b: "#",
  2817. e: "$"
  2818. }, {
  2819. cN: "shader",
  2820. bWK: true,
  2821. e: "\\(",
  2822. k: "surface displacement light volume imager"
  2823. }, {
  2824. cN: "shading",
  2825. bWK: true,
  2826. e: "\\(",
  2827. k: "illuminate illuminance gather"
  2828. }]
  2829. }
  2830. }(hljs);
  2831. hljs.LANGUAGES.ruby = function (e) {
  2832. var a = "[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?";
  2833. var j = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";
  2834. var g = {
  2835. keyword: "and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include"
  2836. };
  2837. var c = {
  2838. cN: "yardoctag",
  2839. b: "@[A-Za-z]+"
  2840. };
  2841. var k = [{
  2842. cN: "comment",
  2843. b: "#",
  2844. e: "$",
  2845. c: [c]
  2846. }, {
  2847. cN: "comment",
  2848. b: "^\\=begin",
  2849. e: "^\\=end",
  2850. c: [c],
  2851. r: 10
  2852. }, {
  2853. cN: "comment",
  2854. b: "^__END__",
  2855. e: "\\n$"
  2856. }];
  2857. var d = {
  2858. cN: "subst",
  2859. b: "#\\{",
  2860. e: "}",
  2861. l: a,
  2862. k: g
  2863. };
  2864. var i = [e.BE, d];
  2865. var b = [{
  2866. cN: "string",
  2867. b: "'",
  2868. e: "'",
  2869. c: i,
  2870. r: 0
  2871. }, {
  2872. cN: "string",
  2873. b: '"',
  2874. e: '"',
  2875. c: i,
  2876. r: 0
  2877. }, {
  2878. cN: "string",
  2879. b: "%[qw]?\\(",
  2880. e: "\\)",
  2881. c: i
  2882. }, {
  2883. cN: "string",
  2884. b: "%[qw]?\\[",
  2885. e: "\\]",
  2886. c: i
  2887. }, {
  2888. cN: "string",
  2889. b: "%[qw]?{",
  2890. e: "}",
  2891. c: i
  2892. }, {
  2893. cN: "string",
  2894. b: "%[qw]?<",
  2895. e: ">",
  2896. c: i,
  2897. r: 10
  2898. }, {
  2899. cN: "string",
  2900. b: "%[qw]?/",
  2901. e: "/",
  2902. c: i,
  2903. r: 10
  2904. }, {
  2905. cN: "string",
  2906. b: "%[qw]?%",
  2907. e: "%",
  2908. c: i,
  2909. r: 10
  2910. }, {
  2911. cN: "string",
  2912. b: "%[qw]?-",
  2913. e: "-",
  2914. c: i,
  2915. r: 10
  2916. }, {
  2917. cN: "string",
  2918. b: "%[qw]?\\|",
  2919. e: "\\|",
  2920. c: i,
  2921. r: 10
  2922. }];
  2923. var h = {
  2924. cN: "function",
  2925. bWK: true,
  2926. e: " |$|;",
  2927. k: "def",
  2928. c: [{
  2929. cN: "title",
  2930. b: j,
  2931. l: a,
  2932. k: g
  2933. }, {
  2934. cN: "params",
  2935. b: "\\(",
  2936. e: "\\)",
  2937. l: a,
  2938. k: g
  2939. }].concat(k)
  2940. };
  2941. var f = k.concat(b.concat([{
  2942. cN: "class",
  2943. bWK: true,
  2944. e: "$|;",
  2945. k: "class module",
  2946. c: [{
  2947. cN: "title",
  2948. b: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",
  2949. r: 0
  2950. }, {
  2951. cN: "inheritance",
  2952. b: "<\\s*",
  2953. c: [{
  2954. cN: "parent",
  2955. b: "(" + e.IR + "::)?" + e.IR
  2956. }]
  2957. }].concat(k)
  2958. }, h, {
  2959. cN: "constant",
  2960. b: "(::)?(\\b[A-Z]\\w*(::)?)+",
  2961. r: 0
  2962. }, {
  2963. cN: "symbol",
  2964. b: ":",
  2965. c: b.concat([{
  2966. b: a
  2967. }]),
  2968. r: 0
  2969. }, {
  2970. cN: "number",
  2971. b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
  2972. r: 0
  2973. }, {
  2974. cN: "number",
  2975. b: "\\?\\w"
  2976. }, {
  2977. cN: "variable",
  2978. b: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
  2979. }, {
  2980. b: "(" + e.RSR + ")\\s*",
  2981. c: k.concat([{
  2982. cN: "regexp",
  2983. b: "/",
  2984. e: "/[a-z]*",
  2985. i: "\\n",
  2986. c: [e.BE]
  2987. }]),
  2988. r: 0
  2989. }]));
  2990. d.c = f;
  2991. h.c[1].c = f;
  2992. return {
  2993. l: a,
  2994. k: g,
  2995. c: f
  2996. }
  2997. }(hljs);
  2998. hljs.LANGUAGES.rust = function (b) {
  2999. var d = {
  3000. cN: "title",
  3001. b: b.UIR
  3002. };
  3003. var e = {
  3004. cN: "string",
  3005. b: '"',
  3006. e: '"',
  3007. c: [b.BE],
  3008. r: 0
  3009. };
  3010. var c = {
  3011. cN: "number",
  3012. b: "\\b(0[xb][A-Za-z0-9_]+|[0-9_]+(\\.[0-9_]+)?([uif](8|16|32|64)?)?)",
  3013. r: 0
  3014. };
  3015. var a = "alt any as assert be bind block bool break char check claim const cont dir do else enum export f32 f64 fail false float fn for i16 i32 i64 i8 if iface impl import in int let log mod mutable native note of prove pure resource ret self str syntax true type u16 u32 u64 u8 uint unchecked unsafe use vec while";
  3016. return {
  3017. k: a,
  3018. i: "</",
  3019. c: [b.CLCM, b.CBLCLM, e, b.ASM, c, {
  3020. cN: "function",
  3021. bWK: true,
  3022. e: "(\\(|<)",
  3023. k: "fn",
  3024. c: [d]
  3025. }, {
  3026. cN: "preprocessor",
  3027. b: "#\\[",
  3028. e: "\\]"
  3029. }, {
  3030. bWK: true,
  3031. e: "(=|<)",
  3032. k: "type",
  3033. c: [d],
  3034. i: "\\S"
  3035. }, {
  3036. bWK: true,
  3037. e: "({|<)",
  3038. k: "iface enum",
  3039. c: [d],
  3040. i: "\\S"
  3041. }]
  3042. }
  3043. }(hljs);
  3044. hljs.LANGUAGES.scala = function (a) {
  3045. var c = {
  3046. cN: "annotation",
  3047. b: "@[A-Za-z]+"
  3048. };
  3049. var b = {
  3050. cN: "string",
  3051. b: 'u?r?"""',
  3052. e: '"""',
  3053. r: 10
  3054. };
  3055. return {
  3056. k: "type yield lazy override def with val var false true sealed abstract private trait object null if for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws",
  3057. c: [{
  3058. cN: "javadoc",
  3059. b: "/\\*\\*",
  3060. e: "\\*/",
  3061. c: [{
  3062. cN: "javadoctag",
  3063. b: "@[A-Za-z]+"
  3064. }],
  3065. r: 10
  3066. }, a.CLCM, a.CBLCLM, a.ASM, a.QSM, b, {
  3067. cN: "class",
  3068. b: "((case )?class |object |trait )",
  3069. e: "({|$)",
  3070. i: ":",
  3071. k: "case class trait object",
  3072. c: [{
  3073. bWK: true,
  3074. k: "extends with",
  3075. r: 10
  3076. }, {
  3077. cN: "title",
  3078. b: a.UIR
  3079. }, {
  3080. cN: "params",
  3081. b: "\\(",
  3082. e: "\\)",
  3083. c: [a.ASM, a.QSM, b, c]
  3084. }]
  3085. }, a.CNM, c]
  3086. }
  3087. }(hljs);
  3088. hljs.LANGUAGES.smalltalk = function (a) {
  3089. var b = "[a-z][a-zA-Z0-9_]*";
  3090. var d = {
  3091. cN: "char",
  3092. b: "\\$.{1}"
  3093. };
  3094. var c = {
  3095. cN: "symbol",
  3096. b: "#" + a.UIR
  3097. };
  3098. return {
  3099. k: "self super nil true false thisContext",
  3100. c: [{
  3101. cN: "comment",
  3102. b: '"',
  3103. e: '"',
  3104. r: 0
  3105. }, a.ASM, {
  3106. cN: "class",
  3107. b: "\\b[A-Z][A-Za-z0-9_]*",
  3108. r: 0
  3109. }, {
  3110. cN: "method",
  3111. b: b + ":"
  3112. }, a.CNM, c, d, {
  3113. cN: "localvars",
  3114. b: "\\|\\s*((" + b + ")\\s*)+\\|"
  3115. }, {
  3116. cN: "array",
  3117. b: "\\#\\(",
  3118. e: "\\)",
  3119. c: [a.ASM, d, a.CNM, c]
  3120. }]
  3121. }
  3122. }(hljs);
  3123. hljs.LANGUAGES.sql = function (a) {
  3124. return {
  3125. cI: true,
  3126. i: "[^\\s]",
  3127. c: [{
  3128. cN: "operator",
  3129. b: "(begin|start|commit|rollback|savepoint|lock|alter|create|drop|rename|call|delete|do|handler|insert|load|replace|select|truncate|update|set|show|pragma|grant)\\b",
  3130. e: ";",
  3131. eW: true,
  3132. k: {
  3133. keyword: "all partial global month current_timestamp using go revoke smallint indicator end-exec disconnect zone with character assertion to add current_user usage input local alter match collate real then rollback get read timestamp session_user not integer bit unique day minute desc insert execute like ilike|2 level decimal drop continue isolation found where constraints domain right national some module transaction relative second connect escape close system_user for deferred section cast current sqlstate allocate intersect deallocate numeric public preserve full goto initially asc no key output collation group by union session both last language constraint column of space foreign deferrable prior connection unknown action commit view or first into float year primary cascaded except restrict set references names table outer open select size are rows from prepare distinct leading create only next inner authorization schema corresponding option declare precision immediate else timezone_minute external varying translation true case exception join hour default double scroll value cursor descriptor values dec fetch procedure delete and false int is describe char as at in varchar null trailing any absolute current_time end grant privileges when cross check write current_date pad begin temporary exec time update catalog user sql date on identity timezone_hour natural whenever interval work order cascade diagnostics nchar having left call do handler load replace truncate start lock show pragma",
  3134. aggregate: "count sum min max avg"
  3135. },
  3136. c: [{
  3137. cN: "string",
  3138. b: "'",
  3139. e: "'",
  3140. c: [a.BE, {
  3141. b: "''"
  3142. }],
  3143. r: 0
  3144. }, {
  3145. cN: "string",
  3146. b: '"',
  3147. e: '"',
  3148. c: [a.BE, {
  3149. b: '""'
  3150. }],
  3151. r: 0
  3152. }, {
  3153. cN: "string",
  3154. b: "`",
  3155. e: "`",
  3156. c: [a.BE]
  3157. }, a.CNM]
  3158. }, a.CBLCLM, {
  3159. cN: "comment",
  3160. b: "--",
  3161. e: "$"
  3162. }]
  3163. }
  3164. }(hljs);
  3165. hljs.LANGUAGES.tex = function (a) {
  3166. var d = {
  3167. cN: "command",
  3168. b: "\\\\[a-zA-Zа-яА-я]+[\\*]?"
  3169. };
  3170. var c = {
  3171. cN: "command",
  3172. b: "\\\\[^a-zA-Zа-яА-я0-9]"
  3173. };
  3174. var b = {
  3175. cN: "special",
  3176. b: "[{}\\[\\]\\&#~]",
  3177. r: 0
  3178. };
  3179. return {
  3180. c: [{
  3181. b: "\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",
  3182. rB: true,
  3183. c: [d, c, {
  3184. cN: "number",
  3185. b: " *=",
  3186. e: "-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",
  3187. eB: true
  3188. }],
  3189. r: 10
  3190. }, d, c, b, {
  3191. cN: "formula",
  3192. b: "\\$\\$",
  3193. e: "\\$\\$",
  3194. c: [d, c, b],
  3195. r: 0
  3196. }, {
  3197. cN: "formula",
  3198. b: "\\$",
  3199. e: "\\$",
  3200. c: [d, c, b],
  3201. r: 0
  3202. }, {
  3203. cN: "comment",
  3204. b: "%",
  3205. e: "$",
  3206. r: 0
  3207. }]
  3208. }
  3209. }(hljs);
  3210. hljs.LANGUAGES.vala = function (a) {
  3211. return {
  3212. k: {
  3213. keyword: "char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",
  3214. built_in: "DBus GLib CCode Gee Object",
  3215. literal: "false true null"
  3216. },
  3217. c: [{
  3218. cN: "class",
  3219. bWK: true,
  3220. e: "{",
  3221. k: "class interface delegate namespace",
  3222. c: [{
  3223. bWK: true,
  3224. k: "extends implements"
  3225. }, {
  3226. cN: "title",
  3227. b: a.UIR
  3228. }]
  3229. }, a.CLCM, a.CBLCLM, {
  3230. cN: "string",
  3231. b: '"""',
  3232. e: '"""',
  3233. r: 5
  3234. }, a.ASM, a.QSM, a.CNM, {
  3235. cN: "preprocessor",
  3236. b: "^#",
  3237. e: "$",
  3238. r: 2
  3239. }, {
  3240. cN: "constant",
  3241. b: " [A-Z_]+ ",
  3242. r: 0
  3243. }]
  3244. }
  3245. }(hljs);
  3246. hljs.LANGUAGES.vbscript = function (a) {
  3247. return {
  3248. cI: true,
  3249. k: {
  3250. keyword: "call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",
  3251. built_in: "lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",
  3252. literal: "true false null nothing empty"
  3253. },
  3254. i: "//",
  3255. c: [{
  3256. cN: "string",
  3257. b: '"',
  3258. e: '"',
  3259. i: "\\n",
  3260. c: [{
  3261. b: '""'
  3262. }],
  3263. r: 0
  3264. }, {
  3265. cN: "comment",
  3266. b: "'",
  3267. e: "$"
  3268. }, a.CNM]
  3269. }
  3270. }(hljs);
  3271. hljs.LANGUAGES.vhdl = function (a) {
  3272. return {
  3273. cI: true,
  3274. k: {
  3275. keyword: "abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",
  3276. typename: "boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"
  3277. },
  3278. i: "{",
  3279. c: [a.CBLCLM, {
  3280. cN: "comment",
  3281. b: "--",
  3282. e: "$"
  3283. }, a.QSM, a.CNM, {
  3284. cN: "literal",
  3285. b: "'(U|X|0|1|Z|W|L|H|-)'",
  3286. c: [a.BE]
  3287. }, {
  3288. cN: "attribute",
  3289. b: "'[A-Za-z](_?[A-Za-z0-9])*",
  3290. c: [a.BE]
  3291. }]
  3292. }
  3293. }(hljs);