|
|
@ -1,4 +1,4 @@
|
|
|
|
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+c+cpp+coffeescript+ruby+elixir+go+lua+nginx+perl+php+python+rust+sql+typescript */
|
|
|
|
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+c+cpp+coffeescript+ruby+elixir+go+json+lua+nginx+perl+php+python+rust+sql+typescript */
|
|
|
|
var _self = (typeof window !== 'undefined')
|
|
|
|
var _self = (typeof window !== 'undefined')
|
|
|
|
? window // if in browser
|
|
|
|
? window // if in browser
|
|
|
|
: (
|
|
|
|
: (
|
|
|
@ -1006,6 +1006,18 @@ Prism.languages.go = Prism.languages.extend('clike', {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
delete Prism.languages.go['class-name'];
|
|
|
|
delete Prism.languages.go['class-name'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prism.languages.json = {
|
|
|
|
|
|
|
|
'property': /".*?"(?=\s*:)/ig,
|
|
|
|
|
|
|
|
'string': /"(?!:)(\\?[^"])*?"(?!:)/g,
|
|
|
|
|
|
|
|
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
|
|
|
|
|
|
|
|
'punctuation': /[{}[\]);,]/g,
|
|
|
|
|
|
|
|
'operator': /:/g,
|
|
|
|
|
|
|
|
'boolean': /\b(true|false)\b/gi,
|
|
|
|
|
|
|
|
'null': /\bnull\b/gi,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prism.languages.jsonp = Prism.languages.json;
|
|
|
|
|
|
|
|
|
|
|
|
Prism.languages.lua = {
|
|
|
|
Prism.languages.lua = {
|
|
|
|
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
|
|
|
|
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
|
|
|
|
// \z may be used to skip the following space
|
|
|
|
// \z may be used to skip the following space
|
|
|
|