modern-monaco 0.0.0-beta.0 → 0.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shiki.js CHANGED
@@ -5,707 +5,12 @@ var __export = (target, all2) => {
5
5
  };
6
6
 
7
7
  // <define:TM_GRAMMARS>
8
- var define_TM_GRAMMARS_default = [{ name: "abap", scopeName: "source.abap" }, { name: "actionscript-3", scopeName: "source.actionscript.3" }, { name: "ada", scopeName: "source.ada" }, { name: "angular-html", scopeName: "text.html.derivative.ng", embedded: ["html", "angular-expression", "angular-let-declaration", "angular-template", "angular-template-blocks"] }, { name: "angular-ts", scopeName: "source.ts.ng", embedded: ["angular-expression", "angular-inline-style", "angular-inline-template", "angular-let-declaration", "angular-template", "angular-template-blocks"] }, { name: "apache", scopeName: "source.apacheconf" }, { name: "apex", scopeName: "source.apex" }, { name: "apl", scopeName: "source.apl", embedded: ["html", "xml", "css", "javascript", "json"] }, { name: "applescript", scopeName: "source.applescript" }, { name: "ara", scopeName: "source.ara" }, { name: "asciidoc", scopeName: "text.asciidoc", aliases: ["adoc"], embedded: ["html", "yaml", "csv", "c", "clojure", "coffee", "cpp", "css", "csharp", "diff", "docker", "elixir", "elm", "erlang", "go", "groovy", "haskell", "java", "javascript", "json", "jsx", "julia", "kotlin", "less", "make", "objective-c", "ocaml", "perl", "python", "r", "ruby", "rust", "sass", "scala", "scss", "shellscript", "sql", "swift", "toml", "typescript", "xml"] }, { name: "asm", scopeName: "source.asm.x86_64" }, { name: "astro", scopeName: "source.astro", embedded: ["json", "javascript", "typescript", "stylus", "sass", "css", "scss", "less", "postcss", "tsx"] }, { name: "awk", scopeName: "source.awk" }, { name: "ballerina", scopeName: "source.ballerina" }, { name: "bat", scopeName: "source.batchfile", aliases: ["batch"] }, { name: "beancount", scopeName: "text.beancount" }, { name: "berry", scopeName: "source.berry", aliases: ["be"] }, { name: "bibtex", scopeName: "text.bibtex" }, { name: "bicep", scopeName: "source.bicep" }, { name: "blade", scopeName: "text.html.php.blade", embedded: ["html-derivative", "html", "xml", "sql", "javascript", "json", "css"] }, { name: "bsl", scopeName: "source.bsl", aliases: ["1c"], embedded: ["sdbl"] }, { name: "c", scopeName: "source.c" }, { name: "cadence", scopeName: "source.cadence", aliases: ["cdc"] }, { name: "cairo", scopeName: "source.cairo0", embedded: ["python"] }, { name: "clarity", scopeName: "source.clar" }, { name: "clojure", scopeName: "source.clojure", aliases: ["clj"] }, { name: "cmake", scopeName: "source.cmake" }, { name: "cobol", scopeName: "source.cobol", embedded: ["html", "java"] }, { name: "codeowners", scopeName: "text.codeowners" }, { name: "codeql", scopeName: "source.ql", aliases: ["ql"] }, { name: "coffee", scopeName: "source.coffee", aliases: ["coffeescript"], embedded: ["javascript"] }, { name: "common-lisp", scopeName: "source.commonlisp", aliases: ["lisp"] }, { name: "coq", scopeName: "source.coq" }, { name: "cpp", scopeName: "source.cpp", aliases: ["c++"], embedded: ["cpp-macro", "regexp", "glsl", "sql"] }, { name: "crystal", scopeName: "source.crystal", embedded: ["html", "sql", "css", "c", "javascript", "shellscript"] }, { name: "csharp", scopeName: "source.cs", aliases: ["c#", "cs"] }, { name: "css", scopeName: "source.css" }, { name: "csv", scopeName: "text.csv" }, { name: "cue", scopeName: "source.cue" }, { name: "cypher", scopeName: "source.cypher", aliases: ["cql"] }, { name: "d", scopeName: "source.d" }, { name: "dart", scopeName: "source.dart" }, { name: "dax", scopeName: "source.dax" }, { name: "desktop", scopeName: "source.desktop" }, { name: "diff", scopeName: "source.diff" }, { name: "docker", scopeName: "source.dockerfile", aliases: ["dockerfile"] }, { name: "dotenv", scopeName: "source.dotenv" }, { name: "dream-maker", scopeName: "source.dm" }, { name: "edge", scopeName: "text.html.edge", embedded: ["typescript", "html", "html-derivative"] }, { name: "elixir", scopeName: "source.elixir", embedded: ["html"] }, { name: "elm", scopeName: "source.elm", embedded: ["glsl"] }, { name: "emacs-lisp", scopeName: "source.emacs.lisp", aliases: ["elisp"] }, { name: "erb", scopeName: "text.html.erb", embedded: ["html", "ruby"] }, { name: "erlang", scopeName: "source.erlang", aliases: ["erl"] }, { name: "fennel", scopeName: "source.fnl" }, { name: "fish", scopeName: "source.fish" }, { name: "fluent", scopeName: "source.ftl", aliases: ["ftl"] }, { name: "fortran-fixed-form", scopeName: "source.fortran.fixed", aliases: ["f", "for", "f77"], embedded: ["fortran-free-form"] }, { name: "fortran-free-form", scopeName: "source.fortran.free", aliases: ["f90", "f95", "f03", "f08", "f18"] }, { name: "fsharp", scopeName: "source.fsharp", aliases: ["f#", "fs"], embedded: ["markdown"] }, { name: "gdresource", scopeName: "source.gdresource", embedded: ["gdshader", "gdscript"] }, { name: "gdscript", scopeName: "source.gdscript" }, { name: "gdshader", scopeName: "source.gdshader" }, { name: "genie", scopeName: "source.genie" }, { name: "gherkin", scopeName: "text.gherkin.feature" }, { name: "git-commit", scopeName: "text.git-commit", embedded: ["diff"] }, { name: "git-rebase", scopeName: "text.git-rebase", embedded: ["shellscript"] }, { name: "gleam", scopeName: "source.gleam" }, { name: "glimmer-js", scopeName: "source.gjs", aliases: ["gjs"], embedded: ["javascript", "typescript", "css", "html"] }, { name: "glimmer-ts", scopeName: "source.gts", aliases: ["gts"], embedded: ["typescript", "css", "javascript", "html"] }, { name: "glsl", scopeName: "source.glsl", embedded: ["c"] }, { name: "gnuplot", scopeName: "source.gnuplot" }, { name: "go", scopeName: "source.go" }, { name: "graphql", scopeName: "source.graphql", aliases: ["gql"], embedded: ["javascript", "typescript", "jsx", "tsx"] }, { name: "groovy", scopeName: "source.groovy" }, { name: "hack", scopeName: "source.hack", embedded: ["html", "sql"] }, { name: "haml", scopeName: "text.haml", embedded: ["ruby", "javascript", "sass", "coffee", "markdown", "css"] }, { name: "handlebars", scopeName: "text.html.handlebars", aliases: ["hbs"], embedded: ["html", "css", "javascript", "yaml"] }, { name: "haskell", scopeName: "source.haskell", aliases: ["hs"] }, { name: "haxe", scopeName: "source.hx" }, { name: "hcl", scopeName: "source.hcl" }, { name: "hjson", scopeName: "source.hjson" }, { name: "hlsl", scopeName: "source.hlsl" }, { name: "html", scopeName: "text.html.basic", embedded: ["json", "css", "javascript"] }, { name: "html-derivative", scopeName: "text.html.derivative", embedded: ["html"] }, { name: "http", scopeName: "source.http", embedded: ["shellscript", "json", "xml", "graphql"] }, { name: "hxml", scopeName: "source.hxml", embedded: ["haxe"] }, { name: "hy", scopeName: "source.hy" }, { name: "imba", scopeName: "source.imba" }, { name: "ini", scopeName: "source.ini", aliases: ["properties"] }, { name: "java", scopeName: "source.java" }, { name: "javascript", scopeName: "source.js", aliases: ["js", "mjs", "cjs"], embedded: ["html", "css"] }, { name: "jinja", scopeName: "source.jinja", embedded: ["jinja-html"] }, { name: "jison", scopeName: "source.jison", embedded: ["javascript"] }, { name: "json", scopeName: "source.json" }, { name: "json5", scopeName: "source.json5" }, { name: "jsonc", scopeName: "source.json.comments" }, { name: "jsonl", scopeName: "source.json.lines" }, { name: "jsonnet", scopeName: "source.jsonnet" }, { name: "jssm", scopeName: "source.jssm", aliases: ["fsl"] }, { name: "jsx", scopeName: "source.js.jsx", embedded: ["html", "css"] }, { name: "julia", scopeName: "source.julia", aliases: ["jl"], embedded: ["cpp", "python", "javascript", "r", "sql"] }, { name: "kotlin", scopeName: "source.kotlin", aliases: ["kt", "kts"] }, { name: "kusto", scopeName: "source.kusto", aliases: ["kql"] }, { name: "latex", scopeName: "text.tex.latex", embedded: ["tex", "shellscript", "css", "gnuplot", "haskell", "html", "java", "julia", "javascript", "lua", "python", "ruby", "rust", "typescript", "xml", "yaml", "scala"] }, { name: "lean", scopeName: "source.lean4", aliases: ["lean4"] }, { name: "less", scopeName: "source.css.less" }, { name: "liquid", scopeName: "text.html.liquid", embedded: ["html", "css", "json", "javascript"] }, { name: "llvm", scopeName: "source.llvm" }, { name: "log", scopeName: "text.log" }, { name: "logo", scopeName: "source.logo" }, { name: "lua", scopeName: "source.lua", embedded: ["c"] }, { name: "luau", scopeName: "source.luau" }, { name: "make", scopeName: "source.makefile", aliases: ["makefile"] }, { name: "markdown", scopeName: "text.html.markdown", aliases: ["md"], embedded: ["css", "html", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "git-commit", "git-rebase", "go", "groovy", "pug", "javascript", "json", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "regexp", "rust", "scala", "shellscript", "typescript", "tsx", "csharp", "fsharp", "dart", "handlebars", "log", "erlang", "elixir", "latex", "bibtex", "html-derivative"] }, { name: "marko", scopeName: "text.marko", embedded: ["css", "less", "scss", "javascript"] }, { name: "matlab", scopeName: "source.matlab" }, { name: "mdc", scopeName: "text.markdown.mdc.standalone", embedded: ["markdown", "yaml", "html-derivative"] }, { name: "mdx", scopeName: "source.mdx", embedded: ["tsx", "toml", "yaml", "c", "clojure", "coffee", "cpp", "csharp", "css", "diff", "docker", "elixir", "elm", "erlang", "go", "graphql", "haskell", "html", "ini", "java", "javascript", "json", "julia", "kotlin", "less", "lua", "make", "markdown", "objective-c", "perl", "python", "r", "ruby", "rust", "scala", "scss", "shellscript", "shellsession", "sql", "xml", "swift", "typescript"] }, { name: "mermaid", scopeName: "markdown.mermaid.codeblock", aliases: ["mmd"] }, { name: "mipsasm", scopeName: "source.mips", aliases: ["mips"] }, { name: "mojo", scopeName: "source.mojo" }, { name: "move", scopeName: "source.move" }, { name: "narrat", scopeName: "source.narrat", aliases: ["nar"] }, { name: "nextflow", scopeName: "source.nextflow", aliases: ["nf"] }, { name: "nginx", scopeName: "source.nginx", embedded: ["lua"] }, { name: "nim", scopeName: "source.nim", embedded: ["c", "html", "xml", "javascript", "css", "glsl", "markdown"] }, { name: "nix", scopeName: "source.nix" }, { name: "nushell", scopeName: "source.nushell", aliases: ["nu"] }, { name: "objective-c", scopeName: "source.objc", aliases: ["objc"] }, { name: "objective-cpp", scopeName: "source.objcpp" }, { name: "ocaml", scopeName: "source.ocaml" }, { name: "pascal", scopeName: "source.pascal" }, { name: "perl", scopeName: "source.perl", embedded: ["html", "xml", "css", "javascript", "sql"] }, { name: "php", scopeName: "source.php", embedded: ["html", "xml", "sql", "javascript", "json", "css"] }, { name: "plsql", scopeName: "source.plsql.oracle" }, { name: "po", scopeName: "source.po", aliases: ["pot", "potx"] }, { name: "polar", scopeName: "source.polar" }, { name: "postcss", scopeName: "source.css.postcss" }, { name: "powerquery", scopeName: "source.powerquery" }, { name: "powershell", scopeName: "source.powershell", aliases: ["ps", "ps1"] }, { name: "prisma", scopeName: "source.prisma" }, { name: "prolog", scopeName: "source.prolog" }, { name: "proto", scopeName: "source.proto", aliases: ["protobuf"] }, { name: "pug", scopeName: "text.pug", aliases: ["jade"], embedded: ["javascript", "css", "sass", "scss", "stylus", "coffee", "html"] }, { name: "puppet", scopeName: "source.puppet" }, { name: "purescript", scopeName: "source.purescript" }, { name: "python", scopeName: "source.python", aliases: ["py"] }, { name: "qml", scopeName: "source.qml", embedded: ["javascript"] }, { name: "qmldir", scopeName: "source.qmldir" }, { name: "qss", scopeName: "source.qss" }, { name: "r", scopeName: "source.r" }, { name: "racket", scopeName: "source.racket" }, { name: "raku", scopeName: "source.perl.6", aliases: ["perl6"] }, { name: "razor", scopeName: "text.aspnetcorerazor", embedded: ["html", "csharp"] }, { name: "reg", scopeName: "source.reg" }, { name: "regexp", scopeName: "source.regexp.python", aliases: ["regex"] }, { name: "rel", scopeName: "source.rel" }, { name: "riscv", scopeName: "source.riscv" }, { name: "rst", scopeName: "source.rst", embedded: ["html-derivative", "cpp", "python", "javascript", "shellscript", "yaml", "cmake", "ruby"] }, { name: "ruby", scopeName: "source.ruby", aliases: ["rb"], embedded: ["html", "haml", "xml", "sql", "graphql", "css", "cpp", "c", "javascript", "shellscript", "lua", "yaml"] }, { name: "rust", scopeName: "source.rust", aliases: ["rs"] }, { name: "sas", scopeName: "source.sas", embedded: ["sql"] }, { name: "sass", scopeName: "source.sass" }, { name: "scala", scopeName: "source.scala" }, { name: "scheme", scopeName: "source.scheme" }, { name: "scss", scopeName: "source.css.scss", embedded: ["css"] }, { name: "sdbl", scopeName: "source.sdbl", aliases: ["1c-query"] }, { name: "shaderlab", scopeName: "source.shaderlab", aliases: ["shader"], embedded: ["hlsl"] }, { name: "shellscript", scopeName: "source.shell", aliases: ["bash", "sh", "shell", "zsh"] }, { name: "shellsession", scopeName: "text.shell-session", aliases: ["console"], embedded: ["shellscript"] }, { name: "smalltalk", scopeName: "source.smalltalk" }, { name: "solidity", scopeName: "source.solidity" }, { name: "soy", scopeName: "text.html.soy", aliases: ["closure-templates"], embedded: ["html"] }, { name: "sparql", scopeName: "source.sparql", embedded: ["turtle"] }, { name: "splunk", scopeName: "source.splunk_search", aliases: ["spl"] }, { name: "sql", scopeName: "source.sql" }, { name: "ssh-config", scopeName: "source.ssh-config" }, { name: "stata", scopeName: "source.stata", embedded: ["sql"] }, { name: "stylus", scopeName: "source.stylus", aliases: ["styl"] }, { name: "svelte", scopeName: "source.svelte", embedded: ["javascript", "typescript", "coffee", "stylus", "sass", "css", "scss", "less", "postcss", "pug", "markdown"] }, { name: "swift", scopeName: "source.swift" }, { name: "system-verilog", scopeName: "source.systemverilog" }, { name: "systemd", scopeName: "source.systemd" }, { name: "talonscript", scopeName: "source.talon", aliases: ["talon"] }, { name: "tasl", scopeName: "source.tasl" }, { name: "tcl", scopeName: "source.tcl" }, { name: "templ", scopeName: "source.templ", embedded: ["go", "javascript", "css"] }, { name: "terraform", scopeName: "source.hcl.terraform", aliases: ["tf", "tfvars"] }, { name: "tex", scopeName: "text.tex", embedded: ["r"] }, { name: "toml", scopeName: "source.toml" }, { name: "ts-tags", scopeName: "source.ts.tags", aliases: ["lit"], embedded: ["typescript", "es-tag-css", "es-tag-glsl", "es-tag-html", "es-tag-sql", "es-tag-xml"] }, { name: "tsv", scopeName: "text.tsv" }, { name: "tsx", scopeName: "source.tsx", embedded: ["html", "css"] }, { name: "turtle", scopeName: "source.turtle" }, { name: "twig", scopeName: "text.html.twig", embedded: ["css", "javascript", "scss", "php", "python", "ruby"] }, { name: "typescript", scopeName: "source.ts", aliases: ["ts", "mts", "cts"], embedded: ["html", "css"] }, { name: "typespec", scopeName: "source.tsp", aliases: ["tsp"] }, { name: "typst", scopeName: "source.typst", aliases: ["typ"] }, { name: "v", scopeName: "source.v" }, { name: "vala", scopeName: "source.vala" }, { name: "vb", scopeName: "source.asp.vb.net", aliases: ["cmd"] }, { name: "verilog", scopeName: "source.verilog" }, { name: "vhdl", scopeName: "source.vhdl" }, { name: "viml", scopeName: "source.viml", aliases: ["vim", "vimscript"] }, { name: "vue", scopeName: "source.vue", embedded: ["html", "markdown", "pug", "stylus", "sass", "css", "scss", "less", "javascript", "typescript", "jsx", "tsx", "coffee", "json", "jsonc", "json5", "yaml", "toml", "graphql", "html-derivative", "markdown-vue", "vue-directives", "vue-interpolations", "vue-sfc-style-variable-injection"] }, { name: "vue-html", scopeName: "text.html.vue-html", embedded: ["vue", "javascript"] }, { name: "vyper", scopeName: "source.vyper", aliases: ["vy"] }, { name: "wasm", scopeName: "source.wat" }, { name: "wenyan", scopeName: "source.wenyan", aliases: ["\u6587\u8A00"] }, { name: "wgsl", scopeName: "source.wgsl" }, { name: "wikitext", scopeName: "source.wikitext", aliases: ["mediawiki", "wiki"], embedded: ["html", "css", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "go", "groovy", "pug", "javascript", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "rust", "scala", "shellscript", "typescript", "csharp", "fsharp", "dart", "handlebars", "markdown", "erlang", "elixir", "latex", "bibtex", "json"] }, { name: "wit", scopeName: "source.wit" }, { name: "wolfram", scopeName: "source.wolfram", aliases: ["wl"] }, { name: "xml", scopeName: "text.xml", embedded: ["java"] }, { name: "xsl", scopeName: "text.xml.xsl", embedded: ["xml"] }, { name: "yaml", scopeName: "source.yaml", aliases: ["yml"] }, { name: "zenscript", scopeName: "source.zenscript" }, { name: "zig", scopeName: "source.zig" }];
8
+ var define_TM_GRAMMARS_default = [{ name: "abap", scopeName: "source.abap" }, { name: "actionscript-3", scopeName: "source.actionscript.3" }, { name: "ada", scopeName: "source.ada" }, { name: "angular-html", scopeName: "text.html.derivative.ng", embedded: ["html", "angular-expression", "angular-let-declaration", "angular-template", "angular-template-blocks"] }, { name: "angular-ts", scopeName: "source.ts.ng", embedded: ["angular-expression", "angular-inline-style", "angular-inline-template", "angular-let-declaration", "angular-template", "angular-template-blocks"] }, { name: "apache", scopeName: "source.apacheconf" }, { name: "apex", scopeName: "source.apex" }, { name: "apl", scopeName: "source.apl", embedded: ["html", "xml", "css", "javascript", "json"] }, { name: "applescript", scopeName: "source.applescript" }, { name: "ara", scopeName: "source.ara" }, { name: "asciidoc", scopeName: "text.asciidoc", aliases: ["adoc"], embedded: ["html", "yaml", "csv", "c", "clojure", "coffee", "cpp", "css", "csharp", "diff", "docker", "elixir", "elm", "erlang", "go", "groovy", "haskell", "java", "javascript", "json", "jsx", "julia", "kotlin", "less", "make", "objective-c", "ocaml", "perl", "python", "r", "ruby", "rust", "sass", "scala", "scss", "shellscript", "sql", "swift", "toml", "typescript", "xml"] }, { name: "asm", scopeName: "source.asm.x86_64" }, { name: "astro", scopeName: "source.astro", embedded: ["json", "javascript", "typescript", "stylus", "sass", "css", "scss", "less", "postcss", "tsx"] }, { name: "awk", scopeName: "source.awk" }, { name: "ballerina", scopeName: "source.ballerina" }, { name: "bat", scopeName: "source.batchfile", aliases: ["batch"] }, { name: "beancount", scopeName: "text.beancount" }, { name: "berry", scopeName: "source.berry", aliases: ["be"] }, { name: "bibtex", scopeName: "text.bibtex" }, { name: "bicep", scopeName: "source.bicep" }, { name: "blade", scopeName: "text.html.php.blade", embedded: ["html-derivative", "html", "xml", "sql", "javascript", "json", "css"] }, { name: "bsl", scopeName: "source.bsl", aliases: ["1c"], embedded: ["sdbl"] }, { name: "c", scopeName: "source.c" }, { name: "cadence", scopeName: "source.cadence", aliases: ["cdc"] }, { name: "cairo", scopeName: "source.cairo0", embedded: ["python"] }, { name: "clarity", scopeName: "source.clar" }, { name: "clojure", scopeName: "source.clojure", aliases: ["clj"] }, { name: "cmake", scopeName: "source.cmake" }, { name: "cobol", scopeName: "source.cobol", embedded: ["html", "java"] }, { name: "codeowners", scopeName: "text.codeowners" }, { name: "codeql", scopeName: "source.ql", aliases: ["ql"] }, { name: "coffee", scopeName: "source.coffee", aliases: ["coffeescript"], embedded: ["javascript"] }, { name: "common-lisp", scopeName: "source.commonlisp", aliases: ["lisp"] }, { name: "coq", scopeName: "source.coq" }, { name: "cpp", scopeName: "source.cpp", aliases: ["c++"], embedded: ["cpp-macro", "regexp", "glsl", "sql"] }, { name: "crystal", scopeName: "source.crystal", embedded: ["html", "sql", "css", "c", "javascript", "shellscript"] }, { name: "csharp", scopeName: "source.cs", aliases: ["c#", "cs"] }, { name: "css", scopeName: "source.css" }, { name: "csv", scopeName: "text.csv" }, { name: "cue", scopeName: "source.cue" }, { name: "cypher", scopeName: "source.cypher", aliases: ["cql"] }, { name: "d", scopeName: "source.d" }, { name: "dart", scopeName: "source.dart" }, { name: "dax", scopeName: "source.dax" }, { name: "desktop", scopeName: "source.desktop" }, { name: "diff", scopeName: "source.diff" }, { name: "docker", scopeName: "source.dockerfile", aliases: ["dockerfile"] }, { name: "dotenv", scopeName: "source.dotenv" }, { name: "dream-maker", scopeName: "source.dm" }, { name: "edge", scopeName: "text.html.edge", embedded: ["typescript", "html", "html-derivative"] }, { name: "elixir", scopeName: "source.elixir", embedded: ["html"] }, { name: "elm", scopeName: "source.elm", embedded: ["glsl"] }, { name: "emacs-lisp", scopeName: "source.emacs.lisp", aliases: ["elisp"] }, { name: "erb", scopeName: "text.html.erb", embedded: ["html", "ruby"] }, { name: "erlang", scopeName: "source.erlang", aliases: ["erl"], embedded: ["markdown"] }, { name: "fennel", scopeName: "source.fnl" }, { name: "fish", scopeName: "source.fish" }, { name: "fluent", scopeName: "source.ftl", aliases: ["ftl"] }, { name: "fortran-fixed-form", scopeName: "source.fortran.fixed", aliases: ["f", "for", "f77"], embedded: ["fortran-free-form"] }, { name: "fortran-free-form", scopeName: "source.fortran.free", aliases: ["f90", "f95", "f03", "f08", "f18"] }, { name: "fsharp", scopeName: "source.fsharp", aliases: ["f#", "fs"], embedded: ["markdown"] }, { name: "gdresource", scopeName: "source.gdresource", embedded: ["gdshader", "gdscript"] }, { name: "gdscript", scopeName: "source.gdscript" }, { name: "gdshader", scopeName: "source.gdshader" }, { name: "genie", scopeName: "source.genie" }, { name: "gherkin", scopeName: "text.gherkin.feature" }, { name: "git-commit", scopeName: "text.git-commit", embedded: ["diff"] }, { name: "git-rebase", scopeName: "text.git-rebase", embedded: ["shellscript"] }, { name: "gleam", scopeName: "source.gleam" }, { name: "glimmer-js", scopeName: "source.gjs", aliases: ["gjs"], embedded: ["javascript", "typescript", "css", "html"] }, { name: "glimmer-ts", scopeName: "source.gts", aliases: ["gts"], embedded: ["typescript", "css", "javascript", "html"] }, { name: "glsl", scopeName: "source.glsl", embedded: ["c"] }, { name: "gnuplot", scopeName: "source.gnuplot" }, { name: "go", scopeName: "source.go" }, { name: "graphql", scopeName: "source.graphql", aliases: ["gql"], embedded: ["javascript", "typescript", "jsx", "tsx"] }, { name: "groovy", scopeName: "source.groovy" }, { name: "hack", scopeName: "source.hack", embedded: ["html", "sql"] }, { name: "haml", scopeName: "text.haml", embedded: ["ruby", "javascript", "sass", "coffee", "markdown", "css"] }, { name: "handlebars", scopeName: "text.html.handlebars", aliases: ["hbs"], embedded: ["html", "css", "javascript", "yaml"] }, { name: "haskell", scopeName: "source.haskell", aliases: ["hs"] }, { name: "haxe", scopeName: "source.hx" }, { name: "hcl", scopeName: "source.hcl" }, { name: "hjson", scopeName: "source.hjson" }, { name: "hlsl", scopeName: "source.hlsl" }, { name: "html", scopeName: "text.html.basic", embedded: ["json", "css", "javascript"] }, { name: "html-derivative", scopeName: "text.html.derivative", embedded: ["html"] }, { name: "http", scopeName: "source.http", embedded: ["shellscript", "json", "xml", "graphql"] }, { name: "hxml", scopeName: "source.hxml", embedded: ["haxe"] }, { name: "hy", scopeName: "source.hy" }, { name: "imba", scopeName: "source.imba" }, { name: "ini", scopeName: "source.ini", aliases: ["properties"] }, { name: "java", scopeName: "source.java" }, { name: "javascript", scopeName: "source.js", aliases: ["js", "mjs", "cjs"], embedded: ["html", "css"] }, { name: "jinja", scopeName: "source.jinja", embedded: ["jinja-html"] }, { name: "jison", scopeName: "source.jison", embedded: ["javascript"] }, { name: "json", scopeName: "source.json" }, { name: "json5", scopeName: "source.json5" }, { name: "jsonc", scopeName: "source.json.comments" }, { name: "jsonl", scopeName: "source.json.lines" }, { name: "jsonnet", scopeName: "source.jsonnet" }, { name: "jssm", scopeName: "source.jssm", aliases: ["fsl"] }, { name: "jsx", scopeName: "source.js.jsx", embedded: ["html", "css"] }, { name: "julia", scopeName: "source.julia", aliases: ["jl"], embedded: ["cpp", "python", "javascript", "r", "sql"] }, { name: "kotlin", scopeName: "source.kotlin", aliases: ["kt", "kts"] }, { name: "kusto", scopeName: "source.kusto", aliases: ["kql"] }, { name: "latex", scopeName: "text.tex.latex", embedded: ["tex", "shellscript", "css", "gnuplot", "haskell", "html", "java", "julia", "javascript", "lua", "python", "ruby", "rust", "typescript", "xml", "yaml", "scala"] }, { name: "lean", scopeName: "source.lean4", aliases: ["lean4"] }, { name: "less", scopeName: "source.css.less" }, { name: "liquid", scopeName: "text.html.liquid", embedded: ["html", "css", "json", "javascript"] }, { name: "llvm", scopeName: "source.llvm" }, { name: "log", scopeName: "text.log" }, { name: "logo", scopeName: "source.logo" }, { name: "lua", scopeName: "source.lua", embedded: ["c"] }, { name: "luau", scopeName: "source.luau" }, { name: "make", scopeName: "source.makefile", aliases: ["makefile"] }, { name: "markdown", scopeName: "text.html.markdown", aliases: ["md"], embedded: ["css", "html", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "git-commit", "git-rebase", "go", "groovy", "pug", "javascript", "json", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "regexp", "rust", "scala", "shellscript", "typescript", "tsx", "csharp", "fsharp", "dart", "handlebars", "log", "erlang", "elixir", "latex", "bibtex", "html-derivative"] }, { name: "marko", scopeName: "text.marko", embedded: ["css", "less", "scss", "typescript"] }, { name: "matlab", scopeName: "source.matlab" }, { name: "mdc", scopeName: "text.markdown.mdc.standalone", embedded: ["markdown", "yaml", "html-derivative"] }, { name: "mdx", scopeName: "source.mdx", embedded: ["tsx", "toml", "yaml", "c", "clojure", "coffee", "cpp", "csharp", "css", "diff", "docker", "elixir", "elm", "erlang", "go", "graphql", "haskell", "html", "ini", "java", "javascript", "json", "julia", "kotlin", "less", "lua", "make", "markdown", "objective-c", "perl", "python", "r", "ruby", "rust", "scala", "scss", "shellscript", "shellsession", "sql", "xml", "swift", "typescript"] }, { name: "mermaid", scopeName: "markdown.mermaid.codeblock", aliases: ["mmd"] }, { name: "mipsasm", scopeName: "source.mips", aliases: ["mips"] }, { name: "mojo", scopeName: "source.mojo" }, { name: "move", scopeName: "source.move" }, { name: "narrat", scopeName: "source.narrat", aliases: ["nar"] }, { name: "nextflow", scopeName: "source.nextflow", aliases: ["nf"] }, { name: "nginx", scopeName: "source.nginx", embedded: ["lua"] }, { name: "nim", scopeName: "source.nim", embedded: ["c", "html", "xml", "javascript", "css", "glsl", "markdown"] }, { name: "nix", scopeName: "source.nix" }, { name: "nushell", scopeName: "source.nushell", aliases: ["nu"] }, { name: "objective-c", scopeName: "source.objc", aliases: ["objc"] }, { name: "objective-cpp", scopeName: "source.objcpp" }, { name: "ocaml", scopeName: "source.ocaml" }, { name: "pascal", scopeName: "source.pascal" }, { name: "perl", scopeName: "source.perl", embedded: ["html", "xml", "css", "javascript", "sql"] }, { name: "php", scopeName: "source.php", embedded: ["html", "xml", "sql", "javascript", "json", "css"] }, { name: "plsql", scopeName: "source.plsql.oracle" }, { name: "po", scopeName: "source.po", aliases: ["pot", "potx"] }, { name: "polar", scopeName: "source.polar" }, { name: "postcss", scopeName: "source.css.postcss" }, { name: "powerquery", scopeName: "source.powerquery" }, { name: "powershell", scopeName: "source.powershell", aliases: ["ps", "ps1"] }, { name: "prisma", scopeName: "source.prisma" }, { name: "prolog", scopeName: "source.prolog" }, { name: "proto", scopeName: "source.proto", aliases: ["protobuf"] }, { name: "pug", scopeName: "text.pug", aliases: ["jade"], embedded: ["javascript", "css", "sass", "scss", "stylus", "coffee", "html"] }, { name: "puppet", scopeName: "source.puppet" }, { name: "purescript", scopeName: "source.purescript" }, { name: "python", scopeName: "source.python", aliases: ["py"] }, { name: "qml", scopeName: "source.qml", embedded: ["javascript"] }, { name: "qmldir", scopeName: "source.qmldir" }, { name: "qss", scopeName: "source.qss" }, { name: "r", scopeName: "source.r" }, { name: "racket", scopeName: "source.racket" }, { name: "raku", scopeName: "source.perl.6", aliases: ["perl6"] }, { name: "razor", scopeName: "text.aspnetcorerazor", embedded: ["html", "csharp"] }, { name: "reg", scopeName: "source.reg" }, { name: "regexp", scopeName: "source.regexp.python", aliases: ["regex"] }, { name: "rel", scopeName: "source.rel" }, { name: "riscv", scopeName: "source.riscv" }, { name: "rst", scopeName: "source.rst", embedded: ["html-derivative", "cpp", "python", "javascript", "shellscript", "yaml", "cmake", "ruby"] }, { name: "ruby", scopeName: "source.ruby", aliases: ["rb"], embedded: ["html", "haml", "xml", "sql", "graphql", "css", "cpp", "c", "javascript", "shellscript", "lua", "yaml"] }, { name: "rust", scopeName: "source.rust", aliases: ["rs"] }, { name: "sas", scopeName: "source.sas", embedded: ["sql"] }, { name: "sass", scopeName: "source.sass" }, { name: "scala", scopeName: "source.scala" }, { name: "scheme", scopeName: "source.scheme" }, { name: "scss", scopeName: "source.css.scss", embedded: ["css"] }, { name: "sdbl", scopeName: "source.sdbl", aliases: ["1c-query"] }, { name: "shaderlab", scopeName: "source.shaderlab", aliases: ["shader"], embedded: ["hlsl"] }, { name: "shellscript", scopeName: "source.shell", aliases: ["bash", "sh", "shell", "zsh"] }, { name: "shellsession", scopeName: "text.shell-session", aliases: ["console"], embedded: ["shellscript"] }, { name: "smalltalk", scopeName: "source.smalltalk" }, { name: "solidity", scopeName: "source.solidity" }, { name: "soy", scopeName: "text.html.soy", aliases: ["closure-templates"], embedded: ["html"] }, { name: "sparql", scopeName: "source.sparql", embedded: ["turtle"] }, { name: "splunk", scopeName: "source.splunk_search", aliases: ["spl"] }, { name: "sql", scopeName: "source.sql" }, { name: "ssh-config", scopeName: "source.ssh-config" }, { name: "stata", scopeName: "source.stata", embedded: ["sql"] }, { name: "stylus", scopeName: "source.stylus", aliases: ["styl"] }, { name: "svelte", scopeName: "source.svelte", embedded: ["javascript", "typescript", "coffee", "stylus", "sass", "css", "scss", "less", "postcss", "pug", "markdown"] }, { name: "swift", scopeName: "source.swift" }, { name: "system-verilog", scopeName: "source.systemverilog" }, { name: "systemd", scopeName: "source.systemd" }, { name: "talonscript", scopeName: "source.talon", aliases: ["talon"] }, { name: "tasl", scopeName: "source.tasl" }, { name: "tcl", scopeName: "source.tcl" }, { name: "templ", scopeName: "source.templ", embedded: ["go", "javascript", "css"] }, { name: "terraform", scopeName: "source.hcl.terraform", aliases: ["tf", "tfvars"] }, { name: "tex", scopeName: "text.tex", embedded: ["r"] }, { name: "toml", scopeName: "source.toml" }, { name: "ts-tags", scopeName: "source.ts.tags", aliases: ["lit"], embedded: ["typescript", "es-tag-css", "es-tag-glsl", "es-tag-html", "es-tag-sql", "es-tag-xml"] }, { name: "tsv", scopeName: "text.tsv" }, { name: "tsx", scopeName: "source.tsx", embedded: ["html", "css"] }, { name: "turtle", scopeName: "source.turtle" }, { name: "twig", scopeName: "text.html.twig", embedded: ["css", "javascript", "scss", "php", "python", "ruby"] }, { name: "typescript", scopeName: "source.ts", aliases: ["ts", "mts", "cts"], embedded: ["html", "css"] }, { name: "typespec", scopeName: "source.tsp", aliases: ["tsp"] }, { name: "typst", scopeName: "source.typst", aliases: ["typ"] }, { name: "v", scopeName: "source.v" }, { name: "vala", scopeName: "source.vala" }, { name: "vb", scopeName: "source.asp.vb.net", aliases: ["cmd"] }, { name: "verilog", scopeName: "source.verilog" }, { name: "vhdl", scopeName: "source.vhdl" }, { name: "viml", scopeName: "source.viml", aliases: ["vim", "vimscript"] }, { name: "vue", scopeName: "source.vue", embedded: ["markdown", "pug", "stylus", "sass", "css", "scss", "less", "javascript", "typescript", "jsx", "tsx", "coffee", "json", "jsonc", "json5", "yaml", "toml", "graphql", "html-derivative", "html", "markdown-vue", "vue-directives", "vue-interpolations", "vue-sfc-style-variable-injection"] }, { name: "vue-html", scopeName: "text.html.vue-html", embedded: ["vue", "javascript"] }, { name: "vue-vine", scopeName: "source.vue-vine", embedded: ["css", "scss", "less", "stylus", "postcss", "vue", "javascript"] }, { name: "vyper", scopeName: "source.vyper", aliases: ["vy"] }, { name: "wasm", scopeName: "source.wat" }, { name: "wenyan", scopeName: "source.wenyan", aliases: ["\u6587\u8A00"] }, { name: "wgsl", scopeName: "source.wgsl" }, { name: "wikitext", scopeName: "source.wikitext", aliases: ["mediawiki", "wiki"], embedded: ["html", "css", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "go", "groovy", "pug", "javascript", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "rust", "scala", "shellscript", "typescript", "csharp", "fsharp", "dart", "handlebars", "markdown", "erlang", "elixir", "latex", "bibtex", "json"] }, { name: "wit", scopeName: "source.wit" }, { name: "wolfram", scopeName: "source.wolfram", aliases: ["wl"] }, { name: "xml", scopeName: "text.xml", embedded: ["java"] }, { name: "xsl", scopeName: "text.xml.xsl", embedded: ["xml"] }, { name: "yaml", scopeName: "source.yaml", aliases: ["yml"] }, { name: "zenscript", scopeName: "source.zenscript" }, { name: "zig", scopeName: "source.zig" }];
9
9
 
