pghero 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/pghero/highlight.min.js +265 -198
- data/lib/pghero/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f26e73390b749930f287536790ab7951268d105c074211c3273c595105558b4e
|
4
|
+
data.tar.gz: 8d6e752dde349c152e5569f93f282035c35357f4eb54edf682ddd5c2e3a23986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2be7dd596e50df9319cc794e2098226833445f4b6a1fefb2f57aca21eb38e3f2676c78bc14d620bcc36da413e6825709e053020646b00ae428b33860534406
|
7
|
+
data.tar.gz: b852564d036d3c2e427e4f4ccccdfc9cb00c13507a64cf742d0fadf3c6ec35cfc6eddbe5c6a8e29f2d71692fe6a3a663f91ee0bd8807fa946a537938908456c6
|
data/CHANGELOG.md
CHANGED
@@ -4,71 +4,104 @@
|
|
4
4
|
License: BSD-3-Clause
|
5
5
|
*/
|
6
6
|
var hljs=function(){"use strict";var e={exports:{}};function t(e){
|
7
|
-
return e instanceof Map?e.clear=e.delete=e.set=()
|
8
|
-
throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()
|
7
|
+
return e instanceof Map?e.clear=e.delete=e.set=function (){
|
8
|
+
throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function (){
|
9
9
|
throw Error("set is read-only")
|
10
|
-
}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((n
|
10
|
+
}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function (n){var i=e[n]
|
11
11
|
;"object"!=typeof i||Object.isFrozen(i)||t(i)})),e}
|
12
|
-
e.exports=t,e.exports.default=t;
|
13
|
-
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
14
|
-
ignoreMatch(){this.isMatchIgnored=!0}
|
12
|
+
e.exports=t,e.exports.default=t;var n = function n(e){
|
13
|
+
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1};
|
14
|
+
n.prototype.ignoreMatch = function ignoreMatch (){this.isMatchIgnored=!0};function i(e){
|
15
15
|
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
16
|
-
}function r(e
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
return
|
30
|
-
|
31
|
-
|
32
|
-
if(
|
33
|
-
|
34
|
-
|
16
|
+
}function r(e){
|
17
|
+
var t = [], len = arguments.length - 1;
|
18
|
+
while ( len-- > 0 ) t[ len ] = arguments[ len + 1 ];
|
19
|
+
var n=Object.create(null);for(var t$1 in e){ n[t$1]=e[t$1]
|
20
|
+
; }return t.forEach((function (e){for(var t in e){ n[t]=e[t] }})),n}
|
21
|
+
var s=function (e){ return !!e.scope||e.sublanguage&&e.language; };var o = function o(e,t){
|
22
|
+
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)};o.prototype.addText = function addText (e){
|
23
|
+
this.buffer+=i(e)};o.prototype.openNode = function openNode (e){if(!s(e)){ return; }var t=""
|
24
|
+
;t=e.sublanguage?"language-"+e.language:(function (e,ref){
|
25
|
+
var t = ref.prefix;
|
26
|
+
if(e.includes(".")){
|
27
|
+
var n=e.split(".")
|
28
|
+
;return[("" + t + (n.shift())) ].concat( n.map((function (e,t){ return ("" + e + ("_".repeat(t+1))); }))).join(" ")
|
29
|
+
}return("" + t + e)})(e.scope,{prefix:this.classPrefix}),this.span(t)};
|
30
|
+
o.prototype.closeNode = function closeNode (e){s(e)&&(this.buffer+="</span>")};o.prototype.value = function value (){return this.buffer};o.prototype.span = function span (e){
|
31
|
+
this.buffer+="<span class=\"" + e + "\">"};var a=function (e){
|
32
|
+
if ( e === void 0 ) e={};
|
33
|
+
var t={children:[]}
|
34
|
+
;return Object.assign(t,e),t};var c = function c(){
|
35
|
+
this.rootNode=a(),this.stack=[this.rootNode]};
|
36
|
+
|
37
|
+
var prototypeAccessors = { top: { configurable: true },root: { configurable: true } };prototypeAccessors.top.get = function (){
|
38
|
+
return this.stack[this.stack.length-1]};prototypeAccessors.root.get = function (){return this.rootNode};c.prototype.add = function add (e){
|
39
|
+
this.top.children.push(e)};c.prototype.openNode = function openNode (e){var t=a({scope:e})
|
40
|
+
;this.add(t),this.stack.push(t)};c.prototype.closeNode = function closeNode (){
|
41
|
+
if(this.stack.length>1){ return this.stack.pop() }};c.prototype.closeAllNodes = function closeAllNodes (){
|
42
|
+
for(;this.closeNode();){ ; }};c.prototype.toJSON = function toJSON (){return JSON.stringify(this.rootNode,null,4)};
|
43
|
+
c.prototype.walk = function walk (e){return this.constructor._walk(e,this.rootNode)};c._walk = function _walk (e,t){
|
44
|
+
var this$1 = this;
|
45
|
+
|
35
46
|
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
36
|
-
t.children.forEach((t
|
37
|
-
"string"!=typeof e&&e.children&&(e.children.every((e
|
38
|
-
c._collapse(e)})))}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
47
|
+
t.children.forEach((function (t){ return this$1._walk(e,t); })),e.closeNode(t)),e};c._collapse = function _collapse (e){
|
48
|
+
"string"!=typeof e&&e.children&&(e.children.every((function (e){ return "string"==typeof e; }))?e.children=[e.children.join("")]:e.children.forEach((function (e){
|
49
|
+
c._collapse(e)})))};
|
50
|
+
|
51
|
+
Object.defineProperties( c.prototype, prototypeAccessors );var l = /*@__PURE__*/(function (c) {
|
52
|
+
function l(e){c.call(this),this.options=e}
|
53
|
+
|
54
|
+
if ( c ) l.__proto__ = c;
|
55
|
+
l.prototype = Object.create( c && c.prototype );
|
56
|
+
l.prototype.constructor = l;
|
57
|
+
l.prototype.addKeyword = function addKeyword (e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())};
|
58
|
+
l.prototype.addText = function addText (e){""!==e&&this.add(e)};l.prototype.addSublanguage = function addSublanguage (e,t){var n=e.root
|
59
|
+
;n.sublanguage=!0,n.language=t,this.add(n)};l.prototype.toHTML = function toHTML (){
|
60
|
+
return new o(this,this.options).value()};l.prototype.finalize = function finalize (){return!0};
|
61
|
+
|
62
|
+
return l;
|
63
|
+
}(c));function g(e){
|
43
64
|
return e?"string"==typeof e?e:e.source:null}function d(e){return p("(?=",e,")")}
|
44
65
|
function u(e){return p("(?:",e,")*")}function h(e){return p("(?:",e,")?")}
|
45
|
-
function p(
|
46
|
-
|
66
|
+
function p(){
|
67
|
+
var e = [], len = arguments.length;
|
68
|
+
while ( len-- ) e[ len ] = arguments[ len ];
|
69
|
+
return e.map((function (e){ return g(e); })).join("")}function f(){
|
70
|
+
var e = [], len = arguments.length;
|
71
|
+
while ( len-- ) e[ len ] = arguments[ len ];
|
72
|
+
var t=(function (e){
|
73
|
+
var t=e[e.length-1]
|
47
74
|
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
48
|
-
})(e);return"("+(t.capture?"":"?:")+e.map((e
|
75
|
+
})(e);return"("+(t.capture?"":"?:")+e.map((function (e){ return g(e); })).join("|")+")"}
|
49
76
|
function b(e){return RegExp(e.toString()+"|").exec("").length-1}
|
50
|
-
|
51
|
-
;function E(e,
|
52
|
-
|
53
|
-
|
54
|
-
i=
|
55
|
-
|
56
|
-
|
77
|
+
var m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
78
|
+
;function E(e,ref){
|
79
|
+
var t = ref.joinWith;
|
80
|
+
var n=0;return e.map((function (e){n+=1;var t=n
|
81
|
+
;var i=g(e),r="";for(;i.length>0;){var e$1=m.exec(i);if(!e$1){r+=i;break}
|
82
|
+
r+=i.substring(0,e$1.index),
|
83
|
+
i=i.substring(e$1.index+e$1[0].length),"\\"===e$1[0][0]&&e$1[1]?r+="\\"+(Number(e$1[1])+t):(r+=e$1[0],
|
84
|
+
"("===e$1[0]&&n++)}return r})).map((function (e){ return ("(" + e + ")"); })).join(t)}
|
85
|
+
var x="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",O="\\b(0b[01]+)",v={
|
57
86
|
begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",
|
58
87
|
illegal:"\\n",contains:[v]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
59
|
-
contains:[v]},M=(e,t,n
|
88
|
+
contains:[v]},M=function (e,t,n){
|
89
|
+
if ( n === void 0 ) n={};
|
90
|
+
var i=r({scope:"comment",begin:e,end:t,
|
60
91
|
contains:[]},n);i.contains.push({scope:"doctag",
|
61
92
|
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
62
93
|
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
63
|
-
;
|
94
|
+
;var s=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
64
95
|
;return i.contains.push({begin:p(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i
|
65
96
|
},S=M("//","$"),R=M("/\\*","\\*/"),j=M("#","$");var A=Object.freeze({
|
66
97
|
__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:x,UNDERSCORE_IDENT_RE:w,
|
67
98
|
NUMBER_RE:y,C_NUMBER_RE:_,BINARY_NUMBER_RE:O,
|
68
99
|
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
69
|
-
SHEBANG:(e
|
100
|
+
SHEBANG:function (e){
|
101
|
+
if ( e === void 0 ) e={};
|
102
|
+
var t=/^#![ ]*\//
|
70
103
|
;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,
|
71
|
-
end:/$/,relevance:0,"on:begin":(e,t)
|
104
|
+
end:/$/,relevance:0,"on:begin":function (e,t){0!==e.index&&t.ignoreMatch()}},e)},
|
72
105
|
BACKSLASH_ESCAPE:v,APOS_STRING_MODE:N,QUOTE_STRING_MODE:k,PHRASAL_WORDS_MODE:{
|
73
106
|
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
74
107
|
},COMMENT:M,C_LINE_COMMENT_MODE:S,C_BLOCK_COMMENT_MODE:R,HASH_COMMENT_MODE:j,
|
@@ -78,80 +111,94 @@ REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,
|
|
78
111
|
end:/\/[gimuy]*/,illegal:/\n/,contains:[v,{begin:/\[/,end:/\]/,relevance:0,
|
79
112
|
contains:[v]}]}]},TITLE_MODE:{scope:"title",begin:x,relevance:0},
|
80
113
|
UNDERSCORE_TITLE_MODE:{scope:"title",begin:w,relevance:0},METHOD_GUARD:{
|
81
|
-
begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:e
|
82
|
-
"on:begin":(e,t)
|
83
|
-
t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function I(e,t){
|
114
|
+
begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function (e){ return Object.assign(e,{
|
115
|
+
"on:begin":function (e,t){t.data._beginMatch=e[1]},"on:end":function (e,t){
|
116
|
+
t.data._beginMatch!==e[1]&&t.ignoreMatch()}}); }});function I(e,t){
|
84
117
|
"."===e.input[e.index-1]&&t.ignoreMatch()}function T(e,t){
|
85
118
|
void 0!==e.className&&(e.scope=e.className,delete e.className)}function L(e,t){
|
86
119
|
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
87
120
|
e.__beforeBegin=I,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
88
121
|
void 0===e.relevance&&(e.relevance=0))}function B(e,t){
|
89
|
-
Array.isArray(e.illegal)&&(e.illegal=f(
|
122
|
+
Array.isArray(e.illegal)&&(e.illegal=f.apply(void 0, e.illegal))}function D(e,t){
|
90
123
|
if(e.match){
|
91
|
-
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
92
|
-
;e.begin=e.match,delete e.match}}function H(e,t){
|
93
|
-
void 0===e.relevance&&(e.relevance=1)}
|
94
|
-
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
95
|
-
;
|
124
|
+
if(e.begin||e.end){ throw Error("begin & end are not supported with match")
|
125
|
+
; }e.begin=e.match,delete e.match}}function H(e,t){
|
126
|
+
void 0===e.relevance&&(e.relevance=1)}var P=function (e,t){if(!e.beforeMatch){ return
|
127
|
+
; }if(e.starts){ throw Error("beforeMatch cannot be used with starts")
|
128
|
+
; }var n=Object.assign({},e);Object.keys(e).forEach((function (t){delete e[t]
|
96
129
|
})),e.keywords=n.keywords,e.begin=p(n.beforeMatch,d(n.begin)),e.starts={
|
97
130
|
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
98
131
|
},e.relevance=0,delete n.beforeMatch
|
99
132
|
},C=["of","and","for","in","not","or","if","then","parent","list","value"]
|
100
|
-
;function $(e,t,n
|
101
|
-
|
133
|
+
;function $(e,t,n){
|
134
|
+
if ( n === void 0 ) n="keyword";
|
135
|
+
var i=Object.create(null)
|
136
|
+
;return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function (n){
|
102
137
|
Object.assign(i,$(e[n],t,n))})),i;function r(e,n){
|
103
|
-
t&&(n=n.map((e
|
138
|
+
t&&(n=n.map((function (e){ return e.toLowerCase(); }))),n.forEach((function (t){var n=t.split("|")
|
104
139
|
;i[n[0]]=[e,U(n[0],n[1])]}))}}function U(e,t){
|
105
|
-
return t?Number(t):(e
|
106
|
-
console.error(e)},W=
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
140
|
+
return t?Number(t):(function (e){ return C.includes(e.toLowerCase()); })(e)?0:1}var z={},K=function (e){
|
141
|
+
console.error(e)},W=function (e){
|
142
|
+
var t = [], len = arguments.length - 1;
|
143
|
+
while ( len-- > 0 ) t[ len ] = arguments[ len + 1 ];
|
144
|
+
console.log.apply(console, [ "WARN: "+e ].concat( t ))},X=function (e,t){
|
145
|
+
z[(e + "/" + t)]||(console.log(("Deprecated as of " + e + ". " + t)),z[(e + "/" + t)]=!0)
|
146
|
+
},G=Error();function Z(e,t,ref){
|
147
|
+
var n = ref.key;
|
148
|
+
var i=0;var r=e[n],s={},o={}
|
149
|
+
;for(var e$1=1;e$1<=t.length;e$1++){ o[e$1+i]=r[e$1],s[e$1+i]=!0,i+=b(t[e$1-1])
|
150
|
+
; }e[n]=o,e[n]._emit=s,e[n]._multi=!0}function F(e){(function (e){
|
111
151
|
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
112
152
|
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
113
153
|
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
114
|
-
}),(e
|
115
|
-
if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
154
|
+
}),(function (e){if(Array.isArray(e.begin)){
|
155
|
+
if(e.skip||e.excludeBegin||e.returnBegin){ throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
116
156
|
G
|
117
|
-
;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),
|
118
|
-
G;Z(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}})(e),(e
|
157
|
+
; }if("object"!=typeof e.beginScope||null===e.beginScope){ throw K("beginScope must be object"),
|
158
|
+
G; }Z(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}})(e),(function (e){
|
119
159
|
if(Array.isArray(e.end)){
|
120
|
-
if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
160
|
+
if(e.skip||e.excludeEnd||e.returnEnd){ throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
121
161
|
G
|
122
|
-
;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),
|
123
|
-
G;Z(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}})(e)}function V(e){
|
162
|
+
; }if("object"!=typeof e.endScope||null===e.endScope){ throw K("endScope must be object"),
|
163
|
+
G; }Z(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}})(e)}function V(e){
|
124
164
|
function t(t,n){
|
125
165
|
return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
126
|
-
}
|
127
|
-
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
128
|
-
addRule(e,t){
|
166
|
+
}var n = function n(){
|
167
|
+
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0};
|
168
|
+
n.prototype.addRule = function addRule (e,t){
|
129
169
|
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
130
|
-
this.matchAt+=b(e)+1}compile(){0===this.regexes.length&&(this.exec=()
|
131
|
-
;
|
132
|
-
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
133
|
-
;
|
134
|
-
;
|
135
|
-
;return t.splice(0,n),Object.assign(t,i)}
|
170
|
+
this.matchAt+=b(e)+1};n.prototype.compile = function compile (){0===this.regexes.length&&(this.exec=function (){ return null; })
|
171
|
+
;var e=this.regexes.map((function (e){ return e[1]; }));this.matcherRe=t(E(e,{joinWith:"|"
|
172
|
+
}),!0),this.lastIndex=0};n.prototype.exec = function exec (e){this.matcherRe.lastIndex=this.lastIndex
|
173
|
+
;var t=this.matcherRe.exec(e);if(!t){ return null
|
174
|
+
; }var n=t.findIndex((function (e,t){ return t>0&&void 0!==e; })),i=this.matchIndexes[n]
|
175
|
+
;return t.splice(0,n),Object.assign(t,i)};var i = function i(){
|
136
176
|
this.rules=[],this.multiRegexes=[],
|
137
|
-
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
138
|
-
if(this.multiRegexes[e])return this.multiRegexes[e];
|
139
|
-
;return this.rules.slice(e).forEach(((
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
177
|
+
this.count=0,this.lastIndex=0,this.regexIndex=0};i.prototype.getMatcher = function getMatcher (e){
|
178
|
+
if(this.multiRegexes[e]){ return this.multiRegexes[e]; }var t=new n
|
179
|
+
;return this.rules.slice(e).forEach((function (ref){
|
180
|
+
var e = ref[0];
|
181
|
+
var n = ref[1];
|
182
|
+
|
183
|
+
return t.addRule(e,n);
|
184
|
+
})),
|
185
|
+
t.compile(),this.multiRegexes[e]=t,t};i.prototype.resumingScanAtSamePosition = function resumingScanAtSamePosition (){
|
186
|
+
return 0!==this.regexIndex};i.prototype.considerAll = function considerAll (){this.regexIndex=0};i.prototype.addRule = function addRule (e,t){
|
187
|
+
this.rules.push([e,t]),"begin"===t.type&&this.count++};i.prototype.exec = function exec (e){
|
188
|
+
var t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
|
189
|
+
;var n=t.exec(e)
|
190
|
+
;if(this.resumingScanAtSamePosition()){ if(n&&n.index===this.lastIndex){ ; }else{
|
191
|
+
var t$1=this.getMatcher(0);t$1.lastIndex=this.lastIndex+1,n=t$1.exec(e)} }
|
147
192
|
return n&&(this.regexIndex+=n.position+1,
|
148
|
-
this.regexIndex===this.count&&this.considerAll()),n}
|
193
|
+
this.regexIndex===this.count&&this.considerAll()),n};
|
149
194
|
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
150
|
-
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
151
|
-
;return e.classNameAliases=r(e.classNameAliases||{}),function n(s,o){
|
152
|
-
;
|
153
|
-
|
154
|
-
|
195
|
+
e.contains&&e.contains.includes("self")){ throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
196
|
+
; }return e.classNameAliases=r(e.classNameAliases||{}),function n(s,o){
|
197
|
+
var ref;
|
198
|
+
var a=s
|
199
|
+
;if(s.isCompiled){ return a
|
200
|
+
; }[T,D,F,P].forEach((function (e){ return e(s,o); })),e.compilerExtensions.forEach((function (e){ return e(s,o); })),
|
201
|
+
s.__beforeBegin=null,[L,B,H].forEach((function (e){ return e(s,o); })),s.isCompiled=!0;var c=null
|
155
202
|
;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),
|
156
203
|
c=s.keywords.$pattern,
|
157
204
|
delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=$(s.keywords,e.case_insensitive)),
|
@@ -160,151 +207,171 @@ o&&(s.begin||(s.begin=/\B|\b/),a.beginRe=t(a.begin),s.end||s.endsWithParent||(s.
|
|
160
207
|
s.end&&(a.endRe=t(a.end)),
|
161
208
|
a.terminatorEnd=g(a.end)||"",s.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),
|
162
209
|
s.illegal&&(a.illegalRe=t(s.illegal)),
|
163
|
-
s.contains||(s.contains=[]),s.contains=[].concat(
|
164
|
-
variants:null},t)))),e.cachedVariants?e.cachedVariants:q(e)?r(e,{
|
210
|
+
s.contains||(s.contains=[]),s.contains=(ref = []).concat.apply(ref, s.contains.map((function (e){ return (function (e){ return (e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function (t){ return r(e,{
|
211
|
+
variants:null},t); }))),e.cachedVariants?e.cachedVariants:q(e)?r(e,{
|
165
212
|
starts:e.starts?r(e.starts):null
|
166
|
-
}):Object.isFrozen(e)?r(e):e))("self"===e?s:e)))),s.contains.forEach((e
|
167
|
-
})),s.starts&&n(s.starts,o),a.matcher=(e
|
168
|
-
;return e.contains.forEach((e
|
169
|
-
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
213
|
+
}):Object.isFrozen(e)?r(e):e); })("self"===e?s:e); }))),s.contains.forEach((function (e){n(e,a)
|
214
|
+
})),s.starts&&n(s.starts,o),a.matcher=(function (e){var t=new i
|
215
|
+
;return e.contains.forEach((function (e){ return t.addRule(e.begin,{rule:e,type:"begin"
|
216
|
+
}); })),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
170
217
|
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function q(e){
|
171
|
-
return!!e&&(e.endsWithParent||q(e.starts))}
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
218
|
+
return!!e&&(e.endsWithParent||q(e.starts))}var J = /*@__PURE__*/(function (Error) {
|
219
|
+
function J(e,t){Error.call(this, e),this.name="HTMLInjectionError",this.html=t}
|
220
|
+
|
221
|
+
if ( Error ) J.__proto__ = Error;
|
222
|
+
J.prototype = Object.create( Error && Error.prototype );
|
223
|
+
J.prototype.constructor = J;
|
224
|
+
|
225
|
+
return J;
|
226
|
+
}(Error));
|
227
|
+
var Y=i,Q=r,ee=Symbol("nomatch");var te=(function (t){
|
228
|
+
var i=Object.create(null),r=Object.create(null),s=[];var o=!0
|
229
|
+
;var a="Could not find the language '{}', did you forget to load/include a language module?",c={
|
230
|
+
disableAutodetect:!0,name:"Plain text",contains:[]};var g={
|
177
231
|
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
178
232
|
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
179
233
|
cssSelector:"pre code",languages:null,__emitter:l};function b(e){
|
180
|
-
return g.noHighlightRe.test(e)}function m(e,t,n){
|
234
|
+
return g.noHighlightRe.test(e)}function m(e,t,n){var i="",r=""
|
181
235
|
;"object"==typeof t?(i=e,
|
182
236
|
n=t.ignoreIllegals,r=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
183
237
|
X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
184
|
-
r=e,i=t),void 0===n&&(n=!0);
|
185
|
-
;
|
238
|
+
r=e,i=t),void 0===n&&(n=!0);var s={code:i,language:r};k("before:highlight",s)
|
239
|
+
;var o=s.result?s.result:E(s.language,s.code,n)
|
186
240
|
;return o.code=s.code,k("after:highlight",o),o}function E(e,t,r,s){
|
187
|
-
|
188
|
-
;
|
241
|
+
var c=Object.create(null);function l(){if(!N.keywords){ return void M.addText(S)
|
242
|
+
; }var e=0;N.keywordPatternRe.lastIndex=0;var t=N.keywordPatternRe.exec(S),n=""
|
189
243
|
;for(;t;){n+=S.substring(e,t.index)
|
190
|
-
;
|
191
|
-
|
192
|
-
;if(M.addText(n),n="",c[r]=(c[r]||0)+1,c[r]<=7&&(R+=i),e.startsWith("_"))n+=t[0];else{
|
193
|
-
|
194
|
-
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(S)}var i
|
195
|
-
;n+=S.substring(e),M.addText(n)}function d(){null!=N.subLanguage?(()
|
196
|
-
if(""===S)return;
|
197
|
-
if(!i[N.subLanguage])return void M.addText(S)
|
198
|
-
;e=E(N.subLanguage,S,!0,k[N.subLanguage]),k[N.subLanguage]=e._top
|
199
|
-
}else e=x(S,N.subLanguage.length?N.subLanguage:null)
|
200
|
-
;N.relevance>0&&(R+=e.relevance),M.addSublanguage(e._emitter,e.language)
|
201
|
-
})():l(),S=""}function u(e,t){
|
202
|
-
if(!e._emit[n]){n++;continue}
|
203
|
-
;i?M.addKeyword(r,i):(S=r,l(),S=""),n++}}function h(e,t){
|
244
|
+
;var r=y.case_insensitive?t[0].toLowerCase():t[0],s=(i=r,N.keywords[i]);if(s){
|
245
|
+
var e$1 = s[0];
|
246
|
+
var i$1 = s[1];if(M.addText(n),n="",c[r]=(c[r]||0)+1,c[r]<=7&&(R+=i$1),e$1.startsWith("_")){ n+=t[0]; }else{
|
247
|
+
var n$1=y.classNameAliases[e$1]||e$1;M.addKeyword(t[0],n$1)}}else { n+=t[0]
|
248
|
+
; }e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(S)}var i
|
249
|
+
;n+=S.substring(e),M.addText(n)}function d(){null!=N.subLanguage?(function (){
|
250
|
+
if(""===S){ return; }var e=null;if("string"==typeof N.subLanguage){
|
251
|
+
if(!i[N.subLanguage]){ return void M.addText(S)
|
252
|
+
; }e=E(N.subLanguage,S,!0,k[N.subLanguage]),k[N.subLanguage]=e._top
|
253
|
+
}else { e=x(S,N.subLanguage.length?N.subLanguage:null)
|
254
|
+
; }N.relevance>0&&(R+=e.relevance),M.addSublanguage(e._emitter,e.language)
|
255
|
+
})():l(),S=""}function u(e,t){var n=1;var i=t.length-1;for(;n<=i;){
|
256
|
+
if(!e._emit[n]){n++;continue}var i$1=y.classNameAliases[e[n]]||e[n],r=t[n]
|
257
|
+
;i$1?M.addKeyword(r,i$1):(S=r,l(),S=""),n++}}function h(e,t){
|
204
258
|
return e.scope&&"string"==typeof e.scope&&M.openNode(y.classNameAliases[e.scope]||e.scope),
|
205
259
|
e.beginScope&&(e.beginScope._wrap?(M.addKeyword(S,y.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
206
260
|
S=""):e.beginScope._multi&&(u(e.beginScope,t),S="")),N=Object.create(e,{parent:{
|
207
|
-
value:N}}),N}function p(e,t,i){
|
208
|
-
;return n&&0===n.index})(e.endRe,i);if(r){if(e["on:end"]){
|
209
|
-
;e["on:end"](t,i),i.isMatchIgnored&&(r=!1)}if(r){
|
210
|
-
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
211
|
-
if(e.endsWithParent)return p(e.parent,t,i)}function f(e){
|
261
|
+
value:N}}),N}function p(e,t,i){var r=(function (e,t){var n=e&&e.exec(t)
|
262
|
+
;return n&&0===n.index})(e.endRe,i);if(r){if(e["on:end"]){var i$1=new n(e)
|
263
|
+
;e["on:end"](t,i$1),i$1.isMatchIgnored&&(r=!1)}if(r){
|
264
|
+
for(;e.endsParent&&e.parent;){ e=e.parent; }return e}}
|
265
|
+
if(e.endsWithParent){ return p(e.parent,t,i) }}function f(e){
|
212
266
|
return 0===N.matcher.regexIndex?(S+=e[0],1):(I=!0,0)}function b(e){
|
213
|
-
|
267
|
+
var n=e[0],i=t.substring(e.index),r=p(N,e,i);if(!r){ return ee; }var s=N
|
214
268
|
;N.endScope&&N.endScope._wrap?(d(),
|
215
269
|
M.addKeyword(n,N.endScope._wrap)):N.endScope&&N.endScope._multi?(d(),
|
216
270
|
u(N.endScope,e)):s.skip?S+=n:(s.returnEnd||s.excludeEnd||(S+=n),
|
217
271
|
d(),s.excludeEnd&&(S=n));do{
|
218
272
|
N.scope&&M.closeNode(),N.skip||N.subLanguage||(R+=N.relevance),N=N.parent
|
219
273
|
}while(N!==r.parent);return r.starts&&h(r.starts,e),s.returnEnd?0:n.length}
|
220
|
-
|
221
|
-
;if("begin"===m.type&&"end"===s.type&&m.index===s.index&&""===a){
|
222
|
-
if(S+=t.slice(s.index,s.index+1),!o){
|
223
|
-
;throw t.languageName=e,t.badRule=m.rule,t}return 1}
|
224
|
-
if(m=s,"begin"===s.type)return(e
|
225
|
-
|
226
|
-
;for(
|
227
|
-
|
274
|
+
var m={};function w(i,s){var a=s&&s[0];if(S+=i,null==a){ return d(),0
|
275
|
+
; }if("begin"===m.type&&"end"===s.type&&m.index===s.index&&""===a){
|
276
|
+
if(S+=t.slice(s.index,s.index+1),!o){var t$1=Error(("0 width match regex (" + e + ")"))
|
277
|
+
;throw t$1.languageName=e,t$1.badRule=m.rule,t$1}return 1}
|
278
|
+
if(m=s,"begin"===s.type){ return(function (e){
|
279
|
+
var t=e[0],i=e.rule,r=new n(i),s=[i.__beforeBegin,i["on:begin"]]
|
280
|
+
;for(var i$1 = 0, list = s; i$1 < list.length; i$1 += 1){
|
281
|
+
var n$1 = list[i$1];
|
282
|
+
|
283
|
+
if(n$1&&(n$1(e,r),r.isMatchIgnored)){ return f(t)
|
284
|
+
;
|
285
|
+
} }return i.skip?S+=t:(i.excludeBegin&&(S+=t),
|
228
286
|
d(),i.returnBegin||i.excludeBegin||(S=t)),h(i,e),i.returnBegin?0:t.length})(s)
|
229
|
-
;if("illegal"===s.type&&!r){
|
230
|
-
|
231
|
-
;throw e.mode=N,e}if("end"===s.type){
|
232
|
-
if("illegal"===s.type&&""===a)return 1
|
233
|
-
;if(A>1e5&&A>3*s.index)throw Error("potential infinite loop, way more iterations than matches")
|
234
|
-
;return S+=a,a.length}
|
235
|
-
;if(!y)throw K(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
236
|
-
;
|
237
|
-
;for(
|
238
|
-
;e.forEach((e
|
287
|
+
; }if("illegal"===s.type&&!r){
|
288
|
+
var e$1=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
289
|
+
;throw e$1.mode=N,e$1}if("end"===s.type){var e$2=b(s);if(e$2!==ee){ return e$2 }}
|
290
|
+
if("illegal"===s.type&&""===a){ return 1
|
291
|
+
; }if(A>1e5&&A>3*s.index){ throw Error("potential infinite loop, way more iterations than matches")
|
292
|
+
; }return S+=a,a.length}var y=O(e)
|
293
|
+
;if(!y){ throw K(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
294
|
+
; }var _=V(y);var v="",N=s||_;var k={},M=new g.__emitter(g);(function (){var e=[]
|
295
|
+
;for(var t=N;t!==y;t=t.parent){ t.scope&&e.unshift(t.scope)
|
296
|
+
; }e.forEach((function (e){ return M.openNode(e); }))})();var S="",R=0,j=0,A=0,I=!1;try{
|
239
297
|
for(N.matcher.considerAll();;){
|
240
298
|
A++,I?I=!1:N.matcher.considerAll(),N.matcher.lastIndex=j
|
241
|
-
;
|
242
|
-
;j=e.index+n}
|
299
|
+
;var e$1=N.matcher.exec(t);if(!e$1){ break; }var n$1=w(t.substring(j,e$1.index),e$1)
|
300
|
+
;j=e$1.index+n$1}
|
243
301
|
return w(t.substring(j)),M.closeAllNodes(),M.finalize(),v=M.toHTML(),{
|
244
|
-
language:e,value:v,relevance:R,illegal:!1,_emitter:M,_top:N}}catch(n){
|
245
|
-
if(n.message&&n.message.includes("Illegal"))return{language:e,value:Y(t),
|
246
|
-
illegal:!0,relevance:0,_illegalBy:{message:n.message,index:j,
|
247
|
-
context:t.slice(j-100,j+100),mode:n.mode,resultSoFar:v},_emitter:M};if(o)return{
|
248
|
-
language:e,value:Y(t),illegal:!1,relevance:0,errorRaised:n,_emitter:M,_top:N}
|
249
|
-
;throw n}}function x(e,t){t=t||g.languages||Object.keys(i);
|
250
|
-
|
251
|
-
;return t._emitter.addText(e),t})(e),r=t.filter(O).filter(N).map((t
|
252
|
-
;r.unshift(n);
|
253
|
-
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
254
|
-
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
255
|
-
;if(O(t.language).supersetOf===e.language)return-1}return 0}))
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
;return
|
260
|
-
|
261
|
-
|
262
|
-
;
|
302
|
+
language:e,value:v,relevance:R,illegal:!1,_emitter:M,_top:N}}catch(n$2){
|
303
|
+
if(n$2.message&&n$2.message.includes("Illegal")){ return{language:e,value:Y(t),
|
304
|
+
illegal:!0,relevance:0,_illegalBy:{message:n$2.message,index:j,
|
305
|
+
context:t.slice(j-100,j+100),mode:n$2.mode,resultSoFar:v},_emitter:M}; }if(o){ return{
|
306
|
+
language:e,value:Y(t),illegal:!1,relevance:0,errorRaised:n$2,_emitter:M,_top:N}
|
307
|
+
; }throw n$2}}function x(e,t){t=t||g.languages||Object.keys(i);var n=(function (e){
|
308
|
+
var t={value:Y(e),illegal:!1,relevance:0,_top:c,_emitter:new g.__emitter(g)}
|
309
|
+
;return t._emitter.addText(e),t})(e),r=t.filter(O).filter(N).map((function (t){ return E(t,e,!1); }))
|
310
|
+
;r.unshift(n);var s=r.sort((function (e,t){
|
311
|
+
if(e.relevance!==t.relevance){ return t.relevance-e.relevance
|
312
|
+
; }if(e.language&&t.language){if(O(e.language).supersetOf===t.language){ return 1
|
313
|
+
; }if(O(t.language).supersetOf===e.language){ return-1 }}return 0}));
|
314
|
+
var o = s[0];
|
315
|
+
var a = s[1];
|
316
|
+
var l=o
|
317
|
+
;return l.secondBest=a,l}function w(e){var t=null;var n=(function (e){
|
318
|
+
var t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
319
|
+
;var n=g.languageDetectRe.exec(t);if(n){var t$1=O(n[1])
|
320
|
+
;return t$1||(W(a.replace("{}",n[1])),
|
321
|
+
W("Falling back to no-highlight mode for this block.",e)),t$1?n[1]:"no-highlight"}
|
322
|
+
return t.split(/\s+/).find((function (e){ return b(e)||O(e); }))})(e);if(b(n)){ return
|
323
|
+
; }if(k("before:highlightElement",{el:e,language:n
|
263
324
|
}),e.children.length>0&&(g.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
264
325
|
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
265
326
|
console.warn("The element with unescaped HTML:"),
|
266
|
-
console.warn(e)),g.throwUnescapedHTML))throw new J("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
267
|
-
;t=e;
|
268
|
-
;e.innerHTML=s.value,((e,t,n)
|
327
|
+
console.warn(e)),g.throwUnescapedHTML)){ throw new J("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
328
|
+
; }t=e;var i=t.textContent,s=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
329
|
+
;e.innerHTML=s.value,(function (e,t,n){var i=t&&r[t]||n
|
269
330
|
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
270
331
|
})(e,n,s.language),e.result={language:s.language,re:s.relevance,
|
271
332
|
relevance:s.relevance},s.secondBest&&(e.secondBest={
|
272
333
|
language:s.secondBest.language,relevance:s.secondBest.relevance
|
273
|
-
}),k("after:highlightElement",{el:e,result:s,text:i})}
|
334
|
+
}),k("after:highlightElement",{el:e,result:s,text:i})}var y=!1;function _(){
|
274
335
|
"loading"!==document.readyState?document.querySelectorAll(g.cssSelector).forEach(w):y=!0
|
275
336
|
}function O(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}
|
276
|
-
function v(e,
|
277
|
-
|
278
|
-
|
337
|
+
function v(e,ref){
|
338
|
+
var t = ref.languageName;
|
339
|
+
"string"==typeof e&&(e=[e]),e.forEach((function (e){
|
340
|
+
r[e.toLowerCase()]=t}))}function N(e){var t=O(e)
|
341
|
+
;return t&&!t.disableAutodetect}function k(e,t){var n=e;s.forEach((function (e){
|
279
342
|
e[n]&&e[n](t)}))}
|
280
|
-
"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()
|
343
|
+
"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function (){
|
281
344
|
y&&_()}),!1),Object.assign(t,{highlight:m,highlightAuto:x,highlightAll:_,
|
282
345
|
highlightElement:w,
|
283
|
-
highlightBlock:e
|
284
|
-
X("10.7.0","Please use highlightElement now."),w(e)),configure:e
|
285
|
-
initHighlighting:()
|
346
|
+
highlightBlock:function (e){ return (X("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
347
|
+
X("10.7.0","Please use highlightElement now."),w(e)); },configure:function (e){g=Q(g,e)},
|
348
|
+
initHighlighting:function (){
|
286
349
|
_(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
287
|
-
initHighlightingOnLoad:()
|
350
|
+
initHighlightingOnLoad:function (){
|
288
351
|
_(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
289
|
-
},registerLanguage:(e,n)
|
352
|
+
},registerLanguage:function (e,n){var r=null;try{r=n(t)}catch(t$1){
|
290
353
|
if(K("Language definition for '{}' could not be registered.".replace("{}",e)),
|
291
|
-
!o)throw t;K(t),r=c}
|
354
|
+
!o){ throw t$1; }K(t$1),r=c}
|
292
355
|
r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&v(r.aliases,{
|
293
|
-
languageName:e})},unregisterLanguage:e
|
294
|
-
;for(
|
295
|
-
|
296
|
-
|
297
|
-
|
356
|
+
languageName:e})},unregisterLanguage:function (e){delete i[e]
|
357
|
+
;for(var i$1 = 0, list = Object.keys(r); i$1 < list.length; i$1 += 1){
|
358
|
+
var t = list[i$1];
|
359
|
+
|
360
|
+
r[t]===e&&delete r[t]
|
361
|
+
}},
|
362
|
+
listLanguages:function (){ return Object.keys(i); },getLanguage:O,registerAliases:v,
|
363
|
+
autoDetection:N,inherit:Q,addPlugin:function (e){(function (e){
|
364
|
+
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=function (t){
|
298
365
|
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
299
|
-
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t
|
366
|
+
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=function (t){
|
300
367
|
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),s.push(e)}
|
301
|
-
}),t.debugMode=()
|
368
|
+
}),t.debugMode=function (){o=!1},t.safeMode=function (){o=!0
|
302
369
|
},t.versionString="11.7.0",t.regex={concat:p,lookahead:d,either:f,optional:h,
|
303
|
-
anyNumberOfTimes:u};for(
|
304
|
-
;return Object.assign(t,A),t})({});return te}()
|
370
|
+
anyNumberOfTimes:u};for(var t$1 in A){ "object"==typeof A[t$1]&&e.exports(A[t$1])
|
371
|
+
; }return Object.assign(t,A),t})({});return te}()
|
305
372
|
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);/*! `pgsql` grammar compiled for Highlight.js 11.7.0 */
|
306
|
-
(()
|
307
|
-
|
373
|
+
(function (){var E=(function (){"use strict";return function (E){
|
374
|
+
var T=E.COMMENT("--","$"),N="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",A="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",R=A.trim().split(" ").map((function (E){ return E.split("|")[0]; })).join("|"),I="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST".split(" ").map((function (E){ return E.split("|")[0]; })).join("|")
|
308
375
|
;return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",
|
309
376
|
case_insensitive:!0,keywords:{
|
310
377
|
keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",
|
@@ -370,4 +437,4 @@ endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]
|
|
370
437
|
},E.C_NUMBER_MODE,E.C_BLOCK_COMMENT_MODE,T,{className:"meta",variants:[{
|
371
438
|
begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{
|
372
439
|
className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}}
|
373
|
-
})();hljs.registerLanguage("pgsql",E)})();
|
440
|
+
})();hljs.registerLanguage("pgsql",E)})();
|
data/lib/pghero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pghero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|