mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
use no cdn for script
This commit is contained in:
parent
3fea367e9a
commit
f471ebb919
12 changed files with 2635 additions and 46 deletions
30
templates/js/highlight-go.js
Normal file
30
templates/js/highlight-go.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*! `go` grammar compiled for Highlight.js 11.9.0 */
|
||||
(() => {
|
||||
var e = (() => {
|
||||
"use strict"; return e => {
|
||||
const n = {
|
||||
keyword: ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var"],
|
||||
type: ["bool", "byte", "complex64", "complex128", "error", "float32", "float64", "int8", "int16", "int32", "int64", "string", "uint8", "uint16", "uint32", "uint64", "int", "uint", "uintptr", "rune"],
|
||||
literal: ["true", "false", "iota", "nil"],
|
||||
built_in: ["append", "cap", "close", "complex", "copy", "imag", "len", "make", "new", "panic", "print", "println", "real", "recover", "delete"]
|
||||
}; return {
|
||||
name: "Go", aliases: ["golang"], keywords: n, illegal: "</",
|
||||
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, {
|
||||
className: "string",
|
||||
variants: [e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, { begin: "`", end: "`" }]
|
||||
}, {
|
||||
className: "number", variants: [{
|
||||
begin: e.C_NUMBER_RE + "[i]", relevance: 1
|
||||
}, e.C_NUMBER_MODE]
|
||||
}, { begin: /:=/ }, {
|
||||
className: "function", beginKeywords: "func",
|
||||
end: "\\s*(\\{|$)", excludeEnd: !0, contains: [e.TITLE_MODE, {
|
||||
className: "params",
|
||||
begin: /\(/, end: /\)/, endsParent: !0, keywords: n, illegal: /["']/
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
})()
|
||||
; hljs.registerLanguage("go", e)
|
||||
})();
|
2441
templates/js/highlight.js
Normal file
2441
templates/js/highlight.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue