1
2
3
4
5
6
7
8
9
10
11
12
13
14pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Headin!(function (e) {
var n = '\\\\\\((?:[^()]|\\([^()]*\\))*\\)',
t = RegExp(
'(^|[^\\\\])"(?:[^"\r\n\\\\]|\\\\[^\r\n(]|__)*"'.replace(
/__/g,
function () {
return n;
}
)
),
i = {
interpolation: {
pattern: RegExp('((?:^|[^\\\\])(?:\\\\{2})*)' + n),
lookbehind: !0,
inside: {
content: {
pattern: /^(\\\()[\s\S]+(?=\)$)/,
lookbehind: !0,
inside: null,
},
punctuation: /^\\\(|\)$/,
},
},
},
a = (e.languages.jq = {
comment: /#.*/,
property: {
pattern: RegExp(t.source + '(?=\\s*:(?!:))'),
lookbehind: !0,
greedy: !0,
inside: i,
},
string: { pattern: t, lookbehind: !0, greedy: !0, inside: i },
function: { pattern: /(\bdef\s+)[a-z_]\w+/i, lookbehind: !0 },
variable: /\B\$\w+/,
'property-literal': {
pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i,
alias: 'property',
},
keyword:
/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,
boolean: /\b(?:false|true)\b/,
number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,
operator: [
{ pattern: /\|=?/, alias: 'pipe' },
/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/,
],
'c-style-function': {
pattern: /\b[a-z_]\w*(?=\s*\()/i,
alias: 'function',
},
punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,
dot: { pattern: /\./, alias: 'important' },
});
i.interpolation.inside.content.inside = a;
})(Prism);
|