thenewboston

BuckysRoom - highlight.pack.js

Aug 25th, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var hljs = new function() {
  2.     function j(v) {
  3.         return  v.replace(/�/gm," ");
  4.         return /*v.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")*/ v;
  5.     }
  6.  
  7.     function t(v) {
  8.         return v.nodeName.toLowerCase()
  9.     }
  10.  
  11.     function h(w, x) {
  12.         var v = w && w.exec(x);
  13.         return v && v.index == 0
  14.     }
  15.  
  16.     function r(w) {
  17.         var v = (w.className + " " + (w.parentNode ? w.parentNode.className : "")).split(/\s+/);
  18.         v = v.map(function(x) {
  19.             return x.replace(/^lang(uage)?-/, "")
  20.         });
  21.         return v.filter(function(x) {
  22.             return i(x) || x == "no-highlight"
  23.         })[0]
  24.     }
  25.  
  26.     function o(x, y) {
  27.         var v = {};
  28.         for (var w in x) {
  29.             v[w] = x[w]
  30.         }
  31.         if (y) {
  32.             for (var w in y) {
  33.                 v[w] = y[w]
  34.             }
  35.         }
  36.         return v
  37.     }
  38.  
  39.     function u(x) {
  40.         var v = [];
  41.         (function w(y, z) {
  42.             for (var A = y.firstChild; A; A = A.nextSibling) {
  43.                 if (A.nodeType == 3) {
  44.                     z += A.nodeValue.length
  45.                 } else {
  46.                     if (t(A) == "br") {
  47.                         z += 1
  48.                     } else {
  49.                         if (A.nodeType == 1) {
  50.                             v.push({
  51.                                 event: "start",
  52.                                 offset: z,
  53.                                 node: A
  54.                             });
  55.                             z = w(A, z);
  56.                             v.push({
  57.                                 event: "stop",
  58.                                 offset: z,
  59.                                 node: A
  60.                             })
  61.                         }
  62.                     }
  63.                 }
  64.             }
  65.             return z
  66.         })(x, 0);
  67.         return v
  68.     }
  69.  
  70.     function q(w, y, C) {
  71.         var x = 0;
  72.         var F = "";
  73.         var z = [];
  74.  
  75.         function B() {
  76.             if (!w.length || !y.length) {
  77.                 return w.length ? w : y
  78.             }
  79.             if (w[0].offset != y[0].offset) {
  80.                 return (w[0].offset < y[0].offset) ? w : y
  81.             }
  82.             return y[0].event == "start" ? w : y
  83.         }
  84.  
  85.         function A(H) {
  86.             function G(I) {
  87.                 return " " + I.nodeName + '="' + j(I.value) + '"'
  88.             }
  89.             F += "<" + t(H) + Array.prototype.map.call(H.attributes, G).join("") + ">"
  90.         }
  91.  
  92.         function E(G) {
  93.             F += "</" + t(G) + ">"
  94.         }
  95.  
  96.         function v(G) {
  97.             (G.event == "start" ? A : E)(G.node)
  98.         }
  99.         while (w.length || y.length) {
  100.             var D = B();
  101.             F += j(C.substr(x, D[0].offset - x));
  102.             x = D[0].offset;
  103.             if (D == w) {
  104.                 z.reverse().forEach(E);
  105.                 do {
  106.                     v(D.splice(0, 1)[0]);
  107.                     D = B()
  108.                 } while (D == w && D.length && D[0].offset == x);
  109.                 z.reverse().forEach(A)
  110.             } else {
  111.                 if (D[0].event == "start") {
  112.                     z.push(D[0].node)
  113.                 } else {
  114.                     z.pop()
  115.                 }
  116.                 v(D.splice(0, 1)[0])
  117.             }
  118.         }
  119.         return F + j(C.substr(x))
  120.     }
  121.  
  122.     function m(y) {
  123.         function v(z) {
  124.             return (z && z.source) || z
  125.         }
  126.  
  127.         function w(A, z) {
  128.             return RegExp(v(A), "m" + (y.cI ? "i" : "") + (z ? "g" : ""))
  129.         }
  130.  
  131.         function x(D, C) {
  132.             if (D.compiled) {
  133.                 return
  134.             }
  135.             D.compiled = true;
  136.             D.k = D.k || D.bK;
  137.             if (D.k) {
  138.                 var z = {};
  139.                 var E = function(G, F) {
  140.                     if (y.cI) {
  141.                         F = F.toLowerCase()
  142.                     }
  143.                     F.split(" ").forEach(function(H) {
  144.                         var I = H.split("|");
  145.                         z[I[0]] = [G, I[1] ? Number(I[1]) : 1]
  146.                     })
  147.                 };
  148.                 if (typeof D.k == "string") {
  149.                     E("keyword", D.k)
  150.                 } else {
  151.                     Object.keys(D.k).forEach(function(F) {
  152.                         E(F, D.k[F])
  153.                     })
  154.                 }
  155.                 D.k = z
  156.             }
  157.             D.lR = w(D.l || /\b[A-Za-z0-9_]+\b/, true);
  158.             if (C) {
  159.                 if (D.bK) {
  160.                     D.b = "\\b(" + D.bK.split(" ").join("|") + ")\\b"
  161.                 }
  162.                 if (!D.b) {
  163.                     D.b = /\B|\b/
  164.                 }
  165.                 D.bR = w(D.b);
  166.                 if (!D.e && !D.eW) {
  167.                     D.e = /\B|\b/
  168.                 }
  169.                 if (D.e) {
  170.                     D.eR = w(D.e)
  171.                 }
  172.                 D.tE = v(D.e) || "";
  173.                 if (D.eW && C.tE) {
  174.                     D.tE += (D.e ? "|" : "") + C.tE
  175.                 }
  176.             }
  177.             if (D.i) {
  178.                 D.iR = w(D.i)
  179.             }
  180.             if (D.r === undefined) {
  181.                 D.r = 1
  182.             }
  183.             if (!D.c) {
  184.                 D.c = []
  185.             }
  186.             var B = [];
  187.             D.c.forEach(function(F) {
  188.                 if (F.v) {
  189.                     F.v.forEach(function(G) {
  190.                         B.push(o(F, G))
  191.                     })
  192.                 } else {
  193.                     B.push(F == "self" ? D : F)
  194.                 }
  195.             });
  196.             D.c = B;
  197.             D.c.forEach(function(F) {
  198.                 x(F, D)
  199.             });
  200.             if (D.starts) {
  201.                 x(D.starts, C)
  202.             }
  203.             var A = D.c.map(function(F) {
  204.                 return F.bK ? "\\.?(" + F.b + ")\\.?" : F.b
  205.             }).concat([D.tE, D.i]).map(v).filter(Boolean);
  206.             D.t = A.length ? w(A.join("|"), true) : {
  207.                 exec: function(F) {
  208.                     return null
  209.                 }
  210.             };
  211.             D.continuation = {}
  212.         }
  213.         x(y)
  214.     }
  215.  
  216.     function c(S, L, J, R) {
  217.         function v(U, V) {
  218.             for (var T = 0; T < V.c.length; T++) {
  219.                 if (h(V.c[T].bR, U)) {
  220.                     return V.c[T]
  221.                 }
  222.             }
  223.         }
  224.  
  225.         function z(U, T) {
  226.             if (h(U.eR, T)) {
  227.                 return U
  228.             }
  229.             if (U.eW) {
  230.                 return z(U.parent, T)
  231.             }
  232.         }
  233.  
  234.         function A(T, U) {
  235.             return !J && h(U.iR, T)
  236.         }
  237.  
  238.         function E(V, T) {
  239.             var U = M.cI ? T[0].toLowerCase() : T[0];
  240.             return V.k.hasOwnProperty(U) && V.k[U]
  241.         }
  242.  
  243.         function w(Z, X, W, V) {
  244.             var T = V ? "" : b.classPrefix,
  245.                 U = '<span class="' + T,
  246.                 Y = W ? "" : "</span>";
  247.             U += Z + '">';
  248.             return U + X + Y
  249.         }
  250.  
  251.         function N() {
  252.             if (!I.k) {
  253.                 return j(C)
  254.             }
  255.             var T = "";
  256.             var W = 0;
  257.             I.lR.lastIndex = 0;
  258.             var U = I.lR.exec(C);
  259.             while (U) {
  260.                 T += j(C.substr(W, U.index - W));
  261.                 var V = E(I, U);
  262.                 if (V) {
  263.                     H += V[1];
  264.                     T += w(V[0], j(U[0]))
  265.                 } else {
  266.                     T += j(U[0])
  267.                 }
  268.                 W = I.lR.lastIndex;
  269.                 U = I.lR.exec(C)
  270.             }
  271.             return T + j(C.substr(W))
  272.         }
  273.  
  274.         function F() {
  275.             if (I.sL && !f[I.sL]) {
  276.                 return j(C)
  277.             }
  278.             var T = I.sL ? c(I.sL, C, true, I.continuation.top) : e(C);
  279.             if (I.r > 0) {
  280.                 H += T.r
  281.             }
  282.             if (I.subLanguageMode == "continuous") {
  283.                 I.continuation.top = T.top
  284.             }
  285.             return w(T.language, T.value, false, true)
  286.         }
  287.  
  288.         function Q() {
  289.             return I.sL !== undefined ? F() : N()
  290.         }
  291.  
  292.         function P(V, U) {
  293.             var T = V.cN ? w(V.cN, "", true) : "";
  294.             if (V.rB) {
  295.                 D += T;
  296.                 C = ""
  297.             } else {
  298.                 if (V.eB) {
  299.                     D += j(U) + T;
  300.                     C = ""
  301.                 } else {
  302.                     D += T;
  303.                     C = U
  304.                 }
  305.             }
  306.             I = Object.create(V, {
  307.                 parent: {
  308.                     value: I
  309.                 }
  310.             })
  311.         }
  312.  
  313.         function G(T, X) {
  314.             C += T;
  315.             if (X === undefined) {
  316.                 D += Q();
  317.                 return 0
  318.             }
  319.             var V = v(X, I);
  320.             if (V) {
  321.                 D += Q();
  322.                 P(V, X);
  323.                 return V.rB ? 0 : X.length
  324.             }
  325.             var W = z(I, X);
  326.             if (W) {
  327.                 var U = I;
  328.                 if (!(U.rE || U.eE)) {
  329.                     C += X
  330.                 }
  331.                 D += Q();
  332.                 do {
  333.                     if (I.cN) {
  334.                         D += "</span>"
  335.                     }
  336.                     H += I.r;
  337.                     I = I.parent
  338.                 } while (I != W.parent);
  339.                 if (U.eE) {
  340.                     D += j(X)
  341.                 }
  342.                 C = "";
  343.                 if (W.starts) {
  344.                     P(W.starts, "")
  345.                 }
  346.                 return U.rE ? 0 : X.length
  347.             }
  348.             if (A(X, I)) {
  349.                 throw new Error('Illegal lexeme "' + X + '" for mode "' + (I.cN || "<unnamed>") + '"')
  350.             }
  351.             C += X;
  352.             return X.length || 1
  353.         }
  354.         var M = i(S);
  355.         if (!M) {
  356.             throw new Error('Unknown language: "' + S + '"')
  357.         }
  358.         m(M);
  359.         var I = R || M;
  360.         var D = "";
  361.         for (var K = I; K != M; K = K.parent) {
  362.             if (K.cN) {
  363.                 D += w(K.cN, D, true)
  364.             }
  365.         }
  366.         var C = "";
  367.         var H = 0;
  368.         try {
  369.             var B, y, x = 0;
  370.             while (true) {
  371.                 I.t.lastIndex = x;
  372.                 B = I.t.exec(L);
  373.                 if (!B) {
  374.                     break
  375.                 }
  376.                 y = G(L.substr(x, B.index - x), B[0]);
  377.                 x = B.index + y
  378.             }
  379.             G(L.substr(x));
  380.             for (var K = I; K.parent; K = K.parent) {
  381.                 if (K.cN) {
  382.                     D += "</span>"
  383.                 }
  384.             }
  385.             return {
  386.                 r: H,
  387.                 value: D,
  388.                 language: S,
  389.                 top: I
  390.             }
  391.         } catch (O) {
  392.             if (O.message.indexOf("Illegal") != -1) {
  393.                 return {
  394.                     r: 0,
  395.                     value: j(L)
  396.                 }
  397.             } else {
  398.                 throw O
  399.             }
  400.         }
  401.     }
  402.  
  403.     function e(y, x) {
  404.         x = x || b.languages || Object.keys(f);
  405.         var v = {
  406.             r: 0,
  407.             value: j(y)
  408.         };
  409.         var w = v;
  410.         x.forEach(function(z) {
  411.             if (!i(z)) {
  412.                 return
  413.             }
  414.             var A = c(z, y, false);
  415.             A.language = z;
  416.             if (A.r > w.r) {
  417.                 w = A
  418.             }
  419.             if (A.r > v.r) {
  420.                 w = v;
  421.                 v = A
  422.             }
  423.         });
  424.         if (w.language) {
  425.             v.second_best = w
  426.         }
  427.         return v
  428.     }
  429.  
  430.     function g(v) {
  431.         if (b.tabReplace) {
  432.             v = v.replace(/^((<[^>]+>|\t)+)/gm, function(w, z, y, x) {
  433.                 return z.replace(/\t/g, b.tabReplace)
  434.             })
  435.         }
  436.         if (b.useBR) {
  437.             v = v.replace(/\n/g, "<br>")
  438.         }
  439.         return v
  440.     }
  441.  
  442.     function p(z) {
  443.         var y = b.useBR ? z.innerHTML.replace(/\n/g, "").replace(/<br>|<br [^>]*>/g, "\n").replace(/<[^>]*>/g, "") : z.textContent;
  444.         var A = r(z);
  445.         if (A == "no-highlight") {
  446.             return
  447.         }
  448.         var v = A ? c(A, y, true) : e(y);
  449.         var w = u(z);
  450.         if (w.length) {
  451.             var x = document.createElementNS("http://www.w3.org/1999/xhtml", "pre");
  452.             x.innerHTML = v.value;
  453.             v.value = q(w, u(x), y)
  454.         }
  455.         v.value = g(v.value);
  456.         z.innerHTML = v.value;
  457.         z.className += " hljs " + (!A && v.language || "");
  458.         z.result = {
  459.             language: v.language,
  460.             re: v.r
  461.         };
  462.         if (v.second_best) {
  463.             z.second_best = {
  464.                 language: v.second_best.language,
  465.                 re: v.second_best.r
  466.             }
  467.         }
  468.     }
  469.     var b = {
  470.         classPrefix: "hljs-",
  471.         tabReplace: null,
  472.         useBR: false,
  473.         languages: undefined
  474.     };
  475.  
  476.     function s(v) {
  477.         b = o(b, v)
  478.     }
  479.  
  480.     function l() {
  481.         if (l.called) {
  482.             return
  483.         }
  484.         l.called = true;
  485.         var v = document.querySelectorAll("pre code");
  486.         Array.prototype.forEach.call(v, p)
  487.     }
  488.  
  489.     function a() {
  490.         addEventListener("DOMContentLoaded", l, false);
  491.         addEventListener("load", l, false)
  492.     }
  493.     var f = {};
  494.     var n = {};
  495.  
  496.     function d(v, x) {
  497.         var w = f[v] = x(this);
  498.         if (w.aliases) {
  499.             w.aliases.forEach(function(y) {
  500.                 n[y] = v
  501.             })
  502.         }
  503.     }
  504.  
  505.     function k() {
  506.         return Object.keys(f)
  507.     }
  508.  
  509.     function i(v) {
  510.         return f[v] || f[n[v]]
  511.     }
  512.     this.highlight = c;
  513.     this.highlightAuto = e;
  514.     this.fixMarkup = g;
  515.     this.highlightBlock = p;
  516.     this.configure = s;
  517.     this.initHighlighting = l;
  518.     this.initHighlightingOnLoad = a;
  519.     this.registerLanguage = d;
  520.     this.listLanguages = k;
  521.     this.getLanguage = i;
  522.     this.inherit = o;
  523.     this.IR = "[a-zA-Z][a-zA-Z0-9_]*";
  524.     this.UIR = "[a-zA-Z_][a-zA-Z0-9_]*";
  525.     this.NR = "\\b\\d+(\\.\\d+)?";
  526.     this.CNR = "(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";
  527.     this.BNR = "\\b(0b[01]+)";
  528.     this.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
  529.     this.BE = {
  530.         b: "\\\\[\\s\\S]",
  531.         r: 0
  532.     };
  533.     this.ASM = {
  534.         cN: "string",
  535.         b: "'",
  536.         e: "'",
  537.         i: "\\n",
  538.         c: [this.BE]
  539.     };
  540.     this.QSM = {
  541.         cN: "string",
  542.         b: '"',
  543.         e: '"',
  544.         i: "\\n",
  545.         c: [this.BE]
  546.     };
  547.     this.PWM = {
  548.         b: /\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/
  549.     };
  550.     this.CLCM = {
  551.         cN: "comment",
  552.         b: "//",
  553.         e: "$",
  554.         c: [this.PWM]
  555.     };
  556.     this.CBCM = {
  557.         cN: "comment",
  558.         b: "/\\*",
  559.         e: "\\*/",
  560.         c: [this.PWM]
  561.     };
  562.     this.HCM = {
  563.         cN: "comment",
  564.         b: "#",
  565.         e: "$",
  566.         c: [this.PWM]
  567.     };
  568.     this.NM = {
  569.         cN: "number",
  570.         b: this.NR,
  571.         r: 0
  572.     };
  573.     this.CNM = {
  574.         cN: "number",
  575.         b: this.CNR,
  576.         r: 0
  577.     };
  578.     this.BNM = {
  579.         cN: "number",
  580.         b: this.BNR,
  581.         r: 0
  582.     };
  583.     this.CSSNM = {
  584.         cN: "number",
  585.         b: this.NR + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
  586.         r: 0
  587.     };
  588.     this.RM = {
  589.         cN: "regexp",
  590.         b: /\//,
  591.         e: /\/[gim]*/,
  592.         i: /\n/,
  593.         c: [this.BE, {
  594.             b: /\[/,
  595.             e: /\]/,
  596.             r: 0,
  597.             c: [this.BE]
  598.         }]
  599.     };
  600.     this.TM = {
  601.         cN: "title",
  602.         b: this.IR,
  603.         r: 0
  604.     };
  605.     this.UTM = {
  606.         cN: "title",
  607.         b: this.UIR,
  608.         r: 0
  609.     }
  610. }();
  611. hljs.registerLanguage("bash", function(b) {
  612.     var a = {
  613.         cN: "variable",
  614.         v: [{
  615.             b: /\$[\w\d#@][\w\d_]*/
  616.         }, {
  617.             b: /\$\{(.*?)\}/
  618.         }]
  619.     };
  620.     var d = {
  621.         cN: "string",
  622.         b: /"/,
  623.         e: /"/,
  624.         c: [b.BE, a, {
  625.             cN: "variable",
  626.             b: /\$\(/,
  627.             e: /\)/,
  628.             c: [b.BE]
  629.         }]
  630.     };
  631.     var c = {
  632.         cN: "string",
  633.         b: /'/,
  634.         e: /'/
  635.     };
  636.     return {
  637.         aliases: ["sh", "zsh"],
  638.         l: /-?[a-z\.]+/,
  639.         k: {
  640.             keyword: "if then else elif fi for break continue while in do done exit return set declare case esac export exec",
  641.             literal: "true false",
  642.             built_in: "printf echo read cd pwd pushd popd dirs let eval unset typeset readonly getopts source shopt caller type hash bind help sudo",
  643.             operator: "-ne -eq -f -d -e -s -l -a"
  644.         },
  645.         c: [{
  646.                 cN: "shebang",
  647.                 b: /^#![^\n]+sh\s*$/,
  648.                 r: 10
  649.             }, {
  650.                 cN: "function",
  651.                 b: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
  652.                 rB: true,
  653.                 c: [b.inherit(b.TM, {
  654.                     b: /\w[\w\d_]*/
  655.                 })],
  656.                 r: 0
  657.             },
  658.             b.HCM, b.NM, d, c, a
  659.         ]
  660.     }
  661. });
  662. hljs.registerLanguage("cs", function(b) {
  663.     var a = "abstract as base bool break byte case catch char checked 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 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 async await ascending descending from get group into join let orderby partial select set value var where yield";
  664.     return {
  665.         aliases: ["csharp"],
  666.         k: a,
  667.         i: /::/,
  668.         c: [{
  669.                 cN: "comment",
  670.                 b: "///",
  671.                 e: "$",
  672.                 rB: true,
  673.                 c: [{
  674.                     cN: "xmlDocTag",
  675.                     v: [{
  676.                         b: "///",
  677.                         r: 0
  678.                     }, {
  679.                         b: "<!--|-->"
  680.                     }, {
  681.                         b: "</?",
  682.                         e: ">"
  683.                     }]
  684.                 }]
  685.             },
  686.             b.CLCM, b.CBCM, {
  687.                 cN: "preprocessor",
  688.                 b: "#",
  689.                 e: "$",
  690.                 k: "if else elif endif define undef warning error line region endregion pragma checksum"
  691.             }, {
  692.                 cN: "string",
  693.                 b: '@"',
  694.                 e: '"',
  695.                 c: [{
  696.                     b: '""'
  697.                 }]
  698.             },
  699.             b.ASM, b.QSM, b.CNM, {
  700.                 bK: "protected public private internal",
  701.                 e: /[{;=]/,
  702.                 k: a,
  703.                 c: [{
  704.                     bK: "class namespace interface",
  705.                     starts: {
  706.                         c: [b.TM]
  707.                     }
  708.                 }, {
  709.                     b: b.IR + "\\s*\\(",
  710.                     rB: true,
  711.                     c: [b.TM]
  712.                 }]
  713.             }
  714.         ]
  715.     }
  716. });
  717. hljs.registerLanguage("ruby", function(f) {
  718.     var j = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";
  719.     var i = "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 attr_reader attr_writer attr_accessor";
  720.     var b = {
  721.         cN: "yardoctag",
  722.         b: "@[A-Za-z]+"
  723.     };
  724.     var c = {
  725.         cN: "value",
  726.         b: "#<",
  727.         e: ">"
  728.     };
  729.     var k = {
  730.         cN: "comment",
  731.         v: [{
  732.             b: "#",
  733.             e: "$",
  734.             c: [b]
  735.         }, {
  736.             b: "^\\=begin",
  737.             e: "^\\=end",
  738.             c: [b],
  739.             r: 10
  740.         }, {
  741.             b: "^__END__",
  742.             e: "\\n$"
  743.         }]
  744.     };
  745.     var d = {
  746.         cN: "subst",
  747.         b: "#\\{",
  748.         e: "}",
  749.         k: i
  750.     };
  751.     var e = {
  752.         cN: "string",
  753.         c: [f.BE, d],
  754.         v: [{
  755.             b: /'/,
  756.             e: /'/
  757.         }, {
  758.             b: /"/,
  759.             e: /"/
  760.         }, {
  761.             b: "%[qw]?\\(",
  762.             e: "\\)"
  763.         }, {
  764.             b: "%[qw]?\\[",
  765.             e: "\\]"
  766.         }, {
  767.             b: "%[qw]?{",
  768.             e: "}"
  769.         }, {
  770.             b: "%[qw]?<",
  771.             e: ">"
  772.         }, {
  773.             b: "%[qw]?/",
  774.             e: "/"
  775.         }, {
  776.             b: "%[qw]?%",
  777.             e: "%"
  778.         }, {
  779.             b: "%[qw]?-",
  780.             e: "-"
  781.         }, {
  782.             b: "%[qw]?\\|",
  783.             e: "\\|"
  784.         }, {
  785.             b: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/
  786.         }]
  787.     };
  788.     var a = {
  789.         cN: "params",
  790.         b: "\\(",
  791.         e: "\\)",
  792.         k: i
  793.     };
  794.     var h = [e, c, k, {
  795.         cN: "class",
  796.         bK: "class module",
  797.         e: "$|;",
  798.         i: /=/,
  799.         c: [f.inherit(f.TM, {
  800.                 b: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"
  801.             }), {
  802.                 cN: "inheritance",
  803.                 b: "<\\s*",
  804.                 c: [{
  805.                     cN: "parent",
  806.                     b: "(" + f.IR + "::)?" + f.IR
  807.                 }]
  808.             },
  809.             k
  810.         ]
  811.     }, {
  812.         cN: "function",
  813.         bK: "def",
  814.         e: " |$|;",
  815.         r: 0,
  816.         c: [f.inherit(f.TM, {
  817.             b: j
  818.         }), a, k]
  819.     }, {
  820.         cN: "constant",
  821.         b: "(::)?(\\b[A-Z]\\w*(::)?)+",
  822.         r: 0
  823.     }, {
  824.         cN: "symbol",
  825.         b: ":",
  826.         c: [e, {
  827.             b: j
  828.         }],
  829.         r: 0
  830.     }, {
  831.         cN: "symbol",
  832.         b: f.UIR + "(\\!|\\?)?:",
  833.         r: 0
  834.     }, {
  835.         cN: "number",
  836.         b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
  837.         r: 0
  838.     }, {
  839.         cN: "variable",
  840.         b: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
  841.     }, {
  842.         b: "(" + f.RSR + ")\\s*",
  843.         c: [c, k, {
  844.             cN: "regexp",
  845.             c: [f.BE, d],
  846.             i: /\n/,
  847.             v: [{
  848.                 b: "/",
  849.                 e: "/[a-z]*"
  850.             }, {
  851.                 b: "%r{",
  852.                 e: "}[a-z]*"
  853.             }, {
  854.                 b: "%r\\(",
  855.                 e: "\\)[a-z]*"
  856.             }, {
  857.                 b: "%r!",
  858.                 e: "![a-z]*"
  859.             }, {
  860.                 b: "%r\\[",
  861.                 e: "\\][a-z]*"
  862.             }]
  863.         }],
  864.         r: 0
  865.     }];
  866.     d.c = h;
  867.     a.c = h;
  868.     var g = [{
  869.         r: 1,
  870.         cN: "output",
  871.         b: "^\\s*=> ",
  872.         e: "$",
  873.         rB: true,
  874.         c: [{
  875.             cN: "status",
  876.             b: "^\\s*=>"
  877.         }, {
  878.             b: " ",
  879.             e: "$",
  880.             c: h
  881.         }]
  882.     }, {
  883.         r: 1,
  884.         cN: "input",
  885.         b: "^[^ ][^=>]*>+ ",
  886.         e: "$",
  887.         rB: true,
  888.         c: [{
  889.             cN: "prompt",
  890.             b: "^[^ ][^=>]*>+"
  891.         }, {
  892.             b: " ",
  893.             e: "$",
  894.             c: h
  895.         }]
  896.     }];
  897.     return {
  898.         aliases: ["rb", "gemspec", "podspec", "thor", "irb"],
  899.         k: i,
  900.         c: g.concat(h)
  901.     }
  902. });
  903. hljs.registerLanguage("ruleslanguage", function(a) {
  904.     return {
  905.         k: {
  906.             keyword: "BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",
  907.             built_in: "IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"
  908.         },
  909.         c: [a.CLCM, a.CBCM, a.ASM, a.QSM, a.CNM, {
  910.             cN: "array",
  911.             b: "#[a-zA-Z .]+"
  912.         }]
  913.     }
  914. });
  915. hljs.registerLanguage("diff", function(a) {
  916.     return {
  917.         aliases: ["patch"],
  918.         c: [{
  919.             cN: "chunk",
  920.             r: 10,
  921.             v: [{
  922.                 b: /^\@\@ +\-\d+,\d+ +\+\d+,\d+ +\@\@$/
  923.             }, {
  924.                 b: /^\*\*\* +\d+,\d+ +\*\*\*\*$/
  925.             }, {
  926.                 b: /^\-\-\- +\d+,\d+ +\-\-\-\-$/
  927.             }]
  928.         }, {
  929.             cN: "header",
  930.             v: [{
  931.                 b: /Index: /,
  932.                 e: /$/
  933.             }, {
  934.                 b: /=====/,
  935.                 e: /=====$/
  936.             }, {
  937.                 b: /^\-\-\-/,
  938.                 e: /$/
  939.             }, {
  940.                 b: /^\*{3} /,
  941.                 e: /$/
  942.             }, {
  943.                 b: /^\+\+\+/,
  944.                 e: /$/
  945.             }, {
  946.                 b: /\*{5}/,
  947.                 e: /\*{5}$/
  948.             }]
  949.         }, {
  950.             cN: "addition",
  951.             b: "^\\+",
  952.             e: "$"
  953.         }, {
  954.             cN: "deletion",
  955.             b: "^\\-",
  956.             e: "$"
  957.         }, {
  958.             cN: "change",
  959.             b: "^\\!",
  960.             e: "$"
  961.         }]
  962.     }
  963. });
  964. hljs.registerLanguage("javascript", function(a) {
  965.     return {
  966.         aliases: ["js"],
  967.         k: {
  968.             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 class",
  969.             literal: "true false null undefined NaN Infinity",
  970.             built_in: "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"
  971.         },
  972.         c: [{
  973.                 cN: "pi",
  974.                 b: /^\s*('|")use strict('|")/,
  975.                 r: 10
  976.             },
  977.             a.ASM, a.QSM, a.CLCM, a.CBCM, a.CNM, {
  978.                 b: "(" + a.RSR + "|\\b(case|return|throw)\\b)\\s*",
  979.                 k: "return throw case",
  980.                 c: [a.CLCM, a.CBCM, a.RM, {
  981.                     b: /</,
  982.                     e: />;/,
  983.                     r: 0,
  984.                     sL: "xml"
  985.                 }],
  986.                 r: 0
  987.             }, {
  988.                 cN: "function",
  989.                 bK: "function",
  990.                 e: /\{/,
  991.                 eE: true,
  992.                 c: [a.inherit(a.TM, {
  993.                     b: /[A-Za-z$_][0-9A-Za-z$_]*/
  994.                 }), {
  995.                     cN: "params",
  996.                     b: /\(/,
  997.                     e: /\)/,
  998.                     c: [a.CLCM, a.CBCM],
  999.                     i: /["'\(]/
  1000.                 }],
  1001.                 i: /\[|%/
  1002.             }, {
  1003.                 b: /\$[(.]/
  1004.             }, {
  1005.                 b: "\\." + a.IR,
  1006.                 r: 0
  1007.             }
  1008.         ]
  1009.     }
  1010. });
  1011. hljs.registerLanguage("xml", function(a) {
  1012.     var c = "[A-Za-z0-9\\._:-]+";
  1013.     var d = {
  1014.         b: /<\?(php)?(?!\w)/,
  1015.         e: /\?>/,
  1016.         sL: "php",
  1017.         subLanguageMode: "continuous"
  1018.     };
  1019.     var b = {
  1020.         eW: true,
  1021.         i: /</,
  1022.         r: 0,
  1023.         c: [d, {
  1024.             cN: "attribute",
  1025.             b: c,
  1026.             r: 0
  1027.         }, {
  1028.             b: "=",
  1029.             r: 0,
  1030.             c: [{
  1031.                 cN: "value",
  1032.                 v: [{
  1033.                     b: /"/,
  1034.                     e: /"/
  1035.                 }, {
  1036.                     b: /'/,
  1037.                     e: /'/
  1038.                 }, {
  1039.                     b: /[^\s\/>]+/
  1040.                 }]
  1041.             }]
  1042.         }]
  1043.     };
  1044.     return {
  1045.         aliases: ["html", "xhtml", "rss", "atom", "xsl", "plist"],
  1046.         cI: true,
  1047.         c: [{
  1048.                 cN: "doctype",
  1049.                 b: "<!DOCTYPE",
  1050.                 e: ">",
  1051.                 r: 10,
  1052.                 c: [{
  1053.                     b: "\\[",
  1054.                     e: "\\]"
  1055.                 }]
  1056.             }, {
  1057.                 cN: "comment",
  1058.                 b: "<!--",
  1059.                 e: "-->",
  1060.                 r: 10
  1061.             }, {
  1062.                 cN: "cdata",
  1063.                 b: "<\\!\\[CDATA\\[",
  1064.                 e: "\\]\\]>",
  1065.                 r: 10
  1066.             }, {
  1067.                 cN: "tag",
  1068.                 b: "<style(?=\\s|>|$)",
  1069.                 e: ">",
  1070.                 k: {
  1071.                     title: "style"
  1072.                 },
  1073.                 c: [b],
  1074.                 starts: {
  1075.                     e: "</style>",
  1076.                     rE: true,
  1077.                     sL: "css"
  1078.                 }
  1079.             }, {
  1080.                 cN: "tag",
  1081.                 b: "<script(?=\\s|>|$)",
  1082.                 e: ">",
  1083.                 k: {
  1084.                     title: "script"
  1085.                 },
  1086.                 c: [b],
  1087.                 starts: {
  1088.                     e: "<\/script>",
  1089.                     rE: true,
  1090.                     sL: "javascript"
  1091.                 }
  1092.             }, {
  1093.                 b: "<%",
  1094.                 e: "%>",
  1095.                 sL: "vbscript"
  1096.             },
  1097.             d, {
  1098.                 cN: "pi",
  1099.                 b: /<\?\w+/,
  1100.                 e: /\?>/,
  1101.                 r: 10
  1102.             }, {
  1103.                 cN: "tag",
  1104.                 b: "</?",
  1105.                 e: "/?>",
  1106.                 c: [{
  1107.                         cN: "title",
  1108.                         b: "[^ /><]+",
  1109.                         r: 0
  1110.                     },
  1111.                     b
  1112.                 ]
  1113.             }
  1114.         ]
  1115.     }
  1116. });
  1117. hljs.registerLanguage("markdown", function(a) {
  1118.     return {
  1119.         aliases: ["md", "mkdown", "mkd"],
  1120.         c: [{
  1121.             cN: "header",
  1122.             v: [{
  1123.                 b: "^#{1,6}",
  1124.                 e: "$"
  1125.             }, {
  1126.                 b: "^.+?\\n[=-]{2,}$"
  1127.             }]
  1128.         }, {
  1129.             b: "<",
  1130.             e: ">",
  1131.             sL: "xml",
  1132.             r: 0
  1133.         }, {
  1134.             cN: "bullet",
  1135.             b: "^([*+-]|(\\d+\\.))\\s+"
  1136.         }, {
  1137.             cN: "strong",
  1138.             b: "[*_]{2}.+?[*_]{2}"
  1139.         }, {
  1140.             cN: "emphasis",
  1141.             v: [{
  1142.                 b: "\\*.+?\\*"
  1143.             }, {
  1144.                 b: "_.+?_",
  1145.                 r: 0
  1146.             }]
  1147.         }, {
  1148.             cN: "blockquote",
  1149.             b: "^>\\s+",
  1150.             e: "$"
  1151.         }, {
  1152.             cN: "code",
  1153.             v: [{
  1154.                 b: "`.+?`"
  1155.             }, {
  1156.                 b: "^( {4}|\t)",
  1157.                 e: "$",
  1158.                 r: 0
  1159.             }]
  1160.         }, {
  1161.             cN: "horizontal_rule",
  1162.             b: "^[-\\*]{3,}",
  1163.             e: "$"
  1164.         }, {
  1165.             b: "\\[.+?\\][\\(\\[].+?[\\)\\]]",
  1166.             rB: true,
  1167.             c: [{
  1168.                 cN: "link_label",
  1169.                 b: "\\[",
  1170.                 e: "\\]",
  1171.                 eB: true,
  1172.                 rE: true,
  1173.                 r: 0
  1174.             }, {
  1175.                 cN: "link_url",
  1176.                 b: "\\]\\(",
  1177.                 e: "\\)",
  1178.                 eB: true,
  1179.                 eE: true
  1180.             }, {
  1181.                 cN: "link_reference",
  1182.                 b: "\\]\\[",
  1183.                 e: "\\]",
  1184.                 eB: true,
  1185.                 eE: true
  1186.             }],
  1187.             r: 10
  1188.         }, {
  1189.             b: "^\\[.+\\]:",
  1190.             e: "$",
  1191.             rB: true,
  1192.             c: [{
  1193.                 cN: "link_reference",
  1194.                 b: "\\[",
  1195.                 e: "\\]",
  1196.                 eB: true,
  1197.                 eE: true
  1198.             }, {
  1199.                 cN: "link_url",
  1200.                 b: "\\s",
  1201.                 e: "$"
  1202.             }]
  1203.         }]
  1204.     }
  1205. });
  1206. hljs.registerLanguage("css", function(a) {
  1207.     var b = "[a-zA-Z-][a-zA-Z0-9_-]*";
  1208.     var c = {
  1209.         cN: "function",
  1210.         b: b + "\\(",
  1211.         rB: true,
  1212.         eE: true,
  1213.         e: "\\("
  1214.     };
  1215.     return {
  1216.         cI: true,
  1217.         i: "[=/|']",
  1218.         c: [a.CBCM, {
  1219.             cN: "id",
  1220.             b: "\\#[A-Za-z0-9_-]+"
  1221.         }, {
  1222.             cN: "class",
  1223.             b: "\\.[A-Za-z0-9_-]+",
  1224.             r: 0
  1225.         }, {
  1226.             cN: "attr_selector",
  1227.             b: "\\[",
  1228.             e: "\\]",
  1229.             i: "$"
  1230.         }, {
  1231.             cN: "pseudo",
  1232.             b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
  1233.         }, {
  1234.             cN: "at_rule",
  1235.             b: "@(font-face|page)",
  1236.             l: "[a-z-]+",
  1237.             k: "font-face page"
  1238.         }, {
  1239.             cN: "at_rule",
  1240.             b: "@",
  1241.             e: "[{;]",
  1242.             c: [{
  1243.                 cN: "keyword",
  1244.                 b: /\S+/
  1245.             }, {
  1246.                 b: /\s/,
  1247.                 eW: true,
  1248.                 eE: true,
  1249.                 r: 0,
  1250.                 c: [c, a.ASM, a.QSM, a.CSSNM]
  1251.             }]
  1252.         }, {
  1253.             cN: "tag",
  1254.             b: b,
  1255.             r: 0
  1256.         }, {
  1257.             cN: "rules",
  1258.             b: "{",
  1259.             e: "}",
  1260.             i: "[^\\s]",
  1261.             r: 0,
  1262.             c: [a.CBCM, {
  1263.                 cN: "rule",
  1264.                 b: "[^\\s]",
  1265.                 rB: true,
  1266.                 e: ";",
  1267.                 eW: true,
  1268.                 c: [{
  1269.                     cN: "attribute",
  1270.                     b: "[A-Z\\_\\.\\-]+",
  1271.                     e: ":",
  1272.                     eE: true,
  1273.                     i: "[^\\s]",
  1274.                     starts: {
  1275.                         cN: "value",
  1276.                         eW: true,
  1277.                         eE: true,
  1278.                         c: [c, a.CSSNM, a.QSM, a.ASM, a.CBCM, {
  1279.                             cN: "hexcolor",
  1280.                             b: "#[0-9A-Fa-f]+"
  1281.                         }, {
  1282.                             cN: "important",
  1283.                             b: "!important"
  1284.                         }]
  1285.                     }
  1286.                 }]
  1287.             }]
  1288.         }]
  1289.     }
  1290. });
  1291. hljs.registerLanguage("http", function(a) {
  1292.     return {
  1293.         i: "\\S",
  1294.         c: [{
  1295.             cN: "status",
  1296.             b: "^HTTP/[0-9\\.]+",
  1297.             e: "$",
  1298.             c: [{
  1299.                 cN: "number",
  1300.                 b: "\\b\\d{3}\\b"
  1301.             }]
  1302.         }, {
  1303.             cN: "request",
  1304.             b: "^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",
  1305.             rB: true,
  1306.             e: "$",
  1307.             c: [{
  1308.                 cN: "string",
  1309.                 b: " ",
  1310.                 e: " ",
  1311.                 eB: true,
  1312.                 eE: true
  1313.             }]
  1314.         }, {
  1315.             cN: "attribute",
  1316.             b: "^\\w",
  1317.             e: ": ",
  1318.             eE: true,
  1319.             i: "\\n|\\s|=",
  1320.             starts: {
  1321.                 cN: "string",
  1322.                 e: "$"
  1323.             }
  1324.         }, {
  1325.             b: "\\n\\n",
  1326.             starts: {
  1327.                 sL: "",
  1328.                 eW: true
  1329.             }
  1330.         }]
  1331.     }
  1332. });
  1333. hljs.registerLanguage("java", function(b) {
  1334.     var a = "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";
  1335.     return {
  1336.         aliases: ["jsp"],
  1337.         k: a,
  1338.         i: /<\//,
  1339.         c: [{
  1340.                 cN: "javadoc",
  1341.                 b: "/\\*\\*",
  1342.                 e: "\\*/",
  1343.                 c: [{
  1344.                     cN: "javadoctag",
  1345.                     b: "(^|\\s)@[A-Za-z]+"
  1346.                 }],
  1347.                 r: 10
  1348.             },
  1349.             b.CLCM, b.CBCM, b.ASM, b.QSM, {
  1350.                 bK: "protected public private",
  1351.                 e: /[{;=]/,
  1352.                 k: a,
  1353.                 c: [{
  1354.                     cN: "class",
  1355.                     bK: "class interface",
  1356.                     eW: true,
  1357.                     eE: true,
  1358.                     i: /[:"\[\]]/,
  1359.                     c: [{
  1360.                             bK: "extends implements",
  1361.                             r: 10
  1362.                         },
  1363.                         b.UTM
  1364.                     ]
  1365.                 }, {
  1366.                     b: b.UIR + "\\s*\\(",
  1367.                     rB: true,
  1368.                     c: [b.UTM]
  1369.                 }]
  1370.             },
  1371.             b.CNM, {
  1372.                 cN: "annotation",
  1373.                 b: "@[A-Za-z]+"
  1374.             }
  1375.         ]
  1376.     }
  1377. });
  1378. hljs.registerLanguage("php", function(b) {
  1379.     var e = {
  1380.         cN: "variable",
  1381.         b: "(\\$|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"
  1382.     };
  1383.     var a = {
  1384.         cN: "preprocessor",
  1385.         b: /<\?(php)?|\?>/
  1386.     };
  1387.     var c = {
  1388.         cN: "string",
  1389.         c: [b.BE, a],
  1390.         v: [{
  1391.                 b: 'b"',
  1392.                 e: '"'
  1393.             }, {
  1394.                 b: "b'",
  1395.                 e: "'"
  1396.             },
  1397.             b.inherit(b.ASM, {
  1398.                 i: null
  1399.             }), b.inherit(b.QSM, {
  1400.                 i: null
  1401.             })
  1402.         ]
  1403.     };
  1404.     var d = {
  1405.         v: [b.BNM, b.CNM]
  1406.     };
  1407.     return {
  1408.         aliases: ["php3", "php4", "php5", "php6"],
  1409.         cI: true,
  1410.         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 parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",
  1411.         c: [b.CLCM, b.HCM, {
  1412.                 cN: "comment",
  1413.                 b: "/\\*",
  1414.                 e: "\\*/",
  1415.                 c: [{
  1416.                         cN: "phpdoc",
  1417.                         b: "\\s@[A-Za-z]+"
  1418.                     },
  1419.                     a
  1420.                 ]
  1421.             }, {
  1422.                 cN: "comment",
  1423.                 b: "__halt_compiler.+?;",
  1424.                 eW: true,
  1425.                 k: "__halt_compiler",
  1426.                 l: b.UIR
  1427.             }, {
  1428.                 cN: "string",
  1429.                 b: "<<<['\"]?\\w+['\"]?$",
  1430.                 e: "^\\w+;",
  1431.                 c: [b.BE]
  1432.             },
  1433.             a, e, {
  1434.                 cN: "function",
  1435.                 bK: "function",
  1436.                 e: /[;{]/,
  1437.                 eE: true,
  1438.                 i: "\\$|\\[|%",
  1439.                 c: [b.UTM, {
  1440.                     cN: "params",
  1441.                     b: "\\(",
  1442.                     e: "\\)",
  1443.                     c: ["self", e, b.CBCM, c, d]
  1444.                 }]
  1445.             }, {
  1446.                 cN: "class",
  1447.                 bK: "class interface",
  1448.                 e: "{",
  1449.                 eE: true,
  1450.                 i: /[:\(\$"]/,
  1451.                 c: [{
  1452.                         bK: "extends implements",
  1453.                         r: 10
  1454.                     },
  1455.                     b.UTM
  1456.                 ]
  1457.             }, {
  1458.                 bK: "namespace",
  1459.                 e: ";",
  1460.                 i: /[\.']/,
  1461.                 c: [b.UTM]
  1462.             }, {
  1463.                 bK: "use",
  1464.                 e: ";",
  1465.                 c: [b.UTM]
  1466.             }, {
  1467.                 b: "=>"
  1468.             },
  1469.             c, d
  1470.         ]
  1471.     }
  1472. });
  1473. hljs.registerLanguage("python", function(a) {
  1474.     var f = {
  1475.         cN: "prompt",
  1476.         b: /^(>>>|\.\.\.) /
  1477.     };
  1478.     var b = {
  1479.         cN: "string",
  1480.         c: [a.BE],
  1481.         v: [{
  1482.                 b: /(u|b)?r?'''/,
  1483.                 e: /'''/,
  1484.                 c: [f],
  1485.                 r: 10
  1486.             }, {
  1487.                 b: /(u|b)?r?"""/,
  1488.                 e: /"""/,
  1489.                 c: [f],
  1490.                 r: 10
  1491.             }, {
  1492.                 b: /(u|r|ur)'/,
  1493.                 e: /'/,
  1494.                 r: 10
  1495.             }, {
  1496.                 b: /(u|r|ur)"/,
  1497.                 e: /"/,
  1498.                 r: 10
  1499.             }, {
  1500.                 b: /(b|br)'/,
  1501.                 e: /'/
  1502.             }, {
  1503.                 b: /(b|br)"/,
  1504.                 e: /"/
  1505.             },
  1506.             a.ASM, a.QSM
  1507.         ]
  1508.     };
  1509.     var d = {
  1510.         cN: "number",
  1511.         r: 0,
  1512.         v: [{
  1513.             b: a.BNR + "[lLjJ]?"
  1514.         }, {
  1515.             b: "\\b(0o[0-7]+)[lLjJ]?"
  1516.         }, {
  1517.             b: a.CNR + "[lLjJ]?"
  1518.         }]
  1519.     };
  1520.     var e = {
  1521.         cN: "params",
  1522.         b: /\(/,
  1523.         e: /\)/,
  1524.         c: ["self", f, d, b]
  1525.     };
  1526.     var c = {
  1527.         e: /:/,
  1528.         i: /[${=;\n]/,
  1529.         c: [a.UTM, e]
  1530.     };
  1531.     return {
  1532.         aliases: ["py", "gyp"],
  1533.         k: {
  1534.             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 None True False",
  1535.             built_in: "Ellipsis NotImplemented"
  1536.         },
  1537.         i: /(<\/|->|\?)/,
  1538.         c: [f, d, b, a.HCM, a.inherit(c, {
  1539.             cN: "function",
  1540.             bK: "def",
  1541.             r: 10
  1542.         }), a.inherit(c, {
  1543.             cN: "class",
  1544.             bK: "class"
  1545.         }), {
  1546.             cN: "decorator",
  1547.             b: /@/,
  1548.             e: /$/
  1549.         }, {
  1550.             b: /\b(print|exec)\(/
  1551.         }]
  1552.     }
  1553. });
  1554. hljs.registerLanguage("actionscript", function(a) {
  1555.     var c = "[a-zA-Z_$][a-zA-Z0-9_$]*";
  1556.     var b = "([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";
  1557.     var d = {
  1558.         cN: "rest_arg",
  1559.         b: "[.]{3}",
  1560.         e: c,
  1561.         r: 10
  1562.     };
  1563.     return {
  1564.         aliases: ["as"],
  1565.         k: {
  1566.             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",
  1567.             literal: "true false null undefined"
  1568.         },
  1569.         c: [a.ASM, a.QSM, a.CLCM, a.CBCM, a.CNM, {
  1570.             cN: "package",
  1571.             bK: "package",
  1572.             e: "{",
  1573.             c: [a.TM]
  1574.         }, {
  1575.             cN: "class",
  1576.             bK: "class interface",
  1577.             e: "{",
  1578.             eE: true,
  1579.             c: [{
  1580.                     bK: "extends implements"
  1581.                 },
  1582.                 a.TM
  1583.             ]
  1584.         }, {
  1585.             cN: "preprocessor",
  1586.             bK: "import include",
  1587.             e: ";"
  1588.         }, {
  1589.             cN: "function",
  1590.             bK: "function",
  1591.             e: "[{;]",
  1592.             eE: true,
  1593.             i: "\\S",
  1594.             c: [a.TM, {
  1595.                 cN: "params",
  1596.                 b: "\\(",
  1597.                 e: "\\)",
  1598.                 c: [a.ASM, a.QSM, a.CLCM, a.CBCM, d]
  1599.             }, {
  1600.                 cN: "type",
  1601.                 b: ":",
  1602.                 e: b,
  1603.                 r: 10
  1604.             }]
  1605.         }]
  1606.     }
  1607. });
  1608. hljs.registerLanguage("sql", function(a) {
  1609.     var b = {
  1610.         cN: "comment",
  1611.         b: "--",
  1612.         e: "$"
  1613.     };
  1614.     return {
  1615.         cI: true,
  1616.         i: /[<>]/,
  1617.         c: [{
  1618.                 cN: "operator",
  1619.                 bK: "begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup",
  1620.                 e: /;/,
  1621.                 eW: true,
  1622.                 k: {
  1623.                     keyword: "abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",
  1624.                     literal: "true false null",
  1625.                     built_in: "array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"
  1626.                 },
  1627.                 c: [{
  1628.                         cN: "string",
  1629.                         b: "'",
  1630.                         e: "'",
  1631.                         c: [a.BE, {
  1632.                             b: "''"
  1633.                         }]
  1634.                     }, {
  1635.                         cN: "string",
  1636.                         b: '"',
  1637.                         e: '"',
  1638.                         c: [a.BE, {
  1639.                             b: '""'
  1640.                         }]
  1641.                     }, {
  1642.                         cN: "string",
  1643.                         b: "`",
  1644.                         e: "`",
  1645.                         c: [a.BE]
  1646.                     },
  1647.                     a.CNM, a.CBCM, b
  1648.                 ]
  1649.             },
  1650.             a.CBCM, b
  1651.         ]
  1652.     }
  1653. });
  1654. hljs.registerLanguage("ini", function(a) {
  1655.     return {
  1656.         cI: true,
  1657.         i: /\S/,
  1658.         c: [{
  1659.             cN: "comment",
  1660.             b: ";",
  1661.             e: "$"
  1662.         }, {
  1663.             cN: "title",
  1664.             b: "^\\[",
  1665.             e: "\\]"
  1666.         }, {
  1667.             cN: "setting",
  1668.             b: "^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",
  1669.             e: "$",
  1670.             c: [{
  1671.                 cN: "value",
  1672.                 eW: true,
  1673.                 k: "on off true false yes no",
  1674.                 c: [a.QSM, a.NM],
  1675.                 r: 0
  1676.             }]
  1677.         }]
  1678.     }
  1679. });
  1680. hljs.registerLanguage("vbnet", function(a) {
  1681.     return {
  1682.         aliases: ["vb"],
  1683.         cI: true,
  1684.         k: {
  1685.             keyword: "addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",
  1686.             built_in: "boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",
  1687.             literal: "true false nothing"
  1688.         },
  1689.         i: "//|{|}|endif|gosub|variant|wend",
  1690.         c: [a.inherit(a.QSM, {
  1691.                 c: [{
  1692.                     b: '""'
  1693.                 }]
  1694.             }), {
  1695.                 cN: "comment",
  1696.                 b: "'",
  1697.                 e: "$",
  1698.                 rB: true,
  1699.                 c: [{
  1700.                     cN: "xmlDocTag",
  1701.                     b: "'''|<!--|-->"
  1702.                 }, {
  1703.                     cN: "xmlDocTag",
  1704.                     b: "</?",
  1705.                     e: ">"
  1706.                 }]
  1707.             },
  1708.             a.CNM, {
  1709.                 cN: "preprocessor",
  1710.                 b: "#",
  1711.                 e: "$",
  1712.                 k: "if else elseif end region externalsource"
  1713.             }
  1714.         ]
  1715.     }
  1716. });
  1717. hljs.registerLanguage("perl", function(c) {
  1718.     var d = "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 or ne m|0 break given say state when";
  1719.     var f = {
  1720.         cN: "subst",
  1721.         b: "[$@]\\{",
  1722.         e: "\\}",
  1723.         k: d
  1724.     };
  1725.     var g = {
  1726.         b: "->{",
  1727.         e: "}"
  1728.     };
  1729.     var a = {
  1730.         cN: "variable",
  1731.         v: [{
  1732.             b: /\$\d/
  1733.         }, {
  1734.             b: /[\$\%\@](\^\w\b|#\w+(\:\:\w+)*|{\w+}|\w+(\:\:\w*)*)/
  1735.         }, {
  1736.             b: /[\$\%\@][^\s\w{]/,
  1737.             r: 0
  1738.         }]
  1739.     };
  1740.     var e = {
  1741.         cN: "comment",
  1742.         b: "^(__END__|__DATA__)",
  1743.         e: "\\n$",
  1744.         r: 5
  1745.     };
  1746.     var h = [c.BE, f, a];
  1747.     var b = [a, c.HCM, e, {
  1748.             cN: "comment",
  1749.             b: "^\\=\\w",
  1750.             e: "\\=cut",
  1751.             eW: true
  1752.         },
  1753.         g, {
  1754.             cN: "string",
  1755.             c: h,
  1756.             v: [{
  1757.                 b: "q[qwxr]?\\s*\\(",
  1758.                 e: "\\)",
  1759.                 r: 5
  1760.             }, {
  1761.                 b: "q[qwxr]?\\s*\\[",
  1762.                 e: "\\]",
  1763.                 r: 5
  1764.             }, {
  1765.                 b: "q[qwxr]?\\s*\\{",
  1766.                 e: "\\}",
  1767.                 r: 5
  1768.             }, {
  1769.                 b: "q[qwxr]?\\s*\\|",
  1770.                 e: "\\|",
  1771.                 r: 5
  1772.             }, {
  1773.                 b: "q[qwxr]?\\s*\\<",
  1774.                 e: "\\>",
  1775.                 r: 5
  1776.             }, {
  1777.                 b: "qw\\s+q",
  1778.                 e: "q",
  1779.                 r: 5
  1780.             }, {
  1781.                 b: "'",
  1782.                 e: "'",
  1783.                 c: [c.BE]
  1784.             }, {
  1785.                 b: '"',
  1786.                 e: '"'
  1787.             }, {
  1788.                 b: "`",
  1789.                 e: "`",
  1790.                 c: [c.BE]
  1791.             }, {
  1792.                 b: "{\\w+}",
  1793.                 c: [],
  1794.                 r: 0
  1795.             }, {
  1796.                 b: "-?\\w+\\s*\\=\\>",
  1797.                 c: [],
  1798.                 r: 0
  1799.             }]
  1800.         }, {
  1801.             cN: "number",
  1802.             b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
  1803.             r: 0
  1804.         }, {
  1805.             b: "(\\/\\/|" + c.RSR + "|\\b(split|return|print|reverse|grep)\\b)\\s*",
  1806.             k: "split return print reverse grep",
  1807.             r: 0,
  1808.             c: [c.HCM, e, {
  1809.                 cN: "regexp",
  1810.                 b: "(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",
  1811.                 r: 10
  1812.             }, {
  1813.                 cN: "regexp",
  1814.                 b: "(m|qr)?/",
  1815.                 e: "/[a-z]*",
  1816.                 c: [c.BE],
  1817.                 r: 0
  1818.             }]
  1819.         }, {
  1820.             cN: "sub",
  1821.             bK: "sub",
  1822.             e: "(\\s*\\(.*?\\))?[;{]",
  1823.             r: 5
  1824.         }, {
  1825.             cN: "operator",
  1826.             b: "-\\w\\b",
  1827.             r: 0
  1828.         }
  1829.     ];
  1830.     f.c = b;
  1831.     g.c = b;
  1832.     return {
  1833.         aliases: ["pl"],
  1834.         k: d,
  1835.         c: b
  1836.     }
  1837. });
  1838. hljs.registerLanguage("objectivec", function(a) {
  1839.     var d = {
  1840.         keyword: "int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",
  1841.         literal: "false true FALSE TRUE nil YES NO NULL",
  1842.         built_in: "NSString NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView NSView NSViewController NSWindow NSWindowController NSSet NSUUID NSIndexSet 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 UIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"
  1843.     };
  1844.     var c = /[a-zA-Z@][a-zA-Z0-9_]*/;
  1845.     var b = "@interface @class @protocol @implementation";
  1846.     return {
  1847.         aliases: ["m", "mm", "objc", "obj-c"],
  1848.         k: d,
  1849.         l: c,
  1850.         i: "</",
  1851.         c: [a.CLCM, a.CBCM, a.CNM, a.QSM, {
  1852.             cN: "string",
  1853.             v: [{
  1854.                 b: '@"',
  1855.                 e: '"',
  1856.                 i: "\\n",
  1857.                 c: [a.BE]
  1858.             }, {
  1859.                 b: "'",
  1860.                 e: "[^\\\\]'",
  1861.                 i: "[^\\\\][^']"
  1862.             }]
  1863.         }, {
  1864.             cN: "preprocessor",
  1865.             b: "#",
  1866.             e: "$",
  1867.             c: [{
  1868.                 cN: "title",
  1869.                 v: [{
  1870.                     b: '"',
  1871.                     e: '"'
  1872.                 }, {
  1873.                     b: "<",
  1874.                     e: ">"
  1875.                 }]
  1876.             }]
  1877.         }, {
  1878.             cN: "class",
  1879.             b: "(" + b.split(" ").join("|") + ")\\b",
  1880.             e: "({|$)",
  1881.             eE: true,
  1882.             k: b,
  1883.             l: c,
  1884.             c: [a.UTM]
  1885.         }, {
  1886.             cN: "variable",
  1887.             b: "\\." + a.UIR,
  1888.             r: 0
  1889.         }]
  1890.     }
  1891. });
  1892. hljs.registerLanguage("coffeescript", function(c) {
  1893.     var b = {
  1894.         keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",
  1895.         literal: "true false null undefined yes no on off",
  1896.         reserved: "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",
  1897.         built_in: "npm require console print module global window document"
  1898.     };
  1899.     var a = "[A-Za-z$_][0-9A-Za-z$_]*";
  1900.     var f = c.inherit(c.TM, {
  1901.         b: a
  1902.     });
  1903.     var e = {
  1904.         cN: "subst",
  1905.         b: /#\{/,
  1906.         e: /}/,
  1907.         k: b
  1908.     };
  1909.     var d = [c.BNM, c.inherit(c.CNM, {
  1910.         starts: {
  1911.             e: "(\\s*/)?",
  1912.             r: 0
  1913.         }
  1914.     }), {
  1915.         cN: "string",
  1916.         v: [{
  1917.             b: /'''/,
  1918.             e: /'''/,
  1919.             c: [c.BE]
  1920.         }, {
  1921.             b: /'/,
  1922.             e: /'/,
  1923.             c: [c.BE]
  1924.         }, {
  1925.             b: /"""/,
  1926.             e: /"""/,
  1927.             c: [c.BE, e]
  1928.         }, {
  1929.             b: /"/,
  1930.             e: /"/,
  1931.             c: [c.BE, e]
  1932.         }]
  1933.     }, {
  1934.         cN: "regexp",
  1935.         v: [{
  1936.             b: "///",
  1937.             e: "///",
  1938.             c: [e, c.HCM]
  1939.         }, {
  1940.             b: "//[gim]*",
  1941.             r: 0
  1942.         }, {
  1943.             b: "/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)"
  1944.         }]
  1945.     }, {
  1946.         cN: "property",
  1947.         b: "@" + a
  1948.     }, {
  1949.         b: "`",
  1950.         e: "`",
  1951.         eB: true,
  1952.         eE: true,
  1953.         sL: "javascript"
  1954.     }];
  1955.     e.c = d;
  1956.     return {
  1957.         aliases: ["coffee", "cson", "iced"],
  1958.         k: b,
  1959.         c: d.concat([{
  1960.                 cN: "comment",
  1961.                 b: "###",
  1962.                 e: "###"
  1963.             },
  1964.             c.HCM, {
  1965.                 cN: "function",
  1966.                 b: "(" + a + "\\s*=\\s*)?(\\(.*\\))?\\s*\\B[-=]>",
  1967.                 e: "[-=]>",
  1968.                 rB: true,
  1969.                 c: [f, {
  1970.                     cN: "params",
  1971.                     b: "\\(",
  1972.                     rB: true,
  1973.                     c: [{
  1974.                         b: /\(/,
  1975.                         e: /\)/,
  1976.                         k: b,
  1977.                         c: ["self"].concat(d)
  1978.                     }]
  1979.                 }]
  1980.             }, {
  1981.                 cN: "class",
  1982.                 bK: "class",
  1983.                 e: "$",
  1984.                 i: /[:="\[\]]/,
  1985.                 c: [{
  1986.                         bK: "extends",
  1987.                         eW: true,
  1988.                         i: /[:="\[\]]/,
  1989.                         c: [f]
  1990.                     },
  1991.                     f
  1992.                 ]
  1993.             }, {
  1994.                 cN: "attribute",
  1995.                 b: a + ":",
  1996.                 e: ":",
  1997.                 rB: true,
  1998.                 eE: true,
  1999.                 r: 0
  2000.             }
  2001.         ])
  2002.     }
  2003. });
  2004. hljs.registerLanguage("nginx", function(c) {
  2005.     var b = {
  2006.         cN: "variable",
  2007.         v: [{
  2008.             b: /\$\d+/
  2009.         }, {
  2010.             b: /\$\{/,
  2011.             e: /}/
  2012.         }, {
  2013.             b: "[\\$\\@]" + c.UIR
  2014.         }]
  2015.     };
  2016.     var a = {
  2017.         eW: true,
  2018.         l: "[a-z/_]+",
  2019.         k: {
  2020.             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"
  2021.         },
  2022.         r: 0,
  2023.         i: "=>",
  2024.         c: [c.HCM, {
  2025.                 cN: "string",
  2026.                 c: [c.BE, b],
  2027.                 v: [{
  2028.                     b: /"/,
  2029.                     e: /"/
  2030.                 }, {
  2031.                     b: /'/,
  2032.                     e: /'/
  2033.                 }]
  2034.             }, {
  2035.                 cN: "url",
  2036.                 b: "([a-z]+):/",
  2037.                 e: "\\s",
  2038.                 eW: true,
  2039.                 eE: true
  2040.             }, {
  2041.                 cN: "regexp",
  2042.                 c: [c.BE, b],
  2043.                 v: [{
  2044.                     b: "\\s\\^",
  2045.                     e: "\\s|{|;",
  2046.                     rE: true
  2047.                 }, {
  2048.                     b: "~\\*?\\s+",
  2049.                     e: "\\s|{|;",
  2050.                     rE: true
  2051.                 }, {
  2052.                     b: "\\*(\\.[a-z\\-]+)+"
  2053.                 }, {
  2054.                     b: "([a-z\\-]+\\.)+\\*"
  2055.                 }]
  2056.             }, {
  2057.                 cN: "number",
  2058.                 b: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
  2059.             }, {
  2060.                 cN: "number",
  2061.                 b: "\\b\\d+[kKmMgGdshdwy]*\\b",
  2062.                 r: 0
  2063.             },
  2064.             b
  2065.         ]
  2066.     };
  2067.     return {
  2068.         aliases: ["nginxconf"],
  2069.         c: [c.HCM, {
  2070.             b: c.UIR + "\\s",
  2071.             e: ";|{",
  2072.             rB: true,
  2073.             c: [{
  2074.                 cN: "title",
  2075.                 b: c.UIR,
  2076.                 starts: a
  2077.             }],
  2078.             r: 0
  2079.         }],
  2080.         i: "[^\\s\\}]"
  2081.     }
  2082. });
  2083. hljs.registerLanguage("json", function(a) {
  2084.     var e = {
  2085.         literal: "true false null"
  2086.     };
  2087.     var d = [a.QSM, a.CNM];
  2088.     var c = {
  2089.         cN: "value",
  2090.         e: ",",
  2091.         eW: true,
  2092.         eE: true,
  2093.         c: d,
  2094.         k: e
  2095.     };
  2096.     var b = {
  2097.         b: "{",
  2098.         e: "}",
  2099.         c: [{
  2100.             cN: "attribute",
  2101.             b: '\\s*"',
  2102.             e: '"\\s*:\\s*',
  2103.             eB: true,
  2104.             eE: true,
  2105.             c: [a.BE],
  2106.             i: "\\n",
  2107.             starts: c
  2108.         }],
  2109.         i: "\\S"
  2110.     };
  2111.     var f = {
  2112.         b: "\\[",
  2113.         e: "\\]",
  2114.         c: [a.inherit(c, {
  2115.             cN: null
  2116.         })],
  2117.         i: "\\S"
  2118.     };
  2119.     d.splice(d.length, 0, b, f);
  2120.     return {
  2121.         c: d,
  2122.         k: e,
  2123.         i: "\\S"
  2124.     }
  2125. });
  2126. hljs.registerLanguage("vbscript", function(a) {
  2127.     return {
  2128.         aliases: ["vbs"],
  2129.         cI: true,
  2130.         k: {
  2131.             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",
  2132.             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",
  2133.             literal: "true false null nothing empty"
  2134.         },
  2135.         i: "//",
  2136.         c: [a.inherit(a.QSM, {
  2137.                 c: [{
  2138.                     b: '""'
  2139.                 }]
  2140.             }), {
  2141.                 cN: "comment",
  2142.                 b: /'/,
  2143.                 e: /$/,
  2144.                 r: 0
  2145.             },
  2146.             a.CNM
  2147.         ]
  2148.     }
  2149. });
  2150. hljs.registerLanguage("apache", function(a) {
  2151.     var b = {
  2152.         cN: "number",
  2153.         b: "[\\$%]\\d+"
  2154.     };
  2155.     return {
  2156.         aliases: ["apacheconf"],
  2157.         cI: true,
  2158.         c: [a.HCM, {
  2159.             cN: "tag",
  2160.             b: "</?",
  2161.             e: ">"
  2162.         }, {
  2163.             cN: "keyword",
  2164.             b: /\w+/,
  2165.             r: 0,
  2166.             k: {
  2167.                 common: "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"
  2168.             },
  2169.             starts: {
  2170.                 e: /$/,
  2171.                 r: 0,
  2172.                 k: {
  2173.                     literal: "on off all"
  2174.                 },
  2175.                 c: [{
  2176.                         cN: "sqbracket",
  2177.                         b: "\\s\\[",
  2178.                         e: "\\]$"
  2179.                     }, {
  2180.                         cN: "cbracket",
  2181.                         b: "[\\$%]\\{",
  2182.                         e: "\\}",
  2183.                         c: ["self", b]
  2184.                     },
  2185.                     b, a.QSM
  2186.                 ]
  2187.             }
  2188.         }],
  2189.         i: /\S/
  2190.     }
  2191. });
  2192. hljs.registerLanguage("cpp", function(a) {
  2193.     var b = {
  2194.         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 _Complex _Imaginary",
  2195.         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 abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"
  2196.     };
  2197.     return {
  2198.         aliases: ["c", "h", "c++", "h++"],
  2199.         k: b,
  2200.         i: "</",
  2201.         c: [a.CLCM, a.CBCM, a.QSM, {
  2202.                 cN: "string",
  2203.                 b: "'\\\\?.",
  2204.                 e: "'",
  2205.                 i: "."
  2206.             }, {
  2207.                 cN: "number",
  2208.                 b: "\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"
  2209.             },
  2210.             a.CNM, {
  2211.                 cN: "preprocessor",
  2212.                 b: "#",
  2213.                 e: "$",
  2214.                 k: "if else elif endif define undef warning error line pragma",
  2215.                 c: [{
  2216.                         b: 'include\\s*[<"]',
  2217.                         e: '[>"]',
  2218.                         k: "include",
  2219.                         i: "\\n"
  2220.                     },
  2221.                     a.CLCM
  2222.                 ]
  2223.             }, {
  2224.                 cN: "stl_container",
  2225.                 b: "\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
  2226.                 e: ">",
  2227.                 k: b,
  2228.                 c: ["self"]
  2229.             }, {
  2230.                 b: a.IR + "::"
  2231.             }
  2232.         ]
  2233.     }
  2234. });
  2235. hljs.registerLanguage("makefile", function(a) {
  2236.     var b = {
  2237.         cN: "variable",
  2238.         b: /\$\(/,
  2239.         e: /\)/,
  2240.         c: [a.BE]
  2241.     };
  2242.     return {
  2243.         aliases: ["mk", "mak"],
  2244.         c: [a.HCM, {
  2245.             b: /^\w+\s*\W*=/,
  2246.             rB: true,
  2247.             r: 0,
  2248.             starts: {
  2249.                 cN: "constant",
  2250.                 e: /\s*\W*=/,
  2251.                 eE: true,
  2252.                 starts: {
  2253.                     e: /$/,
  2254.                     r: 0,
  2255.                     c: [b]
  2256.                 }
  2257.             }
  2258.         }, {
  2259.             cN: "title",
  2260.             b: /^[\w]+:\s*$/
  2261.         }, {
  2262.             cN: "phony",
  2263.             b: /^\.PHONY:/,
  2264.             e: /$/,
  2265.             k: ".PHONY",
  2266.             l: /[\.\w]+/
  2267.         }, {
  2268.             b: /^\t+/,
  2269.             e: /$/,
  2270.             c: [a.QSM, b]
  2271.         }]
  2272.     }
  2273. });
Add Comment
Please, Sign In to add comment