10
10
  // <define:TM_THEMES>
11
11
  var define_TM_THEMES_default = ["andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
12
12
 
13
- // <define:VITESSE_DARK>
14
- var define_VITESSE_DARK_default = {
15
- colors: {
16
- "activityBar.activeBorder": "#4d9375",
17
- "activityBar.background": "#121212",
18
- "activityBar.border": "#191919",
19
- "activityBar.foreground": "#dbd7caee",
20
- "activityBar.inactiveForeground": "#dedcd550",
21
- "activityBarBadge.background": "#bfbaaa",
22
- "activityBarBadge.foreground": "#121212",
23
- "badge.background": "#dedcd590",
24
- "badge.foreground": "#121212",
25
- "breadcrumb.activeSelectionForeground": "#eeeeee18",
26
- "breadcrumb.background": "#181818",
27
- "breadcrumb.focusForeground": "#dbd7caee",
28
- "breadcrumb.foreground": "#959da5",
29
- "breadcrumbPicker.background": "#121212",
30
- "button.background": "#4d9375",
31
- "button.foreground": "#121212",
32
- "button.hoverBackground": "#4d9375",
33
- "checkbox.background": "#181818",
34
- "checkbox.border": "#2f363d",
35
- "debugToolBar.background": "#121212",
36
- descriptionForeground: "#dedcd590",
37
- "diffEditor.insertedTextBackground": "#4d937550",
38
- "diffEditor.removedTextBackground": "#ab595950",
39
- "dropdown.background": "#121212",
40
- "dropdown.border": "#191919",
41
- "dropdown.foreground": "#dbd7caee",
42
- "dropdown.listBackground": "#181818",
43
- "editor.background": "#121212",
44
- "editor.findMatchBackground": "#e6cc7722",
45
- "editor.findMatchHighlightBackground": "#e6cc7744",
46
- "editor.focusedStackFrameHighlightBackground": "#b808",
47
- "editor.foldBackground": "#eeeeee10",
48
- "editor.foreground": "#dbd7caee",
49
- "editor.inactiveSelectionBackground": "#eeeeee10",
50
- "editor.lineHighlightBackground": "#181818",
51
- "editor.selectionBackground": "#eeeeee18",
52
- "editor.selectionHighlightBackground": "#eeeeee10",
53
- "editor.stackFrameHighlightBackground": "#a707",
54
- "editor.wordHighlightBackground": "#1c6b4805",
55
- "editor.wordHighlightStrongBackground": "#1c6b4810",
56
- "editorBracketHighlight.foreground1": "#5eaab5",
57
- "editorBracketHighlight.foreground2": "#4d9375",
58
- "editorBracketHighlight.foreground3": "#d4976c",
59
- "editorBracketHighlight.foreground4": "#d9739f",
60
- "editorBracketHighlight.foreground5": "#e6cc77",
61
- "editorBracketHighlight.foreground6": "#6394bf",
62
- "editorBracketMatch.background": "#4d937520",
63
- "editorError.foreground": "#cb7676",
64
- "editorGroup.border": "#191919",
65
- "editorGroupHeader.tabsBackground": "#121212",
66
- "editorGroupHeader.tabsBorder": "#191919",
67
- "editorGutter.addedBackground": "#4d9375",
68
- "editorGutter.commentRangeForeground": "#dedcd550",
69
- "editorGutter.deletedBackground": "#cb7676",
70
- "editorGutter.foldingControlForeground": "#dedcd590",
71
- "editorGutter.modifiedBackground": "#6394bf",
72
- "editorHint.foreground": "#4d9375",
73
- "editorIndentGuide.activeBackground": "#ffffff30",
74
- "editorIndentGuide.background": "#ffffff15",
75
- "editorInfo.foreground": "#6394bf",
76
- "editorInlayHint.background": "#181818",
77
- "editorInlayHint.foreground": "#666666",
78
- "editorLineNumber.activeForeground": "#bfbaaa",
79
- "editorLineNumber.foreground": "#dedcd550",
80
- "editorOverviewRuler.border": "#111",
81
- "editorStickyScroll.background": "#181818",
82
- "editorStickyScrollHover.background": "#181818",
83
- "editorWarning.foreground": "#d4976c",
84
- "editorWhitespace.foreground": "#ffffff15",
85
- "editorWidget.background": "#121212",
86
- errorForeground: "#cb7676",
87
- focusBorder: "#00000000",
88
- foreground: "#dbd7caee",
89
- "gitDecoration.addedResourceForeground": "#4d9375",
90
- "gitDecoration.conflictingResourceForeground": "#d4976c",
91
- "gitDecoration.deletedResourceForeground": "#cb7676",
92
- "gitDecoration.ignoredResourceForeground": "#dedcd550",
93
- "gitDecoration.modifiedResourceForeground": "#6394bf",
94
- "gitDecoration.submoduleResourceForeground": "#dedcd590",
95
- "gitDecoration.untrackedResourceForeground": "#5eaab5",
96
- "input.background": "#181818",
97
- "input.border": "#191919",
98
- "input.foreground": "#dbd7caee",
99
- "input.placeholderForeground": "#dedcd590",
100
- "inputOption.activeBackground": "#dedcd550",
101
- "list.activeSelectionBackground": "#181818",
102
- "list.activeSelectionForeground": "#dbd7caee",
103
- "list.focusBackground": "#181818",
104
- "list.highlightForeground": "#4d9375",
105
- "list.hoverBackground": "#181818",
106
- "list.hoverForeground": "#dbd7caee",
107
- "list.inactiveFocusBackground": "#121212",
108
- "list.inactiveSelectionBackground": "#181818",
109
- "list.inactiveSelectionForeground": "#dbd7caee",
110
- "menu.separatorBackground": "#191919",
111
- "notificationCenterHeader.background": "#121212",
112
- "notificationCenterHeader.foreground": "#959da5",
113
- "notifications.background": "#121212",
114
- "notifications.border": "#191919",
115
- "notifications.foreground": "#dbd7caee",
116
- "notificationsErrorIcon.foreground": "#cb7676",
117
- "notificationsInfoIcon.foreground": "#6394bf",
118
- "notificationsWarningIcon.foreground": "#d4976c",
119
- "panel.background": "#121212",
120
- "panel.border": "#191919",
121
- "panelInput.border": "#2f363d",
122
- "panelTitle.activeBorder": "#4d9375",
123
- "panelTitle.activeForeground": "#dbd7caee",
124
- "panelTitle.inactiveForeground": "#959da5",
125
- "peekViewEditor.background": "#121212",
126
- "peekViewEditor.matchHighlightBackground": "#ffd33d33",
127
- "peekViewResult.background": "#121212",
128
- "peekViewResult.matchHighlightBackground": "#ffd33d33",
129
- "pickerGroup.border": "#191919",
130
- "pickerGroup.foreground": "#dbd7caee",
131
- "problemsErrorIcon.foreground": "#cb7676",
132
- "problemsInfoIcon.foreground": "#6394bf",
133
- "problemsWarningIcon.foreground": "#d4976c",
134
- "progressBar.background": "#4d9375",
135
- "quickInput.background": "#121212",
136
- "quickInput.foreground": "#dbd7caee",
137
- "quickInputList.focusBackground": "#181818",
138
- "scrollbar.shadow": "#0000",
139
- "scrollbarSlider.activeBackground": "#dedcd550",
140
- "scrollbarSlider.background": "#dedcd510",
141
- "scrollbarSlider.hoverBackground": "#dedcd550",
142
- "settings.headerForeground": "#dbd7caee",
143
- "settings.modifiedItemIndicator": "#4d9375",
144
- "sideBar.background": "#121212",
145
- "sideBar.border": "#191919",
146
- "sideBar.foreground": "#bfbaaa",
147
- "sideBarSectionHeader.background": "#121212",
148
- "sideBarSectionHeader.border": "#191919",
149
- "sideBarSectionHeader.foreground": "#dbd7caee",
150
- "sideBarTitle.foreground": "#dbd7caee",
151
- "statusBar.background": "#121212",
152
- "statusBar.border": "#191919",
153
- "statusBar.debuggingBackground": "#181818",
154
- "statusBar.debuggingForeground": "#bfbaaa",
155
- "statusBar.foreground": "#bfbaaa",
156
- "statusBar.noFolderBackground": "#121212",
157
- "statusBarItem.prominentBackground": "#181818",
158
- "tab.activeBackground": "#121212",
159
- "tab.activeBorder": "#191919",
160
- "tab.activeBorderTop": "#dedcd590",
161
- "tab.activeForeground": "#dbd7caee",
162
- "tab.border": "#191919",
163
- "tab.hoverBackground": "#181818",
164
- "tab.inactiveBackground": "#121212",
165
- "tab.inactiveForeground": "#959da5",
166
- "tab.unfocusedActiveBorder": "#191919",
167
- "tab.unfocusedActiveBorderTop": "#191919",
168
- "tab.unfocusedHoverBackground": "#121212",
169
- "terminal.ansiBlack": "#393a34",
170
- "terminal.ansiBlue": "#6394bf",
171
- "terminal.ansiBrightBlack": "#777777",
172
- "terminal.ansiBrightBlue": "#6394bf",
173
- "terminal.ansiBrightCyan": "#5eaab5",
174
- "terminal.ansiBrightGreen": "#4d9375",
175
- "terminal.ansiBrightMagenta": "#d9739f",
176
- "terminal.ansiBrightRed": "#cb7676",
177
- "terminal.ansiBrightWhite": "#ffffff",
178
- "terminal.ansiBrightYellow": "#e6cc77",
179
- "terminal.ansiCyan": "#5eaab5",
180
- "terminal.ansiGreen": "#4d9375",
181
- "terminal.ansiMagenta": "#d9739f",
182
- "terminal.ansiRed": "#cb7676",
183
- "terminal.ansiWhite": "#dbd7ca",
184
- "terminal.ansiYellow": "#e6cc77",
185
- "terminal.foreground": "#dbd7caee",
186
- "terminal.selectionBackground": "#eeeeee18",
187
- "textBlockQuote.background": "#121212",
188
- "textBlockQuote.border": "#191919",
189
- "textCodeBlock.background": "#121212",
190
- "textLink.activeForeground": "#4d9375",
191
- "textLink.foreground": "#4d9375",
192
- "textPreformat.foreground": "#d1d5da",
193
- "textSeparator.foreground": "#586069",
194
- "titleBar.activeBackground": "#121212",
195
- "titleBar.activeForeground": "#bfbaaa",
196
- "titleBar.border": "#181818",
197
- "titleBar.inactiveBackground": "#121212",
198
- "titleBar.inactiveForeground": "#959da5",
199
- "tree.indentGuidesStroke": "#2f363d",
200
- "welcomePage.buttonBackground": "#2f363d",
201
- "welcomePage.buttonHoverBackground": "#444d56"
202
- },
203
- displayName: "Vitesse Dark",
204
- name: "vitesse-dark",
205
- semanticHighlighting: true,
206
- semanticTokenColors: {
207
- class: "#6872ab",
208
- interface: "#5d99a9",
209
- namespace: "#db889a",
210
- property: "#b8a965",
211
- type: "#5d99a9"
212
- },
213
- tokenColors: [
214
- {
215
- scope: [
216
- "comment",
217
- "punctuation.definition.comment",
218
- "string.comment"
219
- ],
220
- settings: {
221
- foreground: "#758575dd"
222
- }
223
- },
224
- {
225
- scope: [
226
- "delimiter.bracket",
227
- "delimiter",
228
- "invalid.illegal.character-not-allowed-here.html",
229
- "keyword.operator.rest",
230
- "keyword.operator.spread",
231
- "keyword.operator.type.annotation",
232
- "keyword.operator.relational",
233
- "keyword.operator.assignment",
234
- "keyword.operator.type",
235
- "meta.brace",
236
- "meta.tag.block.any.html",
237
- "meta.tag.inline.any.html",
238
- "meta.tag.structure.input.void.html",
239
- "meta.type.annotation",
240
- "meta.embedded.block.github-actions-expression",
241
- "storage.type.function.arrow",
242
- "meta.objectliteral.ts",
243
- "punctuation",
244
- "punctuation.definition.string.begin.html.vue",
245
- "punctuation.definition.string.end.html.vue"
246
- ],
247
- settings: {
248
- foreground: "#666666"
249
- }
250
- },
251
- {
252
- scope: [
253
- "constant",
254
- "entity.name.constant",
255
- "variable.language",
256
- "meta.definition.variable"
257
- ],
258
- settings: {
259
- foreground: "#c99076"
260
- }
261
- },
262
- {
263
- scope: [
264
- "entity",
265
- "entity.name"
266
- ],
267
- settings: {
268
- foreground: "#80a665"
269
- }
270
- },
271
- {
272
- scope: "variable.parameter.function",
273
- settings: {
274
- foreground: "#dbd7caee"
275
- }
276
- },
277
- {
278
- scope: [
279
- "entity.name.tag",
280
- "tag.html"
281
- ],
282
- settings: {
283
- foreground: "#4d9375"
284
- }
285
- },
286
- {
287
- scope: "entity.name.function",
288
- settings: {
289
- foreground: "#80a665"
290
- }
291
- },
292
- {
293
- scope: [
294
- "keyword",
295
- "storage.type.class.jsdoc",
296
- "punctuation.definition.template-expression"
297
- ],
298
- settings: {
299
- foreground: "#4d9375"
300
- }
301
- },
302
- {
303
- scope: [
304
- "storage",
305
- "storage.type",
306
- "support.type.builtin",
307
- "constant.language.undefined",
308
- "constant.language.null",
309
- "constant.language.import-export-all.ts"
310
- ],
311
- settings: {
312
- foreground: "#cb7676"
313
- }
314
- },
315
- {
316
- scope: [
317
- "text.html.derivative",
318
- "storage.modifier.package",
319
- "storage.modifier.import",
320
- "storage.type.java"
321
- ],
322
- settings: {
323
- foreground: "#dbd7caee"
324
- }
325
- },
326
- {
327
- scope: [
328
- "string",
329
- "string punctuation.section.embedded source",
330
- "attribute.value"
331
- ],
332
- settings: {
333
- foreground: "#c98a7d"
334
- }
335
- },
336
- {
337
- scope: [
338
- "punctuation.definition.string"
339
- ],
340
- settings: {
341
- foreground: "#c98a7d77"
342
- }
343
- },
344
- {
345
- scope: [
346
- "punctuation.support.type.property-name"
347
- ],
348
- settings: {
349
- foreground: "#b8a96577"
350
- }
351
- },
352
- {
353
- scope: "support",
354
- settings: {
355
- foreground: "#b8a965"
356
- }
357
- },
358
- {
359
- scope: [
360
- "property",
361
- "meta.property-name",
362
- "meta.object-literal.key",
363
- "entity.name.tag.yaml",
364
- "attribute.name"
365
- ],
366
- settings: {
367
- foreground: "#b8a965"
368
- }
369
- },
370
- {
371
- scope: [
372
- "entity.other.attribute-name",
373
- "invalid.deprecated.entity.other.attribute-name.html"
374
- ],
375
- settings: {
376
- foreground: "#bd976a"
377
- }
378
- },
379
- {
380
- scope: [
381
- "variable",
382
- "identifier"
383
- ],
384
- settings: {
385
- foreground: "#bd976a"
386
- }
387
- },
388
- {
389
- scope: [
390
- "support.type.primitive",
391
- "entity.name.type"
392
- ],
393
- settings: {
394
- foreground: "#5DA994"
395
- }
396
- },
397
- {
398
- scope: "namespace",
399
- settings: {
400
- foreground: "#db889a"
401
- }
402
- },
403
- {
404
- scope: [
405
- "keyword.operator",
406
- "keyword.operator.assignment.compound",
407
- "meta.var.expr.ts"
408
- ],
409
- settings: {
410
- foreground: "#cb7676"
411
- }
412
- },
413
- {
414
- scope: "invalid.broken",
415
- settings: {
416
- fontStyle: "italic",
417
- foreground: "#fdaeb7"
418
- }
419
- },
420
- {
421
- scope: "invalid.deprecated",
422
- settings: {
423
- fontStyle: "italic",
424
- foreground: "#fdaeb7"
425
- }
426
- },
427
- {
428
- scope: "invalid.illegal",
429
- settings: {
430
- fontStyle: "italic",
431
- foreground: "#fdaeb7"
432
- }
433
- },
434
- {
435
- scope: "invalid.unimplemented",
436
- settings: {
437
- fontStyle: "italic",
438
- foreground: "#fdaeb7"
439
- }
440
- },
441
- {
442
- scope: "carriage-return",
443
- settings: {
444
- background: "#f97583",
445
- content: "^M",
446
- fontStyle: "italic underline",
447
- foreground: "#24292e"
448
- }
449
- },
450
- {
451
- scope: "message.error",
452
- settings: {
453
- foreground: "#fdaeb7"
454
- }
455
- },
456
- {
457
- scope: "string variable",
458
- settings: {
459
- foreground: "#c98a7d"
460
- }
461
- },
462
- {
463
- scope: [
464
- "source.regexp",
465
- "string.regexp"
466
- ],
467
- settings: {
468
- foreground: "#c4704f"
469
- }
470
- },
471
- {
472
- scope: [
473
- "string.regexp.character-class",
474
- "string.regexp constant.character.escape",
475
- "string.regexp source.ruby.embedded",
476
- "string.regexp string.regexp.arbitrary-repitition"
477
- ],
478
- settings: {
479
- foreground: "#c98a7d"
480
- }
481
- },
482
- {
483
- scope: "string.regexp constant.character.escape",
484
- settings: {
485
- foreground: "#e6cc77"
486
- }
487
- },
488
- {
489
- scope: [
490
- "support.constant"
491
- ],
492
- settings: {
493
- foreground: "#c99076"
494
- }
495
- },
496
- {
497
- scope: [
498
- "keyword.operator.quantifier.regexp",
499
- "constant.numeric",
500
- "number"
501
- ],
502
- settings: {
503
- foreground: "#4C9A91"
504
- }
505
- },
506
- {
507
- scope: [
508
- "keyword.other.unit"
509
- ],
510
- settings: {
511
- foreground: "#cb7676"
512
- }
513
- },
514
- {
515
- scope: [
516
- "constant.language.boolean",
517
- "constant.language"
518
- ],
519
- settings: {
520
- foreground: "#4d9375"
521
- }
522
- },
523
- {
524
- scope: "meta.module-reference",
525
- settings: {
526
- foreground: "#4d9375"
527
- }
528
- },
529
- {
530
- scope: "punctuation.definition.list.begin.markdown",
531
- settings: {
532
- foreground: "#d4976c"
533
- }
534
- },
535
- {
536
- scope: [
537
- "markup.heading",
538
- "markup.heading entity.name"
539
- ],
540
- settings: {
541
- fontStyle: "bold",
542
- foreground: "#4d9375"
543
- }
544
- },
545
- {
546
- scope: "markup.quote",
547
- settings: {
548
- foreground: "#5d99a9"
549
- }
550
- },
551
- {
552
- scope: "markup.italic",
553
- settings: {
554
- fontStyle: "italic",
555
- foreground: "#dbd7caee"
556
- }
557
- },
558
- {
559
- scope: "markup.bold",
560
- settings: {
561
- fontStyle: "bold",
562
- foreground: "#dbd7caee"
563
- }
564
- },
565
- {
566
- scope: "markup.raw",
567
- settings: {
568
- foreground: "#4d9375"
569
- }
570
- },
571
- {
572
- scope: [
573
- "markup.deleted",
574
- "meta.diff.header.from-file",
575
- "punctuation.definition.deleted"
576
- ],
577
- settings: {
578
- background: "#86181d",
579
- foreground: "#fdaeb7"
580
- }
581
- },
582
- {
583
- scope: [
584
- "markup.inserted",
585
- "meta.diff.header.to-file",
586
- "punctuation.definition.inserted"
587
- ],
588
- settings: {
589
- background: "#144620",
590
- foreground: "#85e89d"
591
- }
592
- },
593
- {
594
- scope: [
595
- "markup.changed",
596
- "punctuation.definition.changed"
597
- ],
598
- settings: {
599
- background: "#c24e00",
600
- foreground: "#ffab70"
601
- }
602
- },
603
- {
604
- scope: [
605
- "markup.ignored",
606
- "markup.untracked"
607
- ],
608
- settings: {
609
- background: "#79b8ff",
610
- foreground: "#2f363d"
611
- }
612
- },
613
- {
614
- scope: "meta.diff.range",
615
- settings: {
616
- fontStyle: "bold",
617
- foreground: "#b392f0"
618
- }
619
- },
620
- {
621
- scope: "meta.diff.header",
622
- settings: {
623
- foreground: "#79b8ff"
624
- }
625
- },
626
- {
627
- scope: "meta.separator",
628
- settings: {
629
- fontStyle: "bold",
630
- foreground: "#79b8ff"
631
- }
632
- },
633
- {
634
- scope: "meta.output",
635
- settings: {
636
- foreground: "#79b8ff"
637
- }
638
- },
639
- {
640
- scope: [
641
- "brackethighlighter.tag",
642
- "brackethighlighter.curly",
643
- "brackethighlighter.round",
644
- "brackethighlighter.square",
645
- "brackethighlighter.angle",
646
- "brackethighlighter.quote"
647
- ],
648
- settings: {
649
- foreground: "#d1d5da"
650
- }
651
- },
652
- {
653
- scope: "brackethighlighter.unmatched",
654
- settings: {
655
- foreground: "#fdaeb7"
656
- }
657
- },
658
- {
659
- scope: [
660
- "constant.other.reference.link",
661
- "string.other.link",
662
- "punctuation.definition.string.begin.markdown",
663
- "punctuation.definition.string.end.markdown"
664
- ],
665
- settings: {
666
- foreground: "#c98a7d"
667
- }
668
- },
669
- {
670
- scope: [
671
- "markup.underline.link.markdown",
672
- "markup.underline.link.image.markdown"
673
- ],
674
- settings: {
675
- fontStyle: "underline",
676
- foreground: "#dedcd590"
677
- }
678
- },
679
- {
680
- scope: [
681
- "type.identifier",
682
- "constant.other.character-class.regexp"
683
- ],
684
- settings: {
685
- foreground: "#6872ab"
686
- }
687
- },
688
- {
689
- scope: [
690
- "entity.other.attribute-name.html.vue"
691
- ],
692
- settings: {
693
- foreground: "#80a665"
694
- }
695
- },
696
- {
697
- scope: [
698
- "invalid.illegal.unrecognized-tag.html"
699
- ],
700
- settings: {
701
- fontStyle: "normal"
702
- }
703
- }
704
- ],
705
- type: "dark"
706
- };
707
-
708
- // node_modules/.pnpm/@shikijs+types@3.2.1/node_modules/@shikijs/types/dist/index.mjs
13
+ // node_modules/.pnpm/@shikijs+types@3.9.1/node_modules/@shikijs/types/dist/index.mjs
709
14
  var ShikiError = class extends Error {
710
15
  constructor(message) {
711
16
  super(message);
@@ -6100,7 +5405,7 @@ function all(parent) {
6100
5405
  return results.join("");
6101
5406
  }
6102
5407
 
6103
- // node_modules/.pnpm/@shikijs+core@3.2.1/node_modules/@shikijs/core/dist/index.mjs
5408
+ // node_modules/.pnpm/@shikijs+core@3.9.1/node_modules/@shikijs/core/dist/index.mjs
6104
5409
  function resolveColorReplacements(theme, options) {
6105
5410
  const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
6106
5411
  const themeName = typeof theme === "string" ? theme : theme.name;
@@ -6195,6 +5500,8 @@ function createPositionConverter(code) {
6195
5500
  posToIndex
6196
5501
  };
6197
5502
  }
5503
+ var DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
5504
+ var COLOR_KEYS = ["color", "background-color"];
6198
5505
  function splitToken(token, offsets) {
6199
5506
  let lastOffset = 0;
6200
5507
  const tokens = [];
@@ -6230,7 +5537,7 @@ function splitTokens(tokens, breakpoints) {
6230
5537
  });
6231
5538
  });
6232
5539
  }
