Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: cimg/node:14.18.1
- image: cimg/node:22.4.0

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -22,15 +22,16 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: yarn install
- run:
command: npm ci -d

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: npm test
- run: npm run test

# To reeneable that the lib needs an account on codecov
# - run:
Expand Down
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ module.exports = {
'plugin:vue/essential'
],
parserOptions: {
'ecmaVersion': 2017,
'sourceType': 'module',
'parser': 'babel-eslint',
ecmaVersion: 2017,
sourceType: 'module',
parser: '@babel/eslint-parser'
},
// required to lint *.vue files
plugins: ['html'],
// add your custom rules here
'rules': {
rules: {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow debugger during development
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.com
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issues or discussions, with the maintainers of this repository before making a change.

## System Requirements
- Node Version: 22.4
- Package Manager: NPM
2 changes: 1 addition & 1 deletion docs/shiki/dist/index.browser.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/shiki/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IGrammar, IRawTheme } from 'vscode-textmate';

type Theme = 'css-variables' | 'dark-plus' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'hc_light' | 'light-plus' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'material-theme' | 'min-dark' | 'min-light' | 'monokai' | 'nord' | 'one-dark-pro' | 'poimandres' | 'rose-pine-dawn' | 'rose-pine-moon' | 'rose-pine' | 'slack-dark' | 'slack-ochin' | 'solarized-dark' | 'solarized-light' | 'vitesse-dark' | 'vitesse-light';
type Theme = 'css-variables' | 'dark-plus' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'light-plus' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'material-theme' | 'min-dark' | 'min-light' | 'monokai' | 'nord' | 'one-dark-pro' | 'poimandres' | 'rose-pine-dawn' | 'rose-pine-moon' | 'rose-pine' | 'slack-dark' | 'slack-ochin' | 'solarized-dark' | 'solarized-light' | 'vitesse-black' | 'vitesse-dark' | 'vitesse-light';
declare const themes: Theme[];

declare enum FontStyle {
Expand Down Expand Up @@ -309,7 +309,7 @@ interface ThemedTokenizerOptions {
includeExplanation?: boolean;
}

type Lang = 'abap' | 'actionscript-3' | 'ada' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bat' | 'batch' | 'beancount' | 'berry' | 'be' | 'bibtex' | 'bicep' | 'blade' | 'c' | 'cadence' | 'cdc' | 'clarity' | 'clojure' | 'clj' | 'cmake' | 'cobol' | 'codeql' | 'ql' | 'coffee' | 'cpp' | 'c++' | 'crystal' | 'csharp' | 'c#' | 'cs' | 'css' | 'cue' | 'cypher' | 'cql' | 'd' | 'dart' | 'dax' | 'diff' | 'docker' | 'dockerfile' | 'dream-maker' | 'elixir' | 'elm' | 'erb' | 'erlang' | 'erl' | 'fish' | 'fsharp' | 'f#' | 'fs' | 'gdresource' | 'gdscript' | 'gdshader' | 'gherkin' | 'git-commit' | 'git-rebase' | 'glimmer-js' | 'gjs' | 'glimmer-ts' | 'gts' | 'glsl' | 'gnuplot' | 'go' | 'graphql' | 'gql' | 'groovy' | 'hack' | 'haml' | 'handlebars' | 'hbs' | 'haskell' | 'hs' | 'hcl' | 'hjson' | 'hlsl' | 'html' | 'http' | 'imba' | 'ini' | 'properties' | 'java' | 'javascript' | 'js' | 'jinja-html' | 'jison' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsonnet' | 'jssm' | 'fsl' | 'jsx' | 'julia' | 'kotlin' | 'kt' | 'kts' | 'kusto' | 'kql' | 'latex' | 'less' | 'liquid' | 'lisp' | 'logo' | 'lua' | 'make' | 'makefile' | 'markdown' | 'md' | 'marko' | 'matlab' | 'mdc' | 'mdx' | 'mermaid' | 'mojo' | 'narrat' | 'nar' | 'nextflow' | 'nf' | 'nginx' | 'nim' | 'nix' | 'objective-c' | 'objc' | 'objective-cpp' | 'ocaml' | 'pascal' | 'perl' | 'php' | 'plsql' | 'postcss' | 'powerquery' | 'powershell' | 'ps' | 'ps1' | 'prisma' | 'prolog' | 'proto' | 'pug' | 'jade' | 'puppet' | 'purescript' | 'python' | 'py' | 'r' | 'raku' | 'perl6' | 'razor' | 'reg' | 'rel' | 'riscv' | 'rst' | 'ruby' | 'rb' | 'rust' | 'rs' | 'sas' | 'sass' | 'scala' | 'scheme' | 'scss' | 'shaderlab' | 'shader' | 'shellscript' | 'bash' | 'sh' | 'shell' | 'zsh' | 'shellsession' | 'console' | 'smalltalk' | 'solidity' | 'sparql' | 'splunk' | 'spl' | 'sql' | 'ssh-config' | 'stata' | 'stylus' | 'styl' | 'svelte' | 'swift' | 'system-verilog' | 'tasl' | 'tcl' | 'tex' | 'toml' | 'tsx' | 'turtle' | 'twig' | 'typescript' | 'ts' | 'v' | 'vb' | 'cmd' | 'verilog' | 'vhdl' | 'viml' | 'vim' | 'vimscript' | 'vue-html' | 'vue' | 'vyper' | 'vy' | 'wasm' | 'wenyan' | '文言' | 'wgsl' | 'wolfram' | 'xml' | 'xsl' | 'yaml' | 'yml' | 'zenscript' | 'zig';
type Lang = 'abap' | 'actionscript-3' | 'ada' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bat' | 'batch' | 'beancount' | 'berry' | 'be' | 'bibtex' | 'bicep' | 'blade' | 'c' | 'cadence' | 'cdc' | 'clarity' | 'clojure' | 'clj' | 'cmake' | 'cobol' | 'codeql' | 'ql' | 'coffee' | 'cpp' | 'c++' | 'crystal' | 'csharp' | 'c#' | 'cs' | 'css' | 'csv' | 'cue' | 'cypher' | 'cql' | 'd' | 'dart' | 'dax' | 'diff' | 'docker' | 'dockerfile' | 'dream-maker' | 'elixir' | 'elm' | 'erb' | 'erlang' | 'erl' | 'fish' | 'fsharp' | 'f#' | 'fs' | 'gdresource' | 'gdscript' | 'gdshader' | 'gherkin' | 'git-commit' | 'git-rebase' | 'glimmer-js' | 'gjs' | 'glimmer-ts' | 'gts' | 'glsl' | 'gnuplot' | 'go' | 'graphql' | 'gql' | 'groovy' | 'hack' | 'haml' | 'handlebars' | 'hbs' | 'haskell' | 'hs' | 'hcl' | 'hjson' | 'hlsl' | 'html' | 'http' | 'imba' | 'ini' | 'properties' | 'java' | 'javascript' | 'js' | 'jinja-html' | 'jison' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsonnet' | 'jssm' | 'fsl' | 'jsx' | 'julia' | 'kotlin' | 'kt' | 'kts' | 'kusto' | 'kql' | 'latex' | 'less' | 'liquid' | 'lisp' | 'logo' | 'lua' | 'make' | 'makefile' | 'markdown' | 'md' | 'marko' | 'matlab' | 'mdc' | 'mdx' | 'mermaid' | 'mojo' | 'narrat' | 'nar' | 'nextflow' | 'nf' | 'nginx' | 'nim' | 'nix' | 'nushell' | 'nu' | 'objective-c' | 'objc' | 'objective-cpp' | 'ocaml' | 'pascal' | 'perl' | 'php' | 'plsql' | 'postcss' | 'powerquery' | 'powershell' | 'ps' | 'ps1' | 'prisma' | 'prolog' | 'proto' | 'pug' | 'jade' | 'puppet' | 'purescript' | 'python' | 'py' | 'r' | 'raku' | 'perl6' | 'razor' | 'reg' | 'rel' | 'riscv' | 'rst' | 'ruby' | 'rb' | 'rust' | 'rs' | 'sas' | 'sass' | 'scala' | 'scheme' | 'scss' | 'shaderlab' | 'shader' | 'shellscript' | 'bash' | 'sh' | 'shell' | 'zsh' | 'shellsession' | 'console' | 'smalltalk' | 'solidity' | 'sparql' | 'splunk' | 'spl' | 'sql' | 'ssh-config' | 'stata' | 'stylus' | 'styl' | 'svelte' | 'swift' | 'system-verilog' | 'tasl' | 'tcl' | 'tex' | 'toml' | 'tsx' | 'turtle' | 'twig' | 'typescript' | 'ts' | 'v' | 'vb' | 'cmd' | 'verilog' | 'vhdl' | 'viml' | 'vim' | 'vimscript' | 'vue-html' | 'vue' | 'vyper' | 'vy' | 'wasm' | 'wenyan' | '文言' | 'wgsl' | 'wolfram' | 'wl' | 'xml' | 'xsl' | 'yaml' | 'yml' | 'zenscript' | 'zig';
declare const languages: ILanguageRegistration[];

declare function getHighlighter(options: HighlighterOptions): Promise<Highlighter>;
Expand Down
25 changes: 20 additions & 5 deletions docs/shiki/dist/index.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const themes = [
"github-dark-dimmed",
"github-dark",
"github-light",
"hc_light",
"light-plus",
"material-theme-darker",
"material-theme-lighter",
Expand All @@ -29,6 +28,7 @@ const themes = [
"slack-ochin",
"solarized-dark",
"solarized-light",
"vitesse-black",
"vitesse-dark",
"vitesse-light"
];
Expand Down Expand Up @@ -258,6 +258,13 @@ const languages = [
displayName: "CSS",
samplePath: "css.sample"
},
{
id: "csv",
scopeName: "text.csv",
path: "csv.tmLanguage.json",
displayName: "csv syntax",
samplePath: "csv.sample"
},
{
id: "cue",
scopeName: "source.cue",
Expand Down Expand Up @@ -664,8 +671,7 @@ const languages = [
scopeName: "source.css.less",
path: "less.tmLanguage.json",
displayName: "Less",
samplePath: "less.sample",
embeddedLangs: ["css"]
samplePath: "less.sample"
},
{
id: "liquid",
Expand Down Expand Up @@ -798,6 +804,14 @@ const languages = [
displayName: "Nix",
samplePath: "nix.sample"
},
{
id: "nushell",
scopeName: "source.nushell",
path: "nushell.tmLanguage.json",
displayName: "nushell",
samplePath: "nushell.sample",
aliases: ["nu"]
},
{
id: "objective-c",
scopeName: "source.objc",
Expand Down Expand Up @@ -1187,7 +1201,7 @@ const languages = [
path: "twig.tmLanguage.json",
displayName: "Twig",
samplePath: "twig.sample",
embeddedLangs: ["css", "javascript", "php", "python", "ruby"]
embeddedLangs: ["css", "javascript", "scss", "php", "python", "ruby"]
},
{
id: "typescript",
Expand Down Expand Up @@ -1285,7 +1299,8 @@ const languages = [
scopeName: "source.wolfram",
path: "wolfram.tmLanguage.json",
displayName: "Wolfram",
samplePath: "wolfram.sample"
samplePath: "wolfram.sample",
aliases: ["wl"]
},
{
id: "xml",
Expand Down
25 changes: 20 additions & 5 deletions docs/shiki/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const themes = [
"github-dark-dimmed",
"github-dark",
"github-light",
"hc_light",
"light-plus",
"material-theme-darker",
"material-theme-lighter",
Expand All @@ -31,6 +30,7 @@ const themes = [
"slack-ochin",
"solarized-dark",
"solarized-light",
"vitesse-black",
"vitesse-dark",
"vitesse-light"
];
Expand Down Expand Up @@ -260,6 +260,13 @@ const languages = [
displayName: "CSS",
samplePath: "css.sample"
},
{
id: "csv",
scopeName: "text.csv",
path: "csv.tmLanguage.json",
displayName: "csv syntax",
samplePath: "csv.sample"
},
{
id: "cue",
scopeName: "source.cue",
Expand Down Expand Up @@ -666,8 +673,7 @@ const languages = [
scopeName: "source.css.less",
path: "less.tmLanguage.json",
displayName: "Less",
samplePath: "less.sample",
embeddedLangs: ["css"]
samplePath: "less.sample"
},
{
id: "liquid",
Expand Down Expand Up @@ -800,6 +806,14 @@ const languages = [
displayName: "Nix",
samplePath: "nix.sample"
},
{
id: "nushell",
scopeName: "source.nushell",
path: "nushell.tmLanguage.json",
displayName: "nushell",
samplePath: "nushell.sample",
aliases: ["nu"]
},
{
id: "objective-c",
scopeName: "source.objc",
Expand Down Expand Up @@ -1189,7 +1203,7 @@ const languages = [
path: "twig.tmLanguage.json",
displayName: "Twig",
samplePath: "twig.sample",
embeddedLangs: ["css", "javascript", "php", "python", "ruby"]
embeddedLangs: ["css", "javascript", "scss", "php", "python", "ruby"]
},
{
id: "typescript",
Expand Down Expand Up @@ -1287,7 +1301,8 @@ const languages = [
scopeName: "source.wolfram",
path: "wolfram.tmLanguage.json",
displayName: "Wolfram",
samplePath: "wolfram.sample"
samplePath: "wolfram.sample",
aliases: ["wl"]
},
{
id: "xml",
Expand Down
2 changes: 1 addition & 1 deletion docs/shiki/dist/index.jsdelivr.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/shiki/dist/index.unpkg.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/shiki/languages/bicep.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
},
"keyword": {
"name": "keyword.control.declaration.bicep",
"match": "\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with|using|func|assert)\\b"
"match": "\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with|using|func|assert|provider)\\b"
},
"lambda-start": {
"name": "meta.lambda-start.bicep",
Expand Down
2 changes: 1 addition & 1 deletion docs/shiki/languages/cobol.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
},
{
"match": "(?i:with|debugging|mode)",
"name": "keyword.Identifiers.gnucobol"
"name": "keyword.identifiers.cobol"
}
],
"name": "comment.block.cobol.remark",
Expand Down
8 changes: 4 additions & 4 deletions docs/shiki/languages/csharp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"include": "#try-statement"
},
{
"include": "#checked-unchecked-statement"
"include": "#expression-operator-expression"
},
{
"include": "#context-control-statement"
Expand Down Expand Up @@ -3820,7 +3820,7 @@
},
"char-character-escape": {
"name": "constant.character.escape.cs",
"match": "\\\\(['\"\\\\0abfnrtv]|x[0-9a-fA-F]{1,4}|u[0-9a-fA-F]{4})"
"match": "\\\\(x[0-9a-fA-F]{1,4}|u[0-9a-fA-F]{4}|.)"
},
"string-literal": {
"name": "string.quoted.double.cs",
Expand All @@ -3847,7 +3847,7 @@
},
"string-character-escape": {
"name": "constant.character.escape.cs",
"match": "\\\\(['\"\\\\0abfnrtv]|x[0-9a-fA-F]{1,4}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4})"
"match": "\\\\(x[0-9a-fA-F]{1,4}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|.)"
},
"verbatim-string-literal": {
"name": "string.quoted.double.cs",
Expand Down Expand Up @@ -4178,7 +4178,7 @@
]
},
"invocation-expression": {
"begin": "(?x)\n(?:\n (?:(\\?)\\s*)? # preceding null-conditional operator?\n (\\.)\\s*| # preceding dot?\n (->)\\s* # preceding pointer arrow?\n)?\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # method name\n(\n <\n (?<type_args>\n [^<>()]+|\n <\\g<type_args>+>|\n \\(\\g<type_args>+\\)\n )+\n >\\s*\n)? # type arguments\n(?=\\() # open paren of argument list",
"begin": "(?x)\n(?:\n (?:(\\?)\\s*)? # preceding null-conditional operator?\n (\\.)\\s*| # preceding dot?\n (->)\\s* # preceding pointer arrow?\n)?\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # method name\n(\n <\n (?<type_args>\n [^<>()]++|\n <\\g<type_args>*+>|\n \\(\\g<type_args>*+\\)\n )*+\n >\\s*\n)? # type arguments\n(?=\\() # open paren of argument list",
"beginCaptures": {
"1": {
"name": "keyword.operator.null-conditional.cs"
Expand Down
44 changes: 44 additions & 0 deletions docs/shiki/languages/csv.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "csv",
"scopeName": "text.csv",
"fileTypes": ["csv"],
"patterns": [
{
"match": "((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *\"(?:[^\"]*\"\")*[^\"]*\" *(?:,|$))|(?:[^,]*(?:,|$)))?",
"name": "rainbowgroup",
"captures": {
"1": {
"name": "rainbow1"
},
"2": {
"name": "keyword.rainbow2"
},
"3": {
"name": "entity.name.function.rainbow3"
},
"4": {
"name": "comment.rainbow4"
},
"5": {
"name": "string.rainbow5"
},
"6": {
"name": "variable.parameter.rainbow6"
},
"7": {
"name": "constant.numeric.rainbow7"
},
"8": {
"name": "entity.name.type.rainbow8"
},
"9": {
"name": "markup.bold.rainbow9"
},
"10": {
"name": "invalid.rainbow10"
}
}
}
],
"uuid": "ca03e352-04ef-4340-9a6b-9b99aae1c418"
}
16 changes: 4 additions & 12 deletions docs/shiki/languages/dart.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dart",
"version": "1.2.3",
"version": "1.2.5",
"fileTypes": ["dart"],
"scopeName": "source.dart",
"foldingStartMarker": "\\{\\s*$",
Expand Down Expand Up @@ -88,15 +88,7 @@
"end": "```"
},
{
"match": "(`.*?`)",
"captures": {
"0": {
"name": "variable.other.source.dart"
}
}
},
{
"match": "(`.*?`)",
"match": "(`[^`]+?`)",
"captures": {
"0": {
"name": "variable.other.source.dart"
Expand Down Expand Up @@ -393,6 +385,7 @@
"string-interp": {
"patterns": [
{
"name": "string.interpolated.expression.dart",
"match": "\\$([a-zA-Z0-9_]+)",
"captures": {
"1": {
Expand All @@ -406,8 +399,7 @@
"end": "\\}",
"patterns": [
{
"include": "#constants-and-special-vars",
"name": "variable.parameter.dart"
"include": "#constants-and-special-vars"
},
{
"include": "#strings"
Expand Down
Loading