This commit is contained in:
oneao committed 2026-10-09 17:32:14 +08:00
1 parent e99a9fb274
commit 0be0b0767a
788 files changed
+112023 -14941

No files matched your search

@@ -0,0 +1,40 @@
import {
markdown_default
} from "./chunk-3VUSIM7I.js";
import {
glsl_default
} from "./chunk-5UNA4ALS.js";
import {
c_default
} from "./chunk-25KP5NK4.js";
import {
xml_default
} from "./chunk-CB6XZMW3.js";
import "./chunk-EIGQKFRT.js";
import {
html_default
} from "./chunk-HJOUG33L.js";
import {
javascript_default
} from "./chunk-ZSIXVCKP.js";
import {
css_default
} from "./chunk-535ORBUG.js";
import "./chunk-DWU6NC2D.js";
// ../node_modules/.pnpm/@shikijs+langs@2.1.0/node_modules/@shikijs/langs/dist/nim.mjs
var lang = Object.freeze(JSON.parse(`{"displayName":"Nim","fileTypes":["nim"],"name":"nim","patterns":[{"begin":"[ \\\\t]*##\\\\[","contentName":"comment.block.doc-comment.content.nim","end":"\\\\]##","name":"comment.block.doc-comment.nim","patterns":[{"include":"#multilinedoccomment","name":"comment.block.doc-comment.nested.nim"}]},{"begin":"[ \\\\t]*#\\\\[","contentName":"comment.block.content.nim","end":"\\\\]#","name":"comment.block.nim","patterns":[{"include":"#multilinecomment","name":"comment.block.nested.nim"}]},{"begin":"(^[ \\\\t]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.nim"}},"end":"(?!\\\\G)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}},"end":"\\\\n","name":"comment.line.number-sign.doc-comment.nim"}]},{"begin":"(^[ \\\\t]+)?(?=#[^\\\\[])","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.nim"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}},"end":"\\\\n","name":"comment.line.number-sign.nim"}]},{"comment":"A nim procedure or method","name":"meta.proc.nim","patterns":[{"begin":"\\\\b(proc|method|template|macro|iterator|converter|func)\\\\s+\\\\\`?([^\\\\:\\\\{\\\\s\\\\\`\\\\*\\\\(]*)\\\\\`?(\\\\s*\\\\*)?\\\\s*(?=\\\\(|\\\\=|:|\\\\[|\\\\n|\\\\{)","captures":{"1":{"name":"keyword.other"},"2":{"name":"entity.name.function.nim"},"3":{"name":"keyword.control.export"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]}]},{"begin":"discard \\"\\"\\"","comment":"A discarded triple string literal comment","end":"\\"\\"\\"(?!\\")","name":"comment.line.discarded.nim"},{"include":"#float_literal"},{"include":"#integer_literal"},{"comment":"Operator as function name","match":"(?<=\\\\\`)[^\\\\\` ]+(?=\\\\\`)","name":"entity.name.function.nim"},{"captures":{"1":{"name":"keyword.control.export"}},"comment":"Export qualifier.","match":"\\\\b\\\\s*(\\\\*)(?:\\\\s*(?=[,:])|\\\\s+(?=[=]))"},{"captures":{"1":{"name":"support.type.nim"},"2":{"name":"keyword.control.export"}},"comment":"Export qualifier following a type def.","match":"\\\\b([A-Z]\\\\w+)(\\\\*)"},{"include":"#string_literal"},{"comment":"Language Constants.","match":"\\\\b(true|false|Inf|NegInf|NaN|nil)\\\\b","name":"constant.language.nim"},{"comment":"Keywords that affect program control flow or scope.","match":"\\\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b","name":"keyword.control.nim"},{"comment":"Keyword boolean operators for expressions.","match":"(\\\\b(and|in|is|isnot|not|notin|or|xor)\\\\b)","name":"keyword.boolean.nim"},{"comment":"Generic operators for expressions.","match":"(=|\\\\+|-|\\\\*|/|<|>|@|\\\\$|~|&|%|!|\\\\?|\\\\^|\\\\.|:|\\\\\\\\)+","name":"keyword.operator.nim"},{"comment":"Other keywords.","match":"(\\\\b(addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template)\\\\b)","name":"keyword.other.nim"},{"comment":"Invalid and unused keywords.","match":"(\\\\b(generic|interface|lambda|out|shared)\\\\b)","name":"invalid.illegal.invalid-keyword.nim"},{"comment":"Common functions","match":"\\\\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\\\\b","name":"keyword.other.common.function.nim"},{"comment":"Built-in, concrete types.","match":"\\\\b(((uint|int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)\\\\b","name":"storage.type.concrete.nim"},{"comment":"Built-in, generic types.","match":"\\\\b(range|array|seq|set|pointer)\\\\b","name":"storage.type.generic.nim"},{"comment":"Special types.","match":"\\\\b(openarray|varargs|void)\\\\b","name":"storage.type.generic.nim"},{"comment":"Other constants.","match":"\\\\b[A-Z][A-Z0-9_]+\\\\b","name":"support.constant.nim"},{"comment":"Other types.","match":"\\\\b[A-Z]\\\\w+\\\\b","name":"support.type.nim"},{"comment":"Function call.","match":"\\\\b\\\\w+\\\\b(?=(\\\\[([a-zA-Z0-9_,]|\\\\s)+\\\\])?\\\\()","name":"support.function.any-method.nim"},{"comment":"Function call (no parenthesis).","match":"(?!(openarray|varargs|void|range|array|seq|set|pointer|new|await|assert|echo|defined|declared|newException|countup|countdown|high|low|((uint|int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed|addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template|and|in|is|isnot|not|notin|or|xor|proc|method|template|macro|iterator|converter|func|true|false|Inf|NegInf|NaN|nil|block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b)\\\\w+\\\\s+(?!(and|in|is|isno Line truncated
var nim_default = [
...c_default,
...html_default,
...xml_default,
...javascript_default,
...css_default,
...glsl_default,
...markdown_default,
lang
];
export {
nim_default as default
};
//# sourceMappingURL=nim-QQWPZ5SX.js.map