6233
- function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor) {
5540
+ function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor, colorsRendering = "css-vars") {
6234
5541
  const token = {
6235
5542
  content: merged.content,
6236
5543
  explanation: merged.explanation,
@@ -6239,15 +5546,30 @@ function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColo
6239
5546
  const styles = variantsOrder.map((t) => getTokenStyleObject(merged.variants[t]));
6240
5547
  const styleKeys = new Set(styles.flatMap((t) => Object.keys(t)));
6241
5548
  const mergedStyles = {};
5549
+ const varKey = (idx, key2) => {
5550
+ const keyName = key2 === "color" ? "" : key2 === "background-color" ? "-bg" : `-${key2}`;
5551
+ return cssVariablePrefix + variantsOrder[idx] + (key2 === "color" ? "" : keyName);
5552
+ };
6242
5553
  styles.forEach((cur, idx) => {
6243
5554
  for (const key2 of styleKeys) {
6244
5555
  const value = cur[key2] || "inherit";
6245
- if (idx === 0 && defaultColor) {
6246
- mergedStyles[key2] = value;
5556
+ if (idx === 0 && defaultColor && COLOR_KEYS.includes(key2)) {
5557
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && styles.length > 1) {
5558
+ const lightIndex = variantsOrder.findIndex((t) => t === "light");
5559
+ const darkIndex = variantsOrder.findIndex((t) => t === "dark");
5560
+ if (lightIndex === -1 || darkIndex === -1)
5561
+ throw new ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
5562
+ const lightValue = styles[lightIndex][key2] || "inherit";
5563
+ const darkValue = styles[darkIndex][key2] || "inherit";
5564
+ mergedStyles[key2] = `light-dark(${lightValue}, ${darkValue})`;
5565
+ if (colorsRendering === "css-vars")
5566
+ mergedStyles[varKey(idx, key2)] = value;
5567
+ } else {
5568
+ mergedStyles[key2] = value;
5569
+ }
6247
5570
  } else {
6248
- const keyName = key2 === "color" ? "" : key2 === "background-color" ? "-bg" : `-${key2}`;
6249
- const varKey = cssVariablePrefix + variantsOrder[idx] + (key2 === "color" ? "" : keyName);
6250
- mergedStyles[varKey] = value;
5571
+ if (colorsRendering === "css-vars")
5572
+ mergedStyles[varKey(idx, key2)] = value;
6251
5573
  }
6252
5574
  }
6253
5575
  });
@@ -6265,8 +5587,13 @@ function getTokenStyleObject(token) {
6265
5587
  styles["font-style"] = "italic";
6266
5588
  if (token.fontStyle & FontStyle.Bold)
6267
5589
  styles["font-weight"] = "bold";
5590
+ const decorations2 = [];
6268
5591
  if (token.fontStyle & FontStyle.Underline)
6269
- styles["text-decoration"] = "underline";
5592
+ decorations2.push("underline");
5593
+ if (token.fontStyle & FontStyle.Strikethrough)
5594
+ decorations2.push("line-through");
5595
+ if (decorations2.length)
5596
+ styles["text-decoration"] = decorations2.join(" ");
6270
5597
  }
6271
5598
  return styles;
6272
5599
  }
@@ -6503,6 +5830,10 @@ function verifyIntersections(items) {
6503
5830
  continue;
6504
5831
  if (isBarHasFooStart && isBarHasFooEnd)
6505
5832
  continue;
5833
+ if (isBarHasFooStart && foo.start.offset === foo.end.offset)
5834
+ continue;
5835
+ if (isFooHasBarEnd && bar.start.offset === bar.end.offset)
5836
+ continue;
6506
5837
  throw new ShikiError(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
6507
5838
  }
6508
5839
  }
@@ -6826,6 +6157,8 @@ function tokenizeAnsiWithTheme(theme, fileContents, options) {
6826
6157
  fontStyle |= FontStyle.Italic;
6827
6158
  if (token.decorations.has("underline"))
6828
6159
  fontStyle |= FontStyle.Underline;
6160
+ if (token.decorations.has("strikethrough"))
6161
+ fontStyle |= FontStyle.Strikethrough;
6829
6162
  return {
6830
6163
  content: token.value,
6831
6164
  offset: line[1],
@@ -7157,7 +6490,8 @@ function codeToTokens(internal, code, options) {
7157
6490
  if ("themes" in options) {
7158
6491
  const {
7159
6492
  defaultColor = "light",
7160
- cssVariablePrefix = "--shiki-"
6493
+ cssVariablePrefix = "--shiki-",
6494
+ colorsRendering = "css-vars"
7161
6495
  } = options;
7162
6496
  const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
7163
6497
  if (themes.length === 0)
@@ -7168,16 +6502,16 @@ function codeToTokens(internal, code, options) {
7168
6502
  options
7169
6503
  );
7170
6504
  grammarState = getLastGrammarStateFromMap(themeTokens);
7171
- if (defaultColor && !themes.find((t) => t.color === defaultColor))
6505
+ if (defaultColor && DEFAULT_COLOR_LIGHT_DARK !== defaultColor && !themes.find((t) => t.color === defaultColor))
7172
6506
  throw new ShikiError(`\`themes\` option must contain the defaultColor key \`${defaultColor}\``);
7173
6507
  const themeRegs = themes.map((t) => internal.getTheme(t.theme));
7174
6508
  const themesOrder = themes.map((t) => t.color);
7175
- tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor)));
6509
+ tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor, colorsRendering)));
7176
6510
  if (grammarState)
