From 1e7770329ebe58787a6873887a9352a65c4724c3 Mon Sep 17 00:00:00 2001
From: Xcnte <38680808+Xcnte@users.noreply.github.com>
Date: Tue, 30 Jun 2020 20:03:12 +0800
Subject: [PATCH] Update prism.js
---
static/prism.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/prism.js b/static/prism.js
index 1116412..c28af22 100644
--- a/static/prism.js
+++ b/static/prism.js
@@ -89,7 +89,7 @@ c.textContent=b);return c}});Prism.hooks.add("complete",k)}})();
function(e){var c=e.element.parentNode;if(c&&/pre/i.test(c.nodeName)&&(e=c.getAttribute("data-language")||b[e.language]||e.language&&e.language.substring(0,1).toUpperCase()+e.language.substring(1)))return c=document.createElement("span"),c.textContent=e,c})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")})();
Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,
function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};
-Prism.languages.golang=Prism.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
+Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
number:/(?:\b0x[a-f\d]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[-+]?\d+)?)i?/i,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0}});delete Prism.languages.go["class-name"];
(function(){if("undefined"!==typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var b=window.ClipboardJS||void 0;b||"function"!==typeof require||(b=require("clipboard"));var e=[];if(!b){var c=document.createElement("script"),d=document.querySelector("head");c.onload=function(){if(b=window.ClipboardJS)for(;e.length;)e.pop()()};c.src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js";d.appendChild(c)}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(c){function a(){var a=
new b(g,{text:function(){return c.code}});a.on("success",function(){g.innerHTML=' \u5df2\u590d\u5236';d()});a.on("error",function(){g.textContent="Press Ctrl+C to copy";d()})}function d(){setTimeout(function(){g.innerHTML=' \u590d\u5236'},5E3)}var g=document.createElement("button");g.innerHTML=' \u590d\u5236';