7177
6511
  setLastGrammarStateToMap(tokens, grammarState);
7178
6512
  const themeColorReplacements = themes.map((t) => resolveColorReplacements(t.theme, options));
7179
- fg = themes.map((t, idx) => (idx === 0 && defaultColor ? "" : `${cssVariablePrefix + t.color}:`) + (applyColorReplacements(themeRegs[idx].fg, themeColorReplacements[idx]) || "inherit")).join(";");
7180
- bg = themes.map((t, idx) => (idx === 0 && defaultColor ? "" : `${cssVariablePrefix + t.color}-bg:`) + (applyColorReplacements(themeRegs[idx].bg, themeColorReplacements[idx]) || "inherit")).join(";");
6513
+ fg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "fg", colorsRendering);
6514
+ bg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "bg", colorsRendering);
7181
6515
  themeName = `shiki-themes ${themeRegs.map((t) => t.name).join(" ")}`;
7182
6516
  rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
7183
6517
  } else if ("theme" in options) {
@@ -7204,6 +6538,28 @@ function codeToTokens(internal, code, options) {
7204
6538
  grammarState
7205
6539
  };
7206
6540
  }
6541
+ function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, property, colorsRendering) {
6542
+ return themes.map((t, idx) => {
6543
+ const value = applyColorReplacements(themeRegs[idx][property], themeColorReplacements[idx]) || "inherit";
6544
+ const cssVar = `${cssVariablePrefix + t.color}${property === "bg" ? "-bg" : ""}:${value}`;
6545
+ if (idx === 0 && defaultColor) {
6546
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && themes.length > 1) {
6547
+ const lightIndex = themes.findIndex((t2) => t2.color === "light");
6548
+ const darkIndex = themes.findIndex((t2) => t2.color === "dark");
6549
+ if (lightIndex === -1 || darkIndex === -1)
6550
+ throw new ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
6551
+ const lightValue = applyColorReplacements(themeRegs[lightIndex][property], themeColorReplacements[lightIndex]) || "inherit";
6552
+ const darkValue = applyColorReplacements(themeRegs[darkIndex][property], themeColorReplacements[darkIndex]) || "inherit";
6553
+ return `light-dark(${lightValue}, ${darkValue});${cssVar}`;
6554
+ }
6555
+ return value;
6556
+ }
6557
+ if (colorsRendering === "css-vars") {
6558
+ return cssVar;
6559
+ }
6560
+ return null;
6561
+ }).filter((i) => !!i).join(";");
6562
+ }
7207
6563
  function codeToHast(internal, code, options, transformerContext = {
7208
6564
  meta: {},
7209
6565
  options,
@@ -7222,12 +6578,16 @@ function codeToHast(internal, code, options, transformerContext = {
7222
6578
  grammarState
7223
6579
  } = codeToTokens(internal, input, options);
7224
6580
  const {
7225
- mergeWhitespaces = true
6581
+ mergeWhitespaces = true,
6582
+ mergeSameStyleTokens = false
7226
6583
  } = options;
7227
6584
  if (mergeWhitespaces === true)
7228
6585
  tokens = mergeWhitespaceTokens(tokens);
7229
6586
  else if (mergeWhitespaces === "never")
7230
6587
  tokens = splitWhitespaceTokens(tokens);
6588
+ if (mergeSameStyleTokens) {
6589
+ tokens = mergeAdjacentStyledTokens(tokens);
6590
+ }
7231
6591
  const contextSource = {
7232
6592
  ...transformerContext,
7233
6593
  get source() {
@@ -7372,8 +6732,8 @@ function mergeWhitespaceTokens(tokens) {
7372
6732
  let carryOnContent = "";
7373
6733
  let firstOffset = 0;
7374
6734
  line.forEach((token, idx) => {
7375
- const isUnderline = token.fontStyle && token.fontStyle & FontStyle.Underline;
7376
- const couldMerge = !isUnderline;
6735
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
6736
+ const couldMerge = !isDecorated;
7377
6737
  if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
7378
6738
  if (!firstOffset)
7379
6739
  firstOffset = token.offset;
@@ -7437,6 +6797,28 @@ function splitWhitespaceTokens(tokens) {
7437
6797
  });
7438
6798
  });
7439
6799
  }
6800
+ function mergeAdjacentStyledTokens(tokens) {
6801
+ return tokens.map((line) => {
6802
+ const newLine = [];
6803
+ for (const token of line) {
6804
+ if (newLine.length === 0) {
6805
+ newLine.push({ ...token });
6806
+ continue;
6807
+ }
6808
+ const prevToken = newLine[newLine.length - 1];
6809
+ const prevStyle = stringifyTokenStyle(prevToken.htmlStyle || getTokenStyleObject(prevToken));
6810
+ const currentStyle = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
6811
+ const isPrevDecorated = prevToken.fontStyle && (prevToken.fontStyle & FontStyle.Underline || prevToken.fontStyle & FontStyle.Strikethrough);
6812
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
6813
+ if (!isPrevDecorated && !isDecorated && prevStyle === currentStyle) {
6814
+ prevToken.content += token.content;
6815
+ } else {
6816
+ newLine.push({ ...token });
6817
+ }
6818
+ }
6819
+ return newLine;
6820
+ });
6821
+ }
7440
6822
  var hastToHtml = toHtml;
7441
6823
  function codeToHtml(internal, code, options) {
7442
6824
  const context = {
@@ -7881,7 +7263,7 @@ async function createHighlighterCore(options) {
7881
7263
  };
7882
7264
  }
7883
7265
 
7884
- // node_modules/.pnpm/@shikijs+engine-oniguruma@3.2.1/node_modules/@shikijs/engine-oniguruma/dist/index.mjs
7266
+ // node_modules/.pnpm/@shikijs+engine-oniguruma@3.9.1/node_modules/@shikijs/engine-oniguruma/dist/index.mjs
7885
7267
  var ShikiError3 = class extends Error {
7886
7268
  constructor(message) {
7887
7269
  super(message);
@@ -8325,11 +7707,11 @@ async function createOnigurumaEngine(options) {
8325
7707
  };
8326
7708
  }
8327
7709
 
8328
- // node_modules/.pnpm/tm-grammars@1.23.5/node_modules/tm-grammars/package.json
8329
- var version = "1.23.5";
7710
+ // node_modules/.pnpm/tm-grammars@1.24.1/node_modules/tm-grammars/package.json
7711
+ var version = "1.24.1";
8330
7712
 
8331
- // node_modules/.pnpm/tm-themes@1.10.1/node_modules/tm-themes/package.json
8332
- var version2 = "1.10.1";
7713
+ // node_modules/.pnpm/tm-themes@1.10.7/node_modules/tm-themes/package.json
7714
+ var version2 = "1.10.7";
8333
7715
 
8334
7716
  // src/shiki.ts
8335
7717
  import { cache } from "./cache.js";
@@ -8342,11 +7724,13 @@ var DEFAULT_LINUX_FONT_FAMILY = "'Droid Sans Mono', 'monospace', monospace";
8342
7724
  var LINE_NUMBERS_COLOR = "rgba(222, 220, 213, 0.31)";
8343
7725
  var MINIMUM_LINE_HEIGHT = 8;
8344
7726
  var MINIMUM_MAX_DIGIT_WIDTH = 5;
8345
- function render(highlighter, options) {
7727
+ function render(highlighter, input, options = {}) {
8346
7728
  const isBrowser = typeof globalThis.document?.querySelector === "function";
8347
7729
  if (!options.userAgent && !isBrowser) {
8348
7730
  throw new Error("`userAgent` option is required in non-browser environment");
8349
7731
  }
7732
+ const code = typeof input === "string" ? input : input.code;
7733
+ const filename = typeof input === "string" ? void 0 : input.filename;
8350
7734
  const userAgent = options.userAgent ?? globalThis.navigator?.userAgent ?? "";
8351
7735
  const isMacintosh = userAgent.includes("Macintosh");
8352
7736
  const isLinux = userAgent.includes("Linux");
@@ -8359,9 +7743,7 @@ function render(highlighter, options) {
8359
7743
  letterSpacing: 0
8360
7744
  };
8361
7745
  const {
8362
- code,
8363
7746
  language,
8364
- filename,
8365
7747
  theme,
8366
7748
  padding,
8367
7749
  fontWeight = EDITOR_FONT_DEFAULTS.fontWeight,
@@ -8651,12 +8033,11 @@ function normalizeColor(bg, fg) {
8651
8033
 
8652
8034
  // src/shiki.ts
8653
8035
  var tmGrammars = define_TM_GRAMMARS_default;
8654
- var tmThemes = new Set(define_TM_THEMES_default);
8655
- var vitesseDark = "vitesse-dark";
8036
+ var tmThemes = new Map(define_TM_THEMES_default.map((t) => [t, null]));
8656
8037
  async function initShiki({
8657
- theme = vitesseDark,
8038
+ theme = "vitesse-dark",
8658
8039
  langs: languages,
8659
- downloadCDN,
8040
+ tmDownloadCDN,
8660
8041
  engine = createOnigurumaEngine(getDefaultWasmLoader())
8661
8042
  } = {}) {
8662
8043
  const langs = [];
@@ -8668,54 +8049,51 @@ async function initShiki({
8668
8049
  if (!set.has(l.toString())) {
8669
8050
  const g = tmGrammars.find((g2) => g2.name === l);
8670
8051
  if (g?.embedded) {
8671
- langs.push(...g.embedded.map((id) => loadTMGrammar(id, downloadCDN)));
8052
+ langs.push(...g.embedded.map((id) => loadTMGrammar(id, tmDownloadCDN)));
8672
8053
  }
8673
- langs.push(loadTMGrammar(l, downloadCDN));
8054
+ langs.push(loadTMGrammar(l, tmDownloadCDN));
8674
8055
  set.add(l.toString());
8675
8056
  }
8676
- } else if (isPlainObject(l)) {
8057
+ } else if (isPlainObject(l) || typeof l === "function") {
8677
8058
  langs.push(l);
8678
8059
  }
8679
8060
  });
8680
8061
  }
8681
8062
  if (typeof theme === "string" || theme instanceof URL) {
8682
- themes.push(await loadTMTheme(theme, downloadCDN));
8683
- } else if (isPlainObject(theme)) {
8063
+ themes.push(await loadTMTheme(theme, tmDownloadCDN));
8064
+ } else if (isPlainObject(theme) || typeof theme === "function") {
8684
8065
  themes.push(theme);
8685
8066
  }
8686
8067
  const highlighterCore = await createHighlighterCore({ langs, themes, engine });
8687
8068
  Object.assign(highlighterCore, {
8688
- loadThemeFromCDN: (themeName) => highlighterCore.loadTheme(loadTMTheme(themeName, downloadCDN)),
8689
- loadGrammarFromCDN: (...ids) => highlighterCore.loadLanguage(...ids.map((id) => loadTMGrammar(id, downloadCDN)))
8069
+ loadThemeFromCDN: (themeName) => highlighterCore.loadTheme(loadTMTheme(themeName, tmDownloadCDN)),
8070
+ loadGrammarFromCDN: (...ids) => highlighterCore.loadLanguage(...ids.map((id) => loadTMGrammar(id, tmDownloadCDN)))
8690
8071
  });
8691
8072
  return highlighterCore;
8692
8073
  }
8693
8074
  function loadTMTheme(src, cdn = "https://esm.sh") {
8694
- if (src === vitesseDark) {
8695
- return define_VITESSE_DARK_default;
8696
- }
8697
- const hasTheme = typeof src === "string" && tmThemes.has(src);
8698
- if (!hasTheme) {
8699
- const s = src;
8700
- if (!s.startsWith("http://") && !s.startsWith("https://")) {
8701
- throw new Error(`Theme "${src}" not found`);
8702
- }
8075
+ if (typeof src === "string" && tmThemes.has(src)) {
8076
+ const theme = tmThemes.get(src);
8077
+ if (theme) {
8078
+ return theme;
8079
+ }
8080
+ const url = new URL(`/tm-themes@${version2}/themes/${src}.json`, cdn);
8081
+ return cache.fetch(url).then(
8082
+ (res) => res.json().then((theme2) => {
8083
+ tmThemes.set(src, theme2);
8084
+ return theme2;
8085
+ })
8086
+ );
8703
8087
  }
8704
- const url = hasTheme ? new URL(`/tm-themes@${version2}/themes/${src}.json`, cdn) : src;
8705
- return cache.fetch(url).then((res) => res.json());
8088
+ return cache.fetch(src).then((res) => res.json());
8706
8089
  }
8707
8090
  function loadTMGrammar(src, cdn = "https://esm.sh") {
8708
8091
  if (typeof src === "string") {
8709
8092
  const g = tmGrammars.find((g2) => g2.name === src);
8710
- if (!g) {
8711
- if (src.startsWith("http://") || src.startsWith("https://")) {
8712
- return cache.fetch(src).then((res) => res.json());
8713
- } else {
8714
- throw new Error(`Grammar "${src}" not found`);
8715
- }
8093
+ if (g) {
8094
+ const url = new URL(`/tm-grammars@${version}/grammars/${g.name}.json`, cdn);
8095
+ return cache.fetch(url).then((res) => res.json());
8716
8096
  }
8717
- const url = new URL(`/tm-grammars@${version}/grammars/${g.name}.json`, cdn);
8718
- return cache.fetch(url).then((res) => res.json());
8719
8097
  }
8720
8098
  return cache.fetch(src).then((res) => res.json());
8721
8099
  }