🎉 initiate project *astro_rewrite*

This commit is contained in:
sindrekjelsrud 2023-07-19 21:31:30 +02:00
parent ffd4d5e86c
commit 2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions

21
node_modules/shiki/LICENSE generated vendored Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Pine Wu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

62
node_modules/shiki/README.md generated vendored Normal file
View file

@ -0,0 +1,62 @@
<p>
<h2 align="center">Shiki</h2>
</p>
<p align="center">
Shiki is a beautiful Syntax Highlighter. <a href="http://shiki.matsu.io">Demo</a>.
</p>
## Usage
```sh
npm i shiki
```
```js
const shiki = require('shiki')
shiki
.getHighlighter({
theme: 'nord'
})
.then(highlighter => {
console.log(highlighter.codeToHtml(`console.log('shiki');`, { lang: 'js' }))
})
// <pre class="shiki" style="background-color: #2e3440"><code>
// <!-- Highlighted Code -->
// </code></pre>
```
```html
<script src="https://unpkg.com/shiki"></script>
<script>
shiki
.getHighlighter({
theme: 'nord'
})
.then(highlighter => {
const code = highlighter.codeToHtml(`console.log('shiki');`, { lang: 'js' })
document.getElementById('output').innerHTML = code
})
</script>
```
Clone [shikijs/shiki-starter](https://github.com/shikijs/shiki-starter) to play with Shiki, or try it out on [Repl.it](https://repl.it/@octref/shiki-starter).
Learn more from the GitHub repo: [shikijs/shiki](https://github.com/shikijs/shiki).
## Credits
- Shiki uses [vscode-oniguruma](https://github.com/microsoft/vscode-oniguruma)
- A lot of code is based on [vscode-textmate](https://github.com/Microsoft/vscode-textmate)
## Sponsorship
If you find Shiki useful, please consider sponsoring my Open Source development. Thank you 🙏
https://github.com/sponsors/octref
## License
MIT © [Pine Wu](https://github.com/octref)

1
node_modules/shiki/dist/index.browser.mjs generated vendored Normal file

File diff suppressed because one or more lines are too long

345
node_modules/shiki/dist/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,345 @@
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';
declare const themes: Theme[];
declare enum FontStyle {
NotSet = -1,
None = 0,
Italic = 1,
Bold = 2,
Underline = 4
}
interface IThemedTokenScopeExplanation {
scopeName: string;
themeMatches: any[];
}
interface IThemedTokenExplanation {
content: string;
scopes: IThemedTokenScopeExplanation[];
}
/**
* A single token with color, and optionally with explanation.
*
* For example:
*
* {
* "content": "shiki",
* "color": "#D8DEE9",
* "explanation": [
* {
* "content": "shiki",
* "scopes": [
* {
* "scopeName": "source.js",
* "themeMatches": []
* },
* {
* "scopeName": "meta.objectliteral.js",
* "themeMatches": []
* },
* {
* "scopeName": "meta.object.member.js",
* "themeMatches": []
* },
* {
* "scopeName": "meta.array.literal.js",
* "themeMatches": []
* },
* {
* "scopeName": "variable.other.object.js",
* "themeMatches": [
* {
* "name": "Variable",
* "scope": "variable.other",
* "settings": {
* "foreground": "#D8DEE9"
* }
* },
* {
* "name": "[JavaScript] Variable Other Object",
* "scope": "source.js variable.other.object",
* "settings": {
* "foreground": "#D8DEE9"
* }
* }
* ]
* }
* ]
* }
* ]
* }
*
*/
interface IThemedToken {
/**
* The content of the token
*/
content: string;
/**
* 6 or 8 digit hex code representation of the token's color
*/
color?: string;
/**
* Font style of token. Can be None/Italic/Bold/Underline
*/
fontStyle?: FontStyle;
/**
* Explanation of
*
* - token text's matching scopes
* - reason that token text is given a color (one matching scope matches a rule (scope -> color) in the theme)
*/
explanation?: IThemedTokenExplanation[];
}
interface HighlighterOptions {
/**
* The theme to load upfront.
*
* Default to: 'nord'
*/
theme?: IThemeRegistration;
/**
* A list of themes to load upfront.
*/
themes?: IThemeRegistration[];
/**
* A list of languages to load upfront.
*
* Default to all the bundled languages.
*/
langs?: (Lang | ILanguageRegistration)[];
/**
* Paths for loading themes and langs. Relative to the package's root.
*/
paths?: IHighlighterPaths;
}
interface Highlighter {
/**
* Convert code to HTML tokens.
* `lang` and `theme` must have been loaded.
* @deprecated Please use the `codeToHtml(code, options?)` overload instead.
*/
codeToHtml(code: string, lang?: StringLiteralUnion<Lang>, theme?: StringLiteralUnion<Theme>, options?: CodeToHtmlOptions): string;
/**
* Convert code to HTML tokens.
* `lang` and `theme` must have been loaded.
*/
codeToHtml(code: string, options?: CodeToHtmlOptions): string;
/**
* Convert code to themed tokens for custom processing.
* `lang` and `theme` must have been loaded.
* You may customize the bundled HTML / SVG renderer or write your own
* renderer for another render target.
*/
codeToThemedTokens(code: string, lang?: StringLiteralUnion<Lang>, theme?: StringLiteralUnion<Theme>, options?: ThemedTokenizerOptions): IThemedToken[][];
/**
* Convert ansi-escaped text to HTML tokens.
* `theme` must have been loaded.
*/
ansiToHtml(ansi: string, options?: AnsiToHtmlOptions): string;
/**
* Convert ansi-escaped text to themed tokens for custom processing.
* `theme` must have been loaded.
* You may customize the bundled HTML / SVG renderer or write your own
* renderer for another render target.
*/
ansiToThemedTokens(ansi: string, theme?: StringLiteralUnion<Theme>): IThemedToken[][];
/**
* Get the loaded theme
*/
getTheme(theme?: IThemeRegistration): IShikiTheme;
/**
* Load a theme
*/
loadTheme(theme: IThemeRegistration): Promise<void>;
/**
* Load a language
*/
loadLanguage(lang: ILanguageRegistration | Lang): Promise<void>;
/**
* Get all loaded themes
*/
getLoadedThemes(): Theme[];
/**
* Get all loaded languages
*/
getLoadedLanguages(): Lang[];
/**
* Get the foreground color for theme. Can be used for CSS `color`.
*/
getForegroundColor(theme?: StringLiteralUnion<Theme>): string;
/**
* Get the background color for theme. Can be used for CSS `background-color`.
*/
getBackgroundColor(theme?: StringLiteralUnion<Theme>): string;
setColorReplacements(map: Record<string, string>): void;
}
interface IHighlighterPaths {
/**
* @default 'themes/'
*/
themes?: string;
/**
* @default 'languages/'
*/
languages?: string;
/**
* @default 'dist/'
*/
wasm?: string;
}
type ILanguageRegistration = {
id: string;
scopeName: string;
displayName?: string;
aliases?: string[];
samplePath?: string;
/**
* A list of languages the current language embeds.
* If manually specifying languages to load, make sure to load the embedded
* languages for each parent language.
*/
embeddedLangs?: Lang[];
balancedBracketSelectors?: string[];
unbalancedBracketSelectors?: string[];
} & {
path: string;
grammar?: IGrammar;
};
type IThemeRegistration = IShikiTheme | StringLiteralUnion<Theme>;
interface IShikiTheme extends IRawTheme {
/**
* @description theme name
*/
name: string;
/**
* @description light/dark theme
*/
type: 'light' | 'dark' | 'css';
/**
* @description tokenColors of the theme file
*/
settings: any[];
/**
* @description text default foreground color
*/
fg: string;
/**
* @description text default background color
*/
bg: string;
/**
* @description relative path of included theme
*/
include?: string;
/**
*
* @description color map of the theme file
*/
colors?: Record<string, string>;
}
interface Nothing {
}
/**
* type StringLiteralUnion<'foo'> = 'foo' | string
* This has auto completion whereas `'foo' | string` doesn't
* Adapted from https://github.com/microsoft/TypeScript/issues/29729
*/
type StringLiteralUnion<T extends U, U = string> = T | (U & Nothing);
interface CodeToHtmlOptions {
lang?: StringLiteralUnion<Lang>;
theme?: StringLiteralUnion<Theme>;
lineOptions?: LineOption[];
}
interface AnsiToHtmlOptions {
theme?: StringLiteralUnion<Theme>;
lineOptions?: LineOption[];
}
interface HtmlRendererOptions {
langId?: string;
fg?: string;
bg?: string;
lineOptions?: LineOption[];
elements?: ElementsOptions;
themeName?: string;
}
interface LineOption {
/**
* 1-based line number.
*/
line: number;
classes?: string[];
}
interface ElementProps {
children: string;
[key: string]: unknown;
}
interface PreElementProps extends ElementProps {
className: string;
style: string;
}
interface CodeElementProps extends ElementProps {
}
interface LineElementProps extends ElementProps {
className: string;
lines: IThemedToken[][];
line: IThemedToken[];
index: number;
}
interface TokenElementProps extends ElementProps {
style: string;
tokens: IThemedToken[];
token: IThemedToken;
index: number;
}
interface ElementsOptions {
pre?: (props: PreElementProps) => string;
code?: (props: CodeElementProps) => string;
line?: (props: LineElementProps) => string;
token?: (props: TokenElementProps) => string;
}
interface ThemedTokenizerOptions {
/**
* Whether to include explanation of each token's matching scopes and
* why it's given its color. Default to false to reduce output verbosity.
*/
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' | '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' | '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' | 'kusto' | 'kql' | 'latex' | 'less' | 'liquid' | 'lisp' | 'logo' | 'lua' | 'make' | 'makefile' | 'markdown' | 'md' | 'marko' | 'matlab' | 'mdx' | 'mermaid' | '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' | 'console' | 'sh' | 'shell' | 'zsh' | 'smalltalk' | 'solidity' | 'sparql' | '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';
declare const languages: ILanguageRegistration[];
declare function getHighlighter(options: HighlighterOptions): Promise<Highlighter>;
declare function renderToHtml(lines: IThemedToken[][], options?: HtmlRendererOptions): string;
/**
* Set the route for loading the assets
* URL should end with `/`
*
* For example:
* ```ts
* setCDN('https://unpkg.com/shiki/') // use unpkg
* setCDN('/assets/shiki/') // serve by yourself
* ```
*/
declare function setCDN(root: string): void;
/**
* Explicitly set the source for loading the oniguruma web assembly module.
* *
* Accepts ArrayBuffer or Response (usage of string is deprecated)
*/
declare function setWasm(data: string | ArrayBuffer | Response): void;
/**
* @param themePath related path to theme.json
*/
declare function fetchTheme(themePath: string): Promise<IShikiTheme>;
declare function toShikiTheme(rawTheme: IRawTheme): IShikiTheme;
/** @deprecated use setWasm instead, will be removed in a future version */
declare function setOnigasmWASM(path: string | ArrayBuffer): void;
export { languages as BUNDLED_LANGUAGES, themes as BUNDLED_THEMES, FontStyle, Highlighter, HighlighterOptions, HtmlRendererOptions, ILanguageRegistration, IShikiTheme, IThemeRegistration, IThemedToken, Lang, Theme, getHighlighter, fetchTheme as loadTheme, renderToHtml, setCDN, setOnigasmWASM, setWasm, toShikiTheme };

3136
node_modules/shiki/dist/index.esm.js generated vendored Normal file

File diff suppressed because it is too large Load diff

3147
node_modules/shiki/dist/index.js generated vendored Normal file

File diff suppressed because it is too large Load diff

1
node_modules/shiki/dist/index.jsdelivr.iife.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/shiki/dist/index.unpkg.iife.js generated vendored Normal file

File diff suppressed because one or more lines are too long

BIN
node_modules/shiki/dist/onig.wasm generated vendored Normal file

Binary file not shown.

378
node_modules/shiki/languages/abap.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,949 @@
{
"fileTypes": ["as"],
"name": "actionscript-3",
"patterns": [
{
"include": "#comments"
},
{
"include": "#package"
},
{
"include": "#class"
},
{
"include": "#interface"
},
{
"include": "#namespace_declaration"
},
{
"include": "#import"
},
{
"include": "#mxml"
},
{
"include": "#strings"
},
{
"include": "#regexp"
},
{
"include": "#variable_declaration"
},
{
"include": "#numbers"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#primitive_functions"
},
{
"include": "#language_constants"
},
{
"include": "#language_variables"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
},
{
"include": "#other_operators"
},
{
"include": "#arithmetic_operators"
},
{
"include": "#logical_operators"
},
{
"include": "#array_access_operators"
},
{
"include": "#vector_creation_operators"
},
{
"include": "#control_keywords"
},
{
"include": "#other_keywords"
},
{
"include": "#use_namespace"
},
{
"include": "#functions"
}
],
"repository": {
"arithmetic_operators": {
"match": "(\\+|\\-|/|%|(?<!:)\\*)",
"name": "keyword.operator.actionscript.3"
},
"array_access_operators": {
"match": "(\\[|\\])",
"name": "keyword.operator.actionscript.3"
},
"class": {
"begin": "(?x) (^|\\s+|;) (\\b(dynamic|final|abstract)\\b\\s+)? (\\b(internal|public)\\b\\s+)? (\\b(dynamic|final|abstract)\\b\\s+)? (?=\\bclass\\b)",
"beginCaptures": {
"3": {
"name": "storage.modifier.actionscript.3"
},
"5": {
"name": "storage.modifier.actionscript.3"
},
"7": {
"name": "storage.modifier.actionscript.3"
}
},
"end": "\\}",
"name": "meta.class.actionscript.3",
"patterns": [
{
"include": "#class_declaration"
},
{
"include": "#metadata"
},
{
"include": "#method"
},
{
"include": "#comments"
},
{
"include": "#strings"
},
{
"include": "#regexp"
},
{
"include": "#numbers"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#primitive_functions"
},
{
"include": "#language_constants"
},
{
"include": "#language_variables"
},
{
"include": "#other_operators"
},
{
"include": "#other_keywords"
},
{
"include": "#use_namespace"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
},
{
"include": "#arithmetic_operators"
},
{
"include": "#array_access_operators"
},
{
"include": "#vector_creation_operators"
},
{
"include": "#variable_declaration"
},
{
"include": "#object_literal"
}
]
},
"namespace_declaration": {
"captures": {
"2": {
"name": "storage.modifier.actionscript.3"
},
"3": {
"name": "storage.modifier.actionscript.3"
}
},
"match": "(?x) ((\\w+)\\s+)? (namespace) \\s+ (?:[A-Za-z0-9_\\$]+)",
"name": "meta.namespace_declaration.actionscript.3"
},
"class_declaration": {
"begin": "(?x) \\b(class)\\b \\s+ ([\\.\\w]+|\\*)",
"beginCaptures": {
"1": {
"name": "storage.type.class.actionscript.3"
},
"2": {
"name": "entity.name.class.actionscript.3"
}
},
"end": "\\{",
"name": "meta.class_declaration.actionscript.3",
"patterns": [
{
"include": "#extends"
},
{
"include": "#implements"
},
{
"include": "#comments"
}
]
},
"code_block": {
"begin": "\\{",
"end": "\\}",
"name": "meta.code_block.actionscript.3",
"patterns": [
{
"include": "#code_block"
},
{
"include": "#comments"
},
{
"include": "#strings"
},
{
"include": "#regexp"
},
{
"include": "#variable_declaration"
},
{
"include": "#numbers"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#primitive_functions"
},
{
"include": "#language_constants"
},
{
"include": "#language_variables"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
},
{
"include": "#other_operators"
},
{
"include": "#arithmetic_operators"
},
{
"include": "#logical_operators"
},
{
"include": "#array_access_operators"
},
{
"include": "#vector_creation_operators"
},
{
"include": "#control_keywords"
},
{
"include": "#other_keywords"
},
{
"include": "#use_namespace"
},
{
"include": "#functions"
},
{
"include": "#import"
}
]
},
"comments": {
"patterns": [
{
"begin": "/\\*\\*(?!/)",
"end": "\\*/",
"name": "comment.block.documentation.actionscript.3",
"patterns": [
{
"match": "@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\b",
"name": "keyword.other.documentation.actionscript.3.asdoc"
}
]
},
{
"begin": "/\\*",
"end": "\\*/",
"name": "comment.block.actionscript.3"
},
{
"match": "//.*",
"name": "comment.line.actionscript.3"
}
]
},
"control_keywords": {
"match": "\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\b",
"name": "keyword.control.actionscript.3"
},
"dynamic_type": {
"captures": {
"1": {
"name": "support.type.actionscript.3"
}
},
"match": "(?<=:)\\s*(\\*)"
},
"escapes": {
"match": "\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
"name": "constant.character.escape.actionscript.3"
},
"extends": {
"captures": {
"1": {
"name": "keyword.other.actionscript.3"
},
"2": {
"name": "entity.other.inherited-class.actionscript.3"
},
"3": {
"name": "entity.other.inherited-class.actionscript.3"
}
},
"match": "(?x) \\b(extends)\\b \\s+ ([\\.\\w]+) \\s* (?:, \\s* ([\\.\\w]+))* \\s*",
"name": "meta.extends.actionscript.3"
},
"function_arguments": {
"begin": "\\(",
"end": "\\)",
"name": "meta.function_arguments.actionscript.3",
"patterns": [
{
"include": "#parameters"
},
{
"include": "#comments"
}
]
},
"parameters": {
"begin": "(\\.\\.\\.)?\\s*([A-Za-z\\_\\$][A-Za-z0-9_\\$]*)(?:\\s*(\\:)\\s*(?:(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)))?(?:\\s*(=))?",
"end": ",|(?=\\))",
"beginCaptures": {
"1": {
"name": "keyword.operator.actionscript.3"
},
"2": {
"name": "variable.parameter.actionscript.3"
},
"3": {
"name": "keyword.operator.actionscript.3"
},
"4": {
"name": "support.type.actionscript.3"
},
"5": {
"name": "support.type.actionscript.3"
},
"6": {
"name": "support.type.actionscript.3"
},
"7": {
"name": "keyword.operator.actionscript.3"
}
},
"patterns": [
{
"include": "#strings"
},
{
"include": "#numbers"
},
{
"include": "#language_constants"
},
{
"include": "#comments"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
}
]
},
"functions": {
"begin": "(?x) \\b(function)\\b (?:\\s+\\b(get|set)\\b\\s+)? \\s* ([a-zA-Z0-9_\\$]+\\b)?",
"beginCaptures": {
"1": {
"name": "storage.type.function.actionscript.3"
},
"2": {
"name": "storage.modifier.actionscript.3"
},
"3": {
"name": "entity.name.function.actionscript.3"
}
},
"end": "($|;|(?=\\{))",
"name": "meta.function.actionscript.3",
"patterns": [
{
"include": "#function_arguments"
},
{
"include": "#return_type"
},
{
"include": "#comments"
}
]
},
"guess_constant": {
"captures": {
"1": {
"name": "constant.other.actionscript.3"
}
},
"comment": "Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.",
"match": "\\b([A-Z\\$][A-Z0-9_]+)\\b"
},
"guess_type": {
"captures": {
"1": {
"name": "support.type.actionscript.3"
}
},
"comment": "Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.",
"match": "\\b((?:[A-Za-z0-9_\\$]+\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_\\$]*)\\b"
},
"implements": {
"captures": {
"1": {
"name": "keyword.other.actionscript.3"
},
"2": {
"name": "entity.other.inherited-class.actionscript.3"
},
"3": {
"name": "entity.other.inherited-class.actionscript.3"
}
},
"match": "(?x) \\b(implements)\\b \\s+ ([\\.\\w]+) \\s* (?:, \\s* ([\\.\\w]+))* \\s*",
"name": "meta.implements.actionscript.3"
},
"import": {
"captures": {
"2": {
"name": "keyword.control.import.actionscript.3"
},
"3": {
"name": "support.type.actionscript.3"
}
},
"match": "(?x) (^|\\s+|;) \\b(import)\\b \\s+ ([A-Za-z0-9\\$_\\.]+(?:\\.\\*)?) \\s* (?=;|$)",
"name": "meta.import.actionscript.3"
},
"interface": {
"begin": "(?x) (^|\\s+|;) (\\b(internal|public)\\b\\s+)? (?=\\binterface\\b)",
"beginCaptures": {
"3": {
"name": "storage.modifier.actionscript.3"
}
},
"end": "\\}",
"name": "meta.interface.actionscript.3",
"patterns": [
{
"include": "#interface_declaration"
},
{
"include": "#metadata"
},
{
"include": "#functions"
},
{
"include": "#comments"
}
]
},
"interface_declaration": {
"begin": "(?x) \\b(interface)\\b \\s+ ([\\.\\w]+)",
"beginCaptures": {
"1": {
"name": "storage.type.interface.actionscript.3"
},
"2": {
"name": "entity.name.class.actionscript.3"
}
},
"end": "\\{",
"name": "meta.class_declaration.actionscript.3",
"patterns": [
{
"include": "#extends"
},
{
"include": "#comments"
}
]
},
"language_constants": {
"match": "\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\b",
"name": "constant.language.actionscript.3"
},
"language_variables": {
"match": "\\b(super|this|arguments)\\b",
"name": "variable.language.actionscript.3"
},
"logical_operators": {
"match": "(&|<|~|\\||>|\\^|!|\\?)",
"name": "keyword.operator.actionscript.3"
},
"metadata_info": {
"begin": "\\(",
"end": "\\)",
"patterns": [
{
"include": "#strings"
},
{
"captures": {
"1": {
"name": "variable.parameter.actionscript.3"
},
"2": {
"name": "keyword.operator.actionscript.3"
}
},
"match": "(\\w+)\\s*(=)"
}
]
},
"method": {
"begin": "(?x) (^|\\s+) ((\\w+)\\s+)? ((\\w+)\\s+)? ((\\w+)\\s+)? ((\\w+)\\s+)? (?=\\bfunction\\b)",
"beginCaptures": {
"3": {
"name": "storage.modifier.actionscript.3"
},
"5": {
"name": "storage.modifier.actionscript.3"
},
"7": {
"name": "storage.modifier.actionscript.3"
},
"8": {
"name": "storage.modifier.actionscript.3"
}
},
"end": "(?<=(;|\\}))",
"name": "meta.method.actionscript.3",
"patterns": [
{
"include": "#functions"
},
{
"include": "#code_block"
}
]
},
"mxml": {
"begin": "<!\\[CDATA\\[",
"end": "\\]\\]>",
"name": "meta.cdata.actionscript.3",
"patterns": [
{
"include": "#comments"
},
{
"include": "#import"
},
{
"include": "#metadata"
},
{
"include": "#class"
},
{
"include": "#namespace_declaration"
},
{
"include": "#use_namespace"
},
{
"include": "#class_declaration"
},
{
"include": "#method"
},
{
"include": "#comments"
},
{
"include": "#strings"
},
{
"include": "#regexp"
},
{
"include": "#numbers"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#primitive_functions"
},
{
"include": "#language_constants"
},
{
"include": "#language_variables"
},
{
"include": "#other_keywords"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
},
{
"include": "#other_operators"
},
{
"include": "#arithmetic_operators"
},
{
"include": "#array_access_operators"
},
{
"include": "#vector_creation_operators"
},
{
"include": "#variable_declaration"
}
]
},
"numbers": {
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b",
"name": "constant.numeric.actionscript.3"
},
"object_literal": {
"begin": "\\{",
"end": "\\}",
"name": "meta.object_literal.actionscript.3",
"patterns": [
{
"include": "#object_literal"
},
{
"include": "#comments"
},
{
"include": "#strings"
},
{
"include": "#regexp"
},
{
"include": "#numbers"
},
{
"include": "#primitive_types"
},
{
"include": "#primitive_error_types"
},
{
"include": "#dynamic_type"
},
{
"include": "#primitive_functions"
},
{
"include": "#language_constants"
},
{
"include": "#language_variables"
},
{
"include": "#guess_type"
},
{
"include": "#guess_constant"
},
{
"include": "#array_access_operators"
},
{
"include": "#vector_creation_operators"
},
{
"include": "#functions"
}
]
},
"other_keywords": {
"match": "\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\b",
"name": "keyword.other.actionscript.3"
},
"other_operators": {
"match": "(\\.|=)",
"name": "keyword.operator.actionscript.3"
},
"package": {
"begin": "(^|\\s+)(package)\\b",
"beginCaptures": {
"2": {
"name": "keyword.other.actionscript.3"
}
},
"end": "\\}",
"name": "meta.package.actionscript.3",
"patterns": [
{
"include": "#package_name"
},
{
"include": "#variable_declaration"
},
{
"include": "#method"
},
{
"include": "#comments"
},
{
"include": "#return_type"
},
{
"include": "#import"
},
{
"include": "#use_namespace"
},
{
"include": "#strings"
},
{
"include": "#numbers"
},
{
"include": "#language_constants"
},
{
"include": "#metadata"
},
{
"include": "#class"
},
{
"include": "#interface"
},
{
"include": "#namespace_declaration"
}
]
},
"package_name": {
"begin": "(?<=package)\\s+([\\w\\._]*)\\b",
"end": "\\{",
"name": "meta.package_name.actionscript.3"
},
"primitive_types": {
"captures": {
"1": {
"name": "support.class.builtin.actionscript.3"
}
},
"match": "\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\*(?<=a))\\b"
},
"primitive_error_types": {
"captures": {
"1": {
"name": "support.class.error.actionscript.3"
}
},
"match": "\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\b"
},
"primitive_functions": {
"captures": {
"1": {
"name": "support.function.actionscript.3"
}
},
"match": "\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\s*\\()"
},
"regexp": {
"begin": "(?<=[=(:,\\[]|^|return|&&|\\|\\||!)\\s*(/)(?![/*+{}?])",
"end": "$|(/)[igm]*",
"name": "string.regex.actionscript.3",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.actionscript.3"
},
{
"match": "\\[(\\\\\\]|[^\\]])*\\]",
"name": "constant.character.class.actionscript.3"
}
]
},
"return_type": {
"captures": {
"1": {
"name": "keyword.operator.actionscript.3"
},
"2": {
"name": "support.type.actionscript.3"
},
"3": {
"name": "support.type.actionscript.3"
},
"4": {
"name": "support.type.actionscript.3"
}
},
"match": "(\\:)\\s*(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)"
},
"strings": {
"patterns": [
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.actionscript.3",
"patterns": [
{
"include": "#escapes"
}
]
},
{
"begin": "'",
"end": "'",
"name": "string.quoted.single.actionscript.3",
"patterns": [
{
"include": "#escapes"
}
]
}
]
},
"metadata": {
"begin": "\\[\\s*\\b(\\w+)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.actionscript.3"
}
},
"end": "\\]",
"name": "meta.metadata_info.actionscript.3",
"patterns": [
{
"include": "#metadata_info"
}
]
},
"use_namespace": {
"captures": {
"2": {
"name": "keyword.other.actionscript.3"
},
"3": {
"name": "keyword.other.actionscript.3"
},
"4": {
"name": "storage.modifier.actionscript.3"
}
},
"match": "(?x) (^|\\s+|;) (use\\s+)? (namespace) \\s+ (\\w+) \\s* (;|$)"
},
"variable_declaration": {
"captures": {
"2": {
"name": "storage.modifier.actionscript.3"
},
"4": {
"name": "storage.modifier.actionscript.3"
},
"6": {
"name": "storage.modifier.actionscript.3"
},
"7": {
"name": "storage.modifier.actionscript.3"
},
"8": {
"name": "keyword.operator.actionscript.3"
}
},
"match": "(?x) ((static)\\s+)? ((\\w+)\\s+)? ((static)\\s+)? (const|var) \\s+ (?:[A-Za-z0-9_\\$]+)(?:\\s*(:))?",
"name": "meta.variable_declaration.actionscript.3"
},
"vector_creation_operators": {
"match": "(<|>)",
"name": "keyword.operator.actionscript.3"
}
},
"scopeName": "source.actionscript.3",
"uuid": "aa6f75ba-ab10-466e-8c6f-28c69aca1e9d"
}

3871
node_modules/shiki/languages/ada.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

562
node_modules/shiki/languages/apache.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,562 @@
{
"fileTypes": [
"conf",
"CONF",
"envvars",
"htaccess",
"HTACCESS",
"htgroups",
"HTGROUPS",
"htpasswd",
"HTPASSWD",
".htaccess",
".HTACCESS",
".htgroups",
".HTGROUPS",
".htpasswd",
".HTPASSWD"
],
"name": "apache",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.apacheconf"
}
},
"match": "^(\\s)*(#).*$\\n?",
"name": "comment.line.hash.ini"
},
{
"captures": {
"1": {
"name": "punctuation.definition.tag.apacheconf"
},
"2": {
"name": "entity.tag.apacheconf"
},
"4": {
"name": "string.value.apacheconf"
},
"5": {
"name": "punctuation.definition.tag.apacheconf"
}
},
"match": "(<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(\\s(.+?))?(>)"
},
{
"captures": {
"1": {
"name": "punctuation.definition.tag.apacheconf"
},
"2": {
"name": "entity.tag.apacheconf"
},
"3": {
"name": "punctuation.definition.tag.apacheconf"
}
},
"match": "(</)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(>)"
},
{
"captures": {
"3": {
"name": "string.regexp.apacheconf"
},
"4": {
"name": "string.replacement.apacheconf"
}
},
"match": "(?<=(Rewrite(Rule|Cond)))\\s+(.+?)\\s+(.+?)($|\\s)"
},
{
"captures": {
"2": {
"name": "entity.status.apacheconf"
},
"3": {
"name": "string.regexp.apacheconf"
},
"5": {
"name": "string.path.apacheconf"
}
},
"match": "(?<=RedirectMatch)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"
},
{
"captures": {
"2": {
"name": "entity.status.apacheconf"
},
"3": {
"name": "string.path.apacheconf"
},
"5": {
"name": "string.path.apacheconf"
}
},
"match": "(?<=Redirect)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"
},
{
"captures": {
"1": {
"name": "string.regexp.apacheconf"
},
"3": {
"name": "string.path.apacheconf"
}
},
"match": "(?<=ScriptAliasMatch|AliasMatch)\\s+(.+?)\\s+((.+?)\\s)?"
},
{
"captures": {
"1": {
"name": "string.path.apacheconf"
},
"3": {
"name": "string.path.apacheconf"
}
},
"match": "(?<=RedirectPermanent|RedirectTemp|ScriptAlias|Alias)\\s+(.+?)\\s+((.+?)($|\\s))?"
},
{
"captures": {
"1": {
"name": "keyword.core.apacheconf"
}
},
"match": "\\b(AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|Define|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include(Optional)?|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|Mutex|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|Time(O|o)ut|TraceEnable|UseCanonicalName|Use|ErrorLogFormat|GlobalLog|PHPIniDir|SSLHonorCipherOrder|SSLCompression|SSLUseStapling|SSLStapling\\w+|SSLCARevocationCheck|SSLSRPVerifierFile|SSLSessionTickets|RequestReadTimeout|ProxyHTML\\w+|MaxRanges)\\b"
},
{
"captures": {
"1": {
"name": "keyword.mpm.apacheconf"
}
},
"match": "\\b(AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxConnectionsPerChild|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxRequestWorkers|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\\b"
},
{
"captures": {
"1": {
"name": "keyword.access.apacheconf"
}
},
"match": "\\b(Allow|Deny|Order)\\b"
},
{
"captures": {
"1": {
"name": "keyword.actions.apacheconf"
}
},
"match": "\\b(Action|Script)\\b"
},
{
"captures": {
"1": {
"name": "keyword.alias.apacheconf"
}
},
"match": "\\b(Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\\b"
},
{
"captures": {
"1": {
"name": "keyword.auth.apacheconf"
}
},
"match": "\\b(AuthAuthoritative|AuthGroupFile|AuthUserFile|AuthBasicProvider|AuthBasicFake|AuthBasicAuthoritative|AuthBasicUseDigestAlgorithm)\\b"
},
{
"captures": {
"1": {
"name": "keyword.auth_anon.apacheconf"
}
},
"match": "\\b(Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail)\\b"
},
{
"captures": {
"1": {
"name": "keyword.auth_dbm.apacheconf"
}
},
"match": "\\b(AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile)\\b"
},
{
"captures": {
"1": {
"name": "keyword.auth_digest.apacheconf"
}
},
"match": "\\b(AuthDigestAlgorithm|AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize|AuthDigestProvider)\\b"
},
{
"captures": {
"1": {
"name": "keyword.auth_ldap.apacheconf"
}
},
"match": "\\b(AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl)\\b"
},
{
"captures": {
"1": {
"name": "keyword.autoindex.apacheconf"
}
},
"match": "\\b(AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|IndexStyleSheet|IndexHeadInsert|ReadmeName)\\b"
},
{
"captures": {
"1": {
"name": "keyword.filter.apacheconf"
}
},
"match": "\\b(BalancerMember|BalancerGrowth|BalancerPersist|BalancerInherit)\\b"
},
{
"captures": {
"1": {
"name": "keyword.cache.apacheconf"
}
},
"match": "\\b(CacheDefaultExpire|CacheDisable|CacheEnable|CacheForceCompletion|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire)\\b"
},
{
"captures": {
"1": {
"name": "keyword.cern_meta.apacheconf"
}
},
"match": "\\b(MetaDir|MetaFiles|MetaSuffix)\\b"
},
{
"captures": {
"1": {
"name": "keyword.cgi.apacheconf"
}
},
"match": "\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength)\\b"
},
{
"captures": {
"1": {
"name": "keyword.cgid.apacheconf"
}
},
"match": "\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock)\\b"
},
{
"captures": {
"1": {
"name": "keyword.charset_lite.apacheconf"
}
},
"match": "\\b(CharsetDefault|CharsetOptions|CharsetSourceEnc)\\b"
},
{
"captures": {
"1": {
"name": "keyword.dav.apacheconf"
}
},
"match": "\\b(Dav|DavDepthInfinity|DavMinTimeout|DavLockDB)\\b"
},
{
"captures": {
"1": {
"name": "keyword.deflate.apacheconf"
}
},
"match": "\\b(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize)\\b"
},
{
"captures": {
"1": {
"name": "keyword.dir.apacheconf"
}
},
"match": "\\b(DirectoryIndex|DirectorySlash|FallbackResource)\\b"
},
{
"captures": {
"1": {
"name": "keyword.disk_cache.apacheconf"
}
},
"match": "\\b(CacheDirLength|CacheDirLevels|CacheExpiryCheck|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheMaxFileSize|CacheMinFileSize|CacheRoot|CacheSize|CacheTimeMargin)\\b"
},
{
"captures": {
"1": {
"name": "keyword.dumpio.apacheconf"
}
},
"match": "\\b(DumpIOInput|DumpIOOutput)\\b"
},
{
"captures": {
"1": {
"name": "keyword.env.apacheconf"
}
},
"match": "\\b(PassEnv|SetEnv|UnsetEnv)\\b"
},
{
"captures": {
"1": {
"name": "keyword.expires.apacheconf"
}
},
"match": "\\b(ExpiresActive|ExpiresByType|ExpiresDefault)\\b"
},
{
"captures": {
"1": {
"name": "keyword.ext_filter.apacheconf"
}
},
"match": "\\b(ExtFilterDefine|ExtFilterOptions)\\b"
},
{
"captures": {
"1": {
"name": "keyword.file_cache.apacheconf"
}
},
"match": "\\b(CacheFile|MMapFile)\\b"
},
{
"captures": {
"1": {
"name": "keyword.filter.apacheconf"
}
},
"match": "\\b(AddOutputFilterByType|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace)\\b"
},
{
"captures": {
"1": {
"name": "keyword.headers.apacheconf"
}
},
"match": "\\b(Header|RequestHeader)\\b"
},
{
"captures": {
"1": {
"name": "keyword.imap.apacheconf"
}
},
"match": "\\b(ImapBase|ImapDefault|ImapMenu)\\b"
},
{
"captures": {
"1": {
"name": "keyword.include.apacheconf"
}
},
"match": "\\b(SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\\b"
},
{
"captures": {
"1": {
"name": "keyword.isapi.apacheconf"
}
},
"match": "\\b(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer)\\b"
},
{
"captures": {
"1": {
"name": "keyword.ldap.apacheconf"
}
},
"match": "\\b(LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize|LDAPTrustedCA|LDAPTrustedCAType)\\b"
},
{
"captures": {
"1": {
"name": "keyword.log.apacheconf"
}
},
"match": "\\b(BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\\b"
},
{
"captures": {
"1": {
"name": "keyword.mem_cache.apacheconf"
}
},
"match": "\\b(MCacheMaxObjectCount|MCacheMaxObjectSize|MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize)\\b"
},
{
"captures": {
"1": {
"name": "keyword.mime.apacheconf"
}
},
"match": "\\b(AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\\b"
},
{
"captures": {
"1": {
"name": "keyword.misc.apacheconf"
}
},
"match": "\\b(ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\\b"
},
{
"captures": {
"1": {
"name": "keyword.negotiation.apacheconf"
}
},
"match": "\\b(CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\\b"
},
{
"captures": {
"1": {
"name": "keyword.nw_ssl.apacheconf"
}
},
"match": "\\b(NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\\b"
},
{
"captures": {
"1": {
"name": "keyword.proxy.apacheconf"
}
},
"match": "\\b(AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassMatch|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\\b"
},
{
"captures": {
"1": {
"name": "keyword.rewrite.apacheconf"
}
},
"match": "\\b(RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule)\\b"
},
{
"captures": {
"1": {
"name": "keyword.setenvif.apacheconf"
}
},
"match": "\\b(BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\\b"
},
{
"captures": {
"1": {
"name": "keyword.so.apacheconf"
}
},
"match": "\\b(LoadFile|LoadModule)\\b"
},
{
"captures": {
"1": {
"name": "keyword.ssl.apacheconf"
}
},
"match": "\\b(SSLCACertificateFile|SSLCACertificatePath|SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions|SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite|SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire|SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|SSLInsecureRenegotiation|SSLOpenSSLConfCmd)\\b"
},
{
"captures": {
"1": {
"name": "keyword.substitute.apacheconf"
}
},
"match": "\\b(Substitute|SubstituteInheritBefore|SubstituteMaxLineLength)\\b"
},
{
"captures": {
"1": {
"name": "keyword.usertrack.apacheconf"
}
},
"match": "\\b(CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking)\\b"
},
{
"captures": {
"1": {
"name": "keyword.vhost_alias.apacheconf"
}
},
"match": "\\b(VirtualDocumentRoot|VirtualDocumentRootIP|VirtualScriptAlias|VirtualScriptAliasIP)\\b"
},
{
"captures": {
"1": {
"name": "keyword.php.apacheconf"
},
"3": {
"name": "entity.property.apacheconf"
},
"5": {
"name": "string.value.apacheconf"
}
},
"match": "\\b(php_value|php_flag|php_admin_value|php_admin_flag)\\b(\\s+(.+?)(\\s+(\".+?\"|.+?))?)?\\s"
},
{
"captures": {
"1": {
"name": "punctuation.variable.apacheconf"
},
"3": {
"name": "variable.env.apacheconf"
},
"4": {
"name": "variable.misc.apacheconf"
},
"5": {
"name": "punctuation.variable.apacheconf"
}
},
"match": "(%\\{)((HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(\\})"
},
{
"captures": {
"1": {
"name": "entity.mime-type.apacheconf"
}
},
"match": "\\b((text|image|application|video|audio)/.+?)\\s"
},
{
"captures": {
"1": {
"name": "entity.helper.apacheconf"
}
},
"match": "\\b(?i)(export|from|unset|set|on|off)\\b"
},
{
"captures": {
"1": {
"name": "constant.numeric.integer.decimal.apacheconf"
}
},
"match": "\\b(\\d+)\\b"
},
{
"captures": {
"1": {
"name": "punctuation.definition.flag.apacheconf"
},
"2": {
"name": "string.flag.apacheconf"
},
"3": {
"name": "punctuation.definition.flag.apacheconf"
}
},
"match": "\\s(\\[)(.*?)(\\])\\s"
}
],
"scopeName": "source.apacheconf",
"uuid": "8747d9e4-b308-4fc2-9aa1-66b6919bc7b9"
}

3199
node_modules/shiki/languages/apex.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

1468
node_modules/shiki/languages/apl.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

1403
node_modules/shiki/languages/applescript.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

425
node_modules/shiki/languages/ara.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,425 @@
{
"scopeName": "source.ara",
"name": "ara",
"fileTypes": ["ara"],
"patterns": [
{
"include": "#namespace"
},
{
"include": "#named-arguments"
},
{
"include": "#comments"
},
{
"include": "#keywords"
},
{
"include": "#strings"
},
{
"include": "#numbers"
},
{
"include": "#operators"
},
{
"include": "#type"
},
{
"include": "#function-call"
}
],
"repository": {
"class-name": {
"patterns": [
{
"begin": "\\b(?i)(?<!\\$)(?=[\\\\a-zA-Z_])",
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])\\b",
"endCaptures": {
"1": {
"name": "support.class.ara"
}
},
"patterns": [
{
"include": "#namespace"
}
]
}
]
},
"type": {
"name": "support.type.php",
"patterns": [
{
"match": "\\b(?:void|true|false|null|never|float|bool|int|string|dict|vec|object|mixed|nonnull|resource|self|static|parent|iterable)\\b",
"name": "support.type.php"
},
{
"begin": "([A-Za-z_][A-Za-z0-9_]*)<",
"beginCaptures": {
"1": {
"name": "support.class.php"
}
},
"end": ">",
"patterns": [
{
"include": "#type-annotation"
}
]
},
{
"begin": "(shape\\()",
"end": "((,|\\.\\.\\.)?\\s*\\))",
"endCaptures": {
"1": {
"name": "keyword.operator.key.php"
}
},
"name": "storage.type.shape.php",
"patterns": [
{
"include": "#type-annotation"
},
{
"include": "#strings"
},
{
"include": "#constants"
}
]
},
{
"begin": "\\(",
"end": "\\)",
"patterns": [
{
"include": "#type-annotation"
}
]
},
{
"begin": "\\(fn\\(",
"end": "\\)",
"patterns": [
{
"include": "#type-annotation"
}
]
},
{
"include": "#class-name"
},
{
"include": "#comments"
}
]
},
"namespace": {
"begin": "(?i)((namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
"beginCaptures": {
"1": {
"name": "entity.name.type.namespace.php"
},
"3": {
"name": "punctuation.separator.inheritance.php"
}
},
"end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
"name": "support.other.namespace.php",
"patterns": [
{
"name": "entity.name.type.namespace.php",
"match": "(?i)[a-z0-9_]+(?=\\\\)"
},
{
"captures": {
"1": {
"name": "punctuation.separator.inheritance.php"
}
},
"match": "(?i)(\\\\)"
}
]
},
"named-arguments": {
"match": "(?i)(?<=^|\\(|,)\\s*([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)\\s*(:)(?!:)",
"captures": {
"1": {
"name": "entity.name.variable.parameter.ara"
},
"2": {
"name": "punctuation.separator.colon.ara"
}
}
},
"comments": {
"patterns": [
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.ara"
}
},
"end": "\\*/",
"name": "comment.block.ara"
},
{
"begin": "(^[ \\t]+)?(?=//)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.ara"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.ara"
}
},
"end": "\\n",
"name": "comment.line.double-slash.ara"
}
]
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.control.ara",
"match": "\\b(await|async|concurrently|break|continue|do|else|elseif|for|if|loop|while|foreach|match|return|try|yield|from|catch|finally|default|exit)\\b"
},
{
"name": "storage.decl.ara",
"match": "\\b(const|enum|class|interface|trait|namespace|type|case|function|fn)\\b"
},
{
"name": "storage.modifier.ara",
"match": "\\b(final|abstract|static|readonly|public|private|protected)\\b"
},
{
"name": "keyword.other.ara",
"match": "\\b(as|is|extends|implements|use|where|clone|new)\\b"
}
]
},
"function-call": {
"patterns": [
{
"begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*(\\(|(::<)))",
"comment": "Functions in a user-defined namespace (overrides any built-ins)",
"end": "(?=\\s*(\\(|(::<)))",
"patterns": [
{
"include": "#user-function-call"
}
]
},
{
"begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*(\\(|(::<)))",
"beginCaptures": {
"1": {
"name": "punctuation.separator.inheritance.php"
}
},
"comment": "Root namespace function calls (built-in or user)",
"end": "(?=\\s*(\\(|(::<)))",
"patterns": [
{
"include": "#user-function-call"
}
]
}
]
},
"user-function-call": {
"begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
"end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
"endCaptures": {
"0": {
"name": "entity.name.function.php"
}
},
"name": "meta.function-call.php",
"patterns": [
{
"include": "#namespace"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.single.ara",
"begin": "'",
"end": "'",
"patterns": [
{
"match": "\\\\[\\\\']",
"name": "constant.character.escape.ara"
}
]
},
{
"name": "string.quoted.double.ara",
"begin": "\"",
"end": "\"",
"patterns": [
{
"include": "#interpolation"
}
]
}
]
},
"interpolation": {
"patterns": [
{
"comment": "Interpolating octal values e.g. \\01 or \\07.",
"match": "\\\\[0-7]{1,3}",
"name": "constant.numeric.octal.ara"
},
{
"comment": "Interpolating hex values e.g. \\x1 or \\xFF.",
"match": "\\\\x[0-9A-Fa-f]{1,2}",
"name": "constant.numeric.hex.ara"
},
{
"comment": "Escaped characters in double-quoted strings e.g. \\n or \\t.",
"match": "\\\\[nrt\\\\\\$\\\"]",
"name": "constant.character.escape.ara"
}
]
},
"numbers": {
"patterns": [
{
"match": "0[xX][0-9a-fA-F]+(?:_[0-9a-fA-F]+)*",
"name": "constant.numeric.hex.ara"
},
{
"match": "0[bB][01]+(?:_[01]+)*",
"name": "constant.numeric.binary.ara"
},
{
"match": "0[oO][0-7]+(?:_[0-7]+)*",
"name": "constant.numeric.octal.ara"
},
{
"match": "0(?:_?[0-7]+)+",
"name": "constant.numeric.octal.ara"
},
{
"match": "(?x)\n(?:\n (?:[0-9]+(?:_[0-9]+)*)?(\\.)[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # .3\n [0-9]+(?:_[0-9]+)*(\\.)(?:[0-9]+(?:_[0-9]+)*)?(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # 3.\n [0-9]+(?:_[0-9]+)*[eE][+-]?[0-9]+(?:_[0-9]+)* # 2e-3\n)",
"name": "constant.numeric.decimal.ara",
"captures": {
"1": {
"name": "punctuation.separator.decimal.period.ara"
},
"2": {
"name": "punctuation.separator.decimal.period.ara"
}
}
},
{
"match": "0|[1-9](?:_?[0-9]+)*",
"name": "constant.numeric.decimal.ara"
}
]
},
"operators": {
"patterns": [
{
"comment": "assignment operators",
"name": "keyword.assignments.ara",
"match": "(\\+=|-=|\\*=|/=|%=|\\^=|&&=|<=|>=|&=|\\|=|<<=|>>=|\\?\\?=)"
},
{
"comment": "logical operators",
"name": "keyword.operators.ara",
"match": "(\\^|\\||\\|\\||&&|>>|<<|&|~|<<|>>|>|<|<=>|\\?\\?|\\?|:|\\?:)(?!=)"
},
{
"comment": "comparison operators",
"name": "keyword.operator.comparison.ara",
"match": "(==|===|!==|!=|<=|>=|<|>)(?!=)"
},
{
"comment": "math operators",
"name": "keyword.operator.math.ara",
"match": "(([+%]|(\\*(?!\\w)))(?!=))|(-(?!>))|(/(?!/))"
},
{
"comment": "single equal assignment operator",
"name": "keyword.operator.assignment.ara",
"match": "(?<![<>])=(?!=|>)"
},
{
"comment": "less than, greater than (special case)",
"match": "(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([<>])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))",
"captures": {
"1": {
"name": "punctuation.brackets.round.ara"
},
"2": {
"name": "punctuation.brackets.square.ara"
},
"3": {
"name": "punctuation.brackets.curly.ara"
},
"4": {
"name": "keyword.operator.comparison.ara"
},
"5": {
"name": "punctuation.brackets.round.ara"
},
"6": {
"name": "punctuation.brackets.square.ara"
},
"7": {
"name": "punctuation.brackets.curly.ara"
}
}
},
{
"comment": "arrow method call, arrow property access",
"name": "keyword.operator.arrow.ara",
"match": "(?x)\n(?:\n -> | \\?-> \n)"
},
{
"comment": "double arrow key-value pair",
"name": "keyword.operator.double-arrow.ara",
"match": "(?x)\n(?:\n =>\n)"
},
{
"comment": "static method call, static property access",
"name": "keyword.operator.static.ara",
"match": "(?x)\n(?:\n ::\n)"
},
{
"comment": "closure creation",
"name": "keyword.operator.closure.ara",
"match": "(?x)\n(?:\n \\(\\.\\.\\.\\)\n)"
},
{
"comment": "spread operator",
"name": "keyword.operator.spread.ara",
"match": "(?x)\n(?:\n \\.\\.\\.\n)"
},
{
"comment": "namespace operator",
"name": "keyword.operator.namespace.ara",
"match": "\\\\"
}
]
}
}
}

1346
node_modules/shiki/languages/asm.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

773
node_modules/shiki/languages/astro.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,773 @@
{
"name": "astro",
"scopeName": "source.astro",
"fileTypes": ["astro"],
"injections": {
"L:(meta.script.astro) (meta.lang.json) - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.json",
"patterns": [
{
"include": "source.json"
}
]
}
]
},
"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.js",
"patterns": [
{
"include": "source.js"
}
]
}
]
},
"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.ts",
"patterns": [
{
"include": "source.ts"
}
]
}
]
},
"L:meta.script.astro - meta.lang - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.js",
"patterns": [
{
"include": "source.js"
}
]
}
]
},
"L:meta.style.astro meta.lang.stylus - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.stylus",
"patterns": [
{
"include": "source.stylus"
}
]
}
]
},
"L:meta.style.astro meta.lang.sass - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.sass",
"patterns": [
{
"include": "source.sass"
}
]
}
]
},
"L:meta.style.astro meta.lang.css - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.css",
"patterns": [
{
"include": "source.css"
}
]
}
]
},
"L:meta.style.astro meta.lang.scss - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.css.scss",
"patterns": [
{
"include": "source.css.scss"
}
]
}
]
},
"L:meta.style.astro meta.lang.less - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.css.less",
"patterns": [
{
"include": "source.css.less"
}
]
}
]
},
"L:meta.style.astro meta.lang.postcss - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.css.postcss",
"patterns": [
{
"include": "source.css.postcss"
}
]
}
]
},
"L:meta.style.astro - meta.lang - (meta source)": {
"patterns": [
{
"begin": "(?<=>)(?!</)",
"end": "(?=</)",
"name": "meta.embedded.block.astro",
"contentName": "source.css",
"patterns": [
{
"include": "source.css"
}
]
}
]
}
},
"patterns": [
{
"include": "#scope"
},
{
"include": "#frontmatter"
}
],
"repository": {
"frontmatter": {
"begin": "\\A(-{3})\\s*$",
"end": "(^|\\G)(-{3})|\\.{3}\\s*$",
"beginCaptures": {
"1": {
"name": "comment"
}
},
"endCaptures": {
"2": {
"name": "comment"
}
},
"contentName": "source.ts",
"patterns": [
{
"include": "source.ts"
}
]
},
"scope": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#tags"
},
{
"include": "#interpolation"
},
{
"begin": "(?<=>|})",
"end": "(?=<|{)",
"name": "text.astro"
}
]
},
"comments": {
"begin": "<!--",
"end": "-->",
"captures": {
"0": {
"name": "punctuation.definition.comment.astro"
}
},
"name": "comment.block.astro",
"patterns": [
{
"match": "\\G-?>|<!--(?!>)|<!-(?=-->)|--!>",
"name": "invalid.illegal.characters-not-allowed-here.astro"
}
]
},
"interpolation": {
"patterns": [
{
"begin": "\\{",
"end": "\\}",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.astro"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.astro"
}
},
"contentName": "meta.embedded.expression.astro source.tsx",
"patterns": [
{
"begin": "\\G\\s*(?={)",
"end": "(?<=})",
"patterns": [
{
"include": "source.tsx#object-literal"
}
]
},
{
"include": "source.tsx"
}
]
}
]
},
"attributes": {
"patterns": [
{
"include": "#attributes-events"
},
{
"include": "#attributes-keyvalue"
},
{
"include": "#attributes-interpolated"
}
]
},
"attributes-events": {
"begin": "(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\\\\w:-])",
"beginCaptures": {
"0": {
"patterns": [
{
"match": ".*",
"name": "entity.other.attribute-name.astro"
}
]
}
},
"end": "(?=\\s*+[^=\\s])",
"name": "meta.attribute.$1.astro",
"patterns": [
{
"begin": "=",
"beginCaptures": {
"0": {
"name": "punctuation.separator.key-value.astro"
}
},
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
"patterns": [
{
"begin": "(?=[^\\s=<>`/]|/(?!>))",
"end": "(?!\\G)",
"name": "meta.embedded.line.js",
"patterns": [
{
"match": "(([^\\s\\\"'=<>`/]|/(?!>))+)",
"name": "string.unquoted.astro",
"captures": {
"0": {
"name": "source.js"
},
"1": {
"patterns": [
{
"include": "source.js"
}
]
}
}
},
{
"begin": "([\"])",
"end": "\\1",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.astro"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.astro"
}
},
"name": "string.quoted.astro",
"patterns": [
{
"match": "([^\\n\\\"/]|/(?![/*]))+",
"captures": {
"0": {
"patterns": [
{
"include": "source.js"
}
]
}
}
},
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.js"
}
},
"end": "(?=\\\")|\\n",
"name": "comment.line.double-slash.js"
},
{
"begin": "/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.js"
}
},
"end": "(?=\\\")|\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.js"
}
},
"name": "comment.block.js"
}
]
},
{
"begin": "(['])",
"end": "\\1",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.astro"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.astro"
}
},
"name": "string.quoted.astro",
"patterns": [
{
"match": "([^\\n\\'/]|/(?![/*]))+",
"captures": {
"0": {
"patterns": [
{
"include": "source.js"
}
]
}
}
},
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.js"
}
},
"end": "(?=\\')|\\n",
"name": "comment.line.double-slash.js"
},
{
"begin": "/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.js"
}
},
"end": "(?=\\')|\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.js"
}
},
"name": "comment.block.js"
}
]
}
]
}
]
}
]
},
"attributes-interpolated": {
"begin": "(?<!:|=)\\s*({)",
"end": "(\\})",
"contentName": "meta.embedded.expression.astro source.tsx",
"patterns": [
{
"include": "source.tsx"
}
]
},
"attributes-keyvalue": {
"begin": "([_@$[:alpha:]][:._\\-$[:alnum:]]*)",
"beginCaptures": {
"0": {
"patterns": [
{
"match": ".*",
"name": "entity.other.attribute-name.astro"
}
]
}
},
"end": "(?=\\s*+[^=\\s])",
"name": "meta.attribute.$1.astro",
"patterns": [
{
"begin": "=",
"beginCaptures": {
"0": {
"name": "punctuation.separator.key-value.astro"
}
},
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
"patterns": [
{
"include": "#attributes-value"
}
]
}
]
},
"attributes-value": {
"patterns": [
{
"include": "#interpolation"
},
{
"match": "([^\\s\"'=<>`/]|/(?!>))+",
"name": "string.unquoted.astro"
},
{
"begin": "(['\"])",
"end": "\\1",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.astro"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.astro"
}
},
"name": "string.quoted.astro"
},
{
"begin": "(`)",
"end": "\\1",
"name": "string.template.astro",
"patterns": [
{
"include": "source.tsx#template-substitution-element"
}
]
}
]
},
"tags": {
"patterns": [
{
"include": "#tags-raw"
},
{
"include": "#tags-lang"
},
{
"include": "#tags-void"
},
{
"include": "#tags-general-end"
},
{
"include": "#tags-general-start"
}
]
},
"tags-name": {
"patterns": [
{
"match": "[A-Z][a-zA-Z0-9_]*",
"name": "support.class.component.astro"
},
{
"match": "[a-z][\\w0-9:]*-[\\w0-9:-]*",
"name": "meta.tag.custom.astro entity.name.tag.astro"
},
{
"match": "[a-z][\\w0-9:-]*",
"name": "entity.name.tag.astro"
}
]
},
"tags-start-attributes": {
"begin": "\\G",
"end": "(?=/?>)",
"name": "meta.tag.start.astro",
"patterns": [
{
"include": "#attributes"
}
]
},
"tags-lang-start-attributes": {
"begin": "\\G",
"end": "(?=/>)|>",
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.astro"
}
},
"name": "meta.tag.start.astro",
"patterns": [
{
"include": "#attributes"
}
]
},
"tags-start-node": {
"match": "(<)([^/\\s>/]*)",
"captures": {
"1": {
"name": "punctuation.definition.tag.begin.astro"
},
"2": {
"patterns": [
{
"include": "#tags-name"
}
]
}
},
"name": "meta.tag.start.astro"
},
"tags-end-node": {
"match": "(</)(.*?)\\s*(>)|(/>)",
"captures": {
"1": {
"name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
},
"2": {
"name": "meta.tag.end.astro",
"patterns": [
{
"include": "#tags-name"
}
]
},
"3": {
"name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
},
"4": {
"name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
}
}
},
"tags-raw": {
"begin": "<([^/?!\\s<>]+)(?=[^>]+is:raw).*?",
"beginCaptures": {
"0": {
"patterns": [
{
"include": "#tags-start-node"
}
]
}
},
"end": "</\\1\\s*>|/>",
"endCaptures": {
"0": {
"patterns": [
{
"include": "#tags-end-node"
}
]
}
},
"name": "meta.scope.tag.$1.astro meta.raw.astro",
"contentName": "source.unknown",
"patterns": [
{
"include": "#tags-lang-start-attributes"
}
]
},
"tags-lang": {
"begin": "<(script|style)",
"end": "</\\1\\s*>|/>",
"beginCaptures": {
"0": {
"patterns": [
{
"include": "#tags-start-node"
}
]
}
},
"endCaptures": {
"0": {
"patterns": [
{
"include": "#tags-end-node"
}
]
}
},
"name": "meta.scope.tag.$1.astro meta.$1.astro",
"patterns": [
{
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text\\/)?(application\\/ld\\+json)\\2)",
"end": "(?=</|/>)",
"name": "meta.lang.json.astro",
"patterns": [
{
"include": "#tags-lang-start-attributes"
}
]
},
{
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(module)\\2)",
"end": "(?=</|/>)",
"name": "meta.lang.javascript.astro",
"patterns": [
{
"include": "#tags-lang-start-attributes"
}
]
},
{
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text/|application/)?([\\w\\/+]+)\\2)",
"end": "(?=</|/>)",
"name": "meta.lang.$3.astro",
"patterns": [
{
"include": "#tags-lang-start-attributes"
}
]
},
{
"include": "#tags-lang-start-attributes"
}
]
},
"tags-void": {
"begin": "(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.astro"
},
"2": {
"name": "entity.name.tag.astro"
}
},
"end": "/?>",
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.begin.astro"
}
},
"name": "meta.tag.void.astro",
"patterns": [
{
"include": "#attributes"
}
]
},
"tags-general-start": {
"begin": "(<)([^/\\s>/]*)",
"end": "(/?>)",
"beginCaptures": {
"0": {
"patterns": [
{
"include": "#tags-start-node"
}
]
}
},
"endCaptures": {
"1": {
"name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
}
},
"name": "meta.scope.tag.$2.astro",
"patterns": [
{
"include": "#tags-start-attributes"
}
]
},
"tags-general-end": {
"begin": "(</)([^/\\s>]*)",
"end": "(>)",
"beginCaptures": {
"1": {
"name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
},
"2": {
"name": "meta.tag.end.astro",
"patterns": [
{
"include": "#tags-name"
}
]
}
},
"endCaptures": {
"1": {
"name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
}
},
"name": "meta.scope.tag.$2.astro"
}
}
}

386
node_modules/shiki/languages/awk.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,386 @@
{
"fileTypes": ["awk"],
"name": "awk",
"patterns": [
{
"include": "#comment"
},
{
"include": "#procedure"
},
{
"include": "#pattern"
}
],
"repository": {
"builtin-pattern": {
"match": "\\b(BEGINFILE|BEGIN|ENDFILE|END)\\b",
"name": "constant.language.awk"
},
"command": {
"patterns": [
{
"match": "\\b(?:next|print|printf)\\b",
"name": "keyword.other.command.awk"
},
{
"match": "\\b(?:close|getline|delete|system)\\b",
"name": "keyword.other.command.nawk"
},
{
"match": "\\b(?:fflush|nextfile)\\b",
"name": "keyword.other.command.bell-awk"
}
]
},
"comment": {
"match": "#.*",
"name": "comment.line.number-sign.awk"
},
"constant": {
"patterns": [
{
"include": "#numeric-constant"
},
{
"include": "#string-constant"
}
]
},
"escaped-char": {
"match": "\\\\(?:[\\\\abfnrtv/\"]|x[0-9A-Fa-f]{2}|[0-7]{3})",
"name": "constant.character.escape.awk"
},
"expression": {
"patterns": [
{
"include": "#command"
},
{
"include": "#function"
},
{
"include": "#constant"
},
{
"include": "#variable"
},
{
"include": "#regexp-in-expression"
},
{
"include": "#operator"
},
{
"include": "#groupings"
}
]
},
"function": {
"patterns": [
{
"match": "\\b(?:exp|int|log|sqrt|index|length|split|sprintf|substr)\\b",
"name": "support.function.awk"
},
{
"match": "\\b(?:atan2|cos|rand|sin|srand|gsub|match|sub|tolower|toupper)\\b",
"name": "support.function.nawk"
},
{
"match": "\\b(?:gensub|strftime|systime)\\b",
"name": "support.function.gawk"
}
]
},
"function-definition": {
"begin": "\\b(function)\\s+(\\w+)(\\()",
"beginCaptures": {
"1": {
"name": "storage.type.function.awk"
},
"2": {
"name": "entity.name.function.awk"
},
"3": {
"name": "punctuation.definition.parameters.begin.awk"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.definition.parameters.end.awk"
}
},
"patterns": [
{
"match": "\\b(\\w+)\\b",
"name": "variable.parameter.function.awk"
},
{
"match": "\\b(,)\\b",
"name": "punctuation.separator.parameters.awk"
}
]
},
"groupings": {
"patterns": [
{
"match": "\\(",
"name": "meta.brace.round.awk"
},
{
"match": "\\)",
"name": "meta.brace.round.awk"
},
{
"match": "\\,",
"name": "punctuation.separator.parameters.awk"
}
]
},
"keyword": {
"match": "\\b(?:break|continue|do|while|exit|for|if|else|return)\\b",
"name": "keyword.control.awk"
},
"numeric-constant": {
"match": "\\b[0-9]+(?:\\.[0-9]+)?(?:e[+-][0-9]+)?\\b",
"name": "constant.numeric.awk"
},
"operator": {
"patterns": [
{
"match": "(!?~|[=<>!]=|[<>])",
"name": "keyword.operator.comparison.awk"
},
{
"match": "\\b(in)\\b",
"name": "keyword.operator.comparison.awk"
},
{
"match": "([+\\-*/%^]=|\\+\\+|--|>>|=)",
"name": "keyword.operator.assignment.awk"
},
{
"match": "(\\|\\||&&|!)",
"name": "keyword.operator.boolean.awk"
},
{
"match": "([+\\-*/%^])",
"name": "keyword.operator.arithmetic.awk"
},
{
"match": "([?:])",
"name": "keyword.operator.trinary.awk"
},
{
"match": "(\\[|\\])",
"name": "keyword.operator.index.awk"
}
]
},
"pattern": {
"patterns": [
{
"include": "#regexp-as-pattern"
},
{
"include": "#function-definition"
},
{
"include": "#builtin-pattern"
},
{
"include": "#expression"
}
]
},
"procedure": {
"begin": "\\{",
"end": "\\}",
"patterns": [
{
"include": "#comment"
},
{
"include": "#procedure"
},
{
"include": "#keyword"
},
{
"include": "#expression"
}
]
},
"regex-as-assignment": {
"begin": "([^=<>!+\\-*/%^]=)\\s*(/)",
"beginCaptures": {
"1": {
"name": "keyword.operator.assignment.awk"
},
"2": {
"name": "punctuation.definition.regex.begin.awk"
}
},
"contentName": "string.regexp",
"end": "/",
"endCaptures": {
"0": {
"name": "punctuation.definition.regex.end.awk"
}
},
"patterns": [
{
"include": "source.regexp"
}
]
},
"regex-as-comparison": {
"begin": "(!?~)\\s*(/)",
"beginCaptures": {
"1": {
"name": "keyword.operator.comparison.awk"
},
"2": {
"name": "punctuation.definition.regex.begin.awk"
}
},
"contentName": "string.regexp",
"end": "/",
"endCaptures": {
"0": {
"name": "punctuation.definition.regex.end.awk"
}
},
"patterns": [
{
"include": "source.regexp"
}
]
},
"regex-as-first-argument": {
"begin": "(\\()\\s*(/)",
"beginCaptures": {
"1": {
"name": "meta.brace.round.awk"
},
"2": {
"name": "punctuation.definition.regex.begin.awk"
}
},
"contentName": "string.regexp",
"end": "/",
"endCaptures": {
"0": {
"name": "punctuation.definition.regex.end.awk"
}
},
"patterns": [
{
"include": "source.regexp"
}
]
},
"regex-as-nth-argument": {
"begin": "(,)\\s*(/)",
"beginCaptures": {
"1": {
"name": "punctuation.separator.parameters.awk"
},
"2": {
"name": "punctuation.definition.regex.begin.awk"
}
},
"contentName": "string.regexp",
"end": "/",
"endCaptures": {
"0": {
"name": "punctuation.definition.regex.end.awk"
}
},
"patterns": [
{
"include": "source.regexp"
}
]
},
"regexp-as-pattern": {
"begin": "/",
"beginCaptures": {
"0": {
"name": "punctuation.definition.regex.begin.awk"
}
},
"contentName": "string.regexp",
"end": "/",
"endCaptures": {
"0": {
"name": "punctuation.definition.regex.end.awk"
}
},
"patterns": [
{
"include": "source.regexp"
}
]
},
"regexp-in-expression": {
"patterns": [
{
"include": "#regex-as-assignment"
},
{
"include": "#regex-as-comparison"
},
{
"include": "#regex-as-first-argument"
},
{
"include": "#regex-as-nth-argument"
}
]
},
"string-constant": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.awk"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.awk"
}
},
"name": "string.quoted.double.awk",
"patterns": [
{
"include": "#escaped-char"
}
]
},
"variable": {
"patterns": [
{
"match": "\\$[0-9]+",
"name": "variable.language.awk"
},
{
"match": "\\b(?:FILENAME|FS|NF|NR|OFMT|OFS|ORS|RS)\\b",
"name": "variable.language.awk"
},
{
"match": "\\b(?:ARGC|ARGV|CONVFMT|ENVIRON|FNR|RLENGTH|RSTART|SUBSEP)\\b",
"name": "variable.language.nawk"
},
{
"match": "\\b(?:ARGIND|ERRNO|FIELDWIDTHS|IGNORECASE|RT)\\b",
"name": "variable.language.gawk"
}
]
}
},
"scopeName": "source.awk",
"uuid": "67bd1ff0-006b-4c32-8b97-8bc198777582"
}

3784
node_modules/shiki/languages/ballerina.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

788
node_modules/shiki/languages/bat.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,788 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/mmims/language-batchfile/blob/master/grammars/batchfile.cson",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/mmims/language-batchfile/commit/6154ae25a24e01ac9329e7bcf958e093cd8733a9",
"name": "bat",
"scopeName": "source.batchfile",
"injections": {
"L:meta.block.repeat.batchfile": {
"patterns": [
{
"include": "#repeatParameter"
}
]
}
},
"patterns": [
{
"include": "#commands"
},
{
"include": "#comments"
},
{
"include": "#constants"
},
{
"include": "#controls"
},
{
"include": "#escaped_characters"
},
{
"include": "#labels"
},
{
"include": "#numbers"
},
{
"include": "#operators"
},
{
"include": "#parens"
},
{
"include": "#strings"
},
{
"include": "#variables"
}
],
"repository": {
"commands": {
"patterns": [
{
"match": "(?<=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scp|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|sftp|shadow|shift|showmount|shutdown|sort|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|wmic|wscript|wsl|xcopy)(?=$|\\s)",
"name": "keyword.command.batchfile"
},
{
"begin": "(?i)(?<=^|[\\s@])(echo)(?:(?=$|\\.|:)|\\s+(?:(on|off)(?=\\s*$))?)",
"beginCaptures": {
"1": {
"name": "keyword.command.batchfile"
},
"2": {
"name": "keyword.other.special-method.batchfile"
}
},
"end": "(?=$\\n|[&|><)])",
"patterns": [
{
"include": "#escaped_characters"
},
{
"include": "#variables"
},
{
"include": "#numbers"
},
{
"include": "#strings"
}
]
},
{
"match": "(?i)(?<=^|[\\s@])(setlocal)(?:\\s*$|\\s+(EnableExtensions|DisableExtensions|EnableDelayedExpansion|DisableDelayedExpansion)(?=\\s*$))",
"captures": {
"1": {
"name": "keyword.command.batchfile"
},
"2": {
"name": "keyword.other.special-method.batchfile"
}
}
},
{
"include": "#command_set"
}
]
},
"command_set": {
"patterns": [
{
"begin": "(?<=^|[\\s@])(?i:SET)(?=$|\\s)",
"beginCaptures": {
"0": {
"name": "keyword.command.batchfile"
}
},
"end": "(?=$\\n|[&|><)])",
"patterns": [
{
"include": "#command_set_inside"
}
]
}
]
},
"command_set_inside": {
"patterns": [
{
"include": "#escaped_characters"
},
{
"include": "#variables"
},
{
"include": "#numbers"
},
{
"include": "#parens"
},
{
"include": "#command_set_strings"
},
{
"include": "#strings"
},
{
"begin": "([^ ][^=]*)(=)",
"beginCaptures": {
"1": {
"name": "variable.other.readwrite.batchfile"
},
"2": {
"name": "keyword.operator.assignment.batchfile"
}
},
"end": "(?=$\\n|[&|><)])",
"patterns": [
{
"include": "#escaped_characters"
},
{
"include": "#variables"
},
{
"include": "#numbers"
},
{
"include": "#parens"
},
{
"include": "#strings"
}
]
},
{
"begin": "\\s+/[aA]\\s+",
"end": "(?=$\\n|[&|><)])",
"name": "meta.expression.set.batchfile",
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.batchfile"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.batchfile"
}
},
"name": "string.quoted.double.batchfile",
"patterns": [
{
"include": "#command_set_inside_arithmetic"
},
{
"include": "#command_set_group"
},
{
"include": "#variables"
}
]
},
{
"include": "#command_set_inside_arithmetic"
},
{
"include": "#command_set_group"
}
]
},
{
"begin": "\\s+/[pP]\\s+",
"end": "(?=$\\n|[&|><)])",
"patterns": [
{
"include": "#command_set_strings"
},
{
"begin": "([^ ][^=]*)(=)",
"beginCaptures": {
"1": {
"name": "variable.other.readwrite.batchfile"
},
"2": {
"name": "keyword.operator.assignment.batchfile"
}
},
"end": "(?=$\\n|[&|><)])",
"name": "meta.prompt.set.batchfile",
"patterns": [
{
"include": "#strings"
}
]
}
]
}
]
},
"command_set_group": {
"patterns": [
{
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "punctuation.section.group.begin.batchfile"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.group.end.batchfile"
}
},
"patterns": [
{
"include": "#command_set_inside_arithmetic"
}
]
}
]
},
"command_set_inside_arithmetic": {
"patterns": [
{
"include": "#command_set_operators"
},
{
"include": "#numbers"
},
{
"match": ",",
"name": "punctuation.separator.batchfile"
}
]
},
"command_set_operators": {
"patterns": [
{
"match": "([^ ]*)(\\+\\=|\\-\\=|\\*\\=|\\/\\=|%%\\=|&\\=|\\|\\=|\\^\\=|<<\\=|>>\\=)",
"captures": {
"1": {
"name": "variable.other.readwrite.batchfile"
},
"2": {
"name": "keyword.operator.assignment.augmented.batchfile"
}
}
},
{
"match": "\\+|\\-|/|\\*|%%|\\||&|\\^|<<|>>|~",
"name": "keyword.operator.arithmetic.batchfile"
},
{
"match": "!",
"name": "keyword.operator.logical.batchfile"
},
{
"match": "([^ =]*)(=)",
"captures": {
"1": {
"name": "variable.other.readwrite.batchfile"
},
"2": {
"name": "keyword.operator.assignment.batchfile"
}
}
}
]
},
"command_set_strings": {
"patterns": [
{
"begin": "(\")\\s*([^ ][^=]*)(=)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.batchfile"
},
"2": {
"name": "variable.other.readwrite.batchfile"
},
"3": {
"name": "keyword.operator.assignment.batchfile"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.batchfile"
}
},
"name": "string.quoted.double.batchfile",
"patterns": [
{
"include": "#variables"
},
{
"include": "#numbers"
},
{
"include": "#escaped_characters"
}
]
}
]
},
"comments": {
"patterns": [
{
"begin": "(?:^|(&))\\s*(?=((?::[+=,;: ])))",
"beginCaptures": {
"1": {
"name": "keyword.operator.conditional.batchfile"
}
},
"end": "\\n",
"patterns": [
{
"begin": "((?::[+=,;: ]))",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.batchfile"
}
},
"end": "(?=\\n)",
"name": "comment.line.colon.batchfile"
}
]
},
{
"begin": "(?<=^|[\\s@])(?i)(REM)(\\.)",
"beginCaptures": {
"1": {
"name": "keyword.command.rem.batchfile"
},
"2": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=$\\n|[&|><)])",
"name": "comment.line.rem.batchfile"
},
{
"begin": "(?<=^|[\\s@])(?i:rem)\\b",
"beginCaptures": {
"0": {
"name": "keyword.command.rem.batchfile"
}
},
"end": "\\n",
"name": "comment.line.rem.batchfile",
"patterns": [
{
"match": "[><|]",
"name": "invalid.illegal.unexpected-character.batchfile"
}
]
}
]
},
"constants": {
"patterns": [
{
"match": "\\b(?i:NUL)\\b",
"name": "constant.language.batchfile"
}
]
},
"controls": {
"patterns": [
{
"match": "(?i)(?<=^|\\s)(?:call|exit(?=$|\\s)|goto(?=$|\\s|:))",
"name": "keyword.control.statement.batchfile"
},
{
"match": "(?<=^|\\s)(?i)(if)\\s+(?:(not)\\s+)?(exist|defined|errorlevel|cmdextversion)(?=\\s)",
"captures": {
"1": {
"name": "keyword.control.conditional.batchfile"
},
"2": {
"name": "keyword.operator.logical.batchfile"
},
"3": {
"name": "keyword.other.special-method.batchfile"
}
}
},
{
"match": "(?<=^|\\s)(?i)(?:if|else)(?=$|\\s)",
"name": "keyword.control.conditional.batchfile"
},
{
"begin": "(?<=^|[\\s(&^])(?i)for(?=\\s)",
"beginCaptures": {
"0": {
"name": "keyword.control.repeat.batchfile"
}
},
"name": "meta.block.repeat.batchfile",
"end": "\\n",
"patterns": [
{
"begin": "(?<=[\\s^])(?i)in(?=\\s)",
"beginCaptures": {
"0": {
"name": "keyword.control.repeat.in.batchfile"
}
},
"end": "(?<=[\\s)^])(?i)do(?=\\s)|\\n",
"endCaptures": {
"0": {
"name": "keyword.control.repeat.do.batchfile"
}
},
"patterns": [
{
"include": "$self"
}
]
},
{
"include": "$self"
}
]
}
]
},
"escaped_characters": {
"patterns": [
{
"match": "%%|\\^\\^!|\\^(?=.)|\\^\\n",
"name": "constant.character.escape.batchfile"
}
]
},
"labels": {
"patterns": [
{
"match": "(?i)(?:^\\s*|(?<=call|goto)\\s*)(:)([^+=,;:\\s]\\S*)",
"captures": {
"1": {
"name": "punctuation.separator.batchfile"
},
"2": {
"name": "keyword.other.special-method.batchfile"
}
}
}
]
},
"numbers": {
"patterns": [
{
"match": "(?<=^|\\s|=)(0[xX][0-9A-Fa-f]*|[+-]?\\d+)(?=$|\\s|<|>)",
"name": "constant.numeric.batchfile"
}
]
},
"operators": {
"patterns": [
{
"match": "@(?=\\S)",
"name": "keyword.operator.at.batchfile"
},
{
"match": "(?<=\\s)(?i:EQU|NEQ|LSS|LEQ|GTR|GEQ)(?=\\s)|==",
"name": "keyword.operator.comparison.batchfile"
},
{
"match": "(?<=\\s)(?i)(NOT)(?=\\s)",
"name": "keyword.operator.logical.batchfile"
},
{
"match": "(?<!\\^)&&?|\\|\\|",
"name": "keyword.operator.conditional.batchfile"
},
{
"match": "(?<!\\^)\\|",
"name": "keyword.operator.pipe.batchfile"
},
{
"match": "<&?|>[&>]?",
"name": "keyword.operator.redirection.batchfile"
}
]
},
"parens": {
"patterns": [
{
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "punctuation.section.group.begin.batchfile"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.group.end.batchfile"
}
},
"name": "meta.group.batchfile",
"patterns": [
{
"match": ",|;",
"name": "punctuation.separator.batchfile"
},
{
"include": "$self"
}
]
}
]
},
"repeatParameter": {
"patterns": [
{
"match": "(%%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?[a-zA-Z])",
"captures": {
"1": {
"name": "punctuation.definition.variable.batchfile"
}
},
"name": "variable.parameter.repeat.batchfile"
}
]
},
"strings": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.batchfile"
}
},
"end": "(\")|(\\n)",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.batchfile"
},
"2": {
"name": "invalid.illegal.newline.batchfile"
}
},
"name": "string.quoted.double.batchfile",
"patterns": [
{
"match": "%%",
"name": "constant.character.escape.batchfile"
},
{
"include": "#variables"
}
]
}
]
},
"variables": {
"patterns": [
{
"match": "(%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?\\d|\\*)",
"captures": {
"1": {
"name": "punctuation.definition.variable.batchfile"
}
},
"name": "variable.parameter.batchfile"
},
{
"include": "#variable"
},
{
"include": "#variable_delayed_expansion"
}
]
},
"variable": {
"patterns": [
{
"begin": "%(?=[^%]+%)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.variable.begin.batchfile"
}
},
"end": "(%)|\\n",
"endCaptures": {
"1": {
"name": "punctuation.definition.variable.end.batchfile"
}
},
"name": "variable.other.readwrite.batchfile",
"patterns": [
{
"begin": ":~",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=%|\\n)",
"name": "meta.variable.substring.batchfile",
"patterns": [
{
"include": "#variable_substring"
}
]
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=%|\\n)",
"name": "meta.variable.substitution.batchfile",
"patterns": [
{
"include": "#variable_replace"
},
{
"begin": "=",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=%|\\n)",
"patterns": [
{
"include": "#variable_delayed_expansion"
},
{
"match": "[^%]+",
"name": "string.unquoted.batchfile"
}
]
}
]
}
]
}
]
},
"variable_delayed_expansion": {
"patterns": [
{
"begin": "!(?=[^!]+!)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.variable.begin.batchfile"
}
},
"end": "(!)|\\n",
"endCaptures": {
"1": {
"name": "punctuation.definition.variable.end.batchfile"
}
},
"name": "variable.other.readwrite.batchfile",
"patterns": [
{
"begin": ":~",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=!|\\n)",
"name": "meta.variable.substring.batchfile",
"patterns": [
{
"include": "#variable_substring"
}
]
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=!|\\n)",
"name": "meta.variable.substitution.batchfile",
"patterns": [
{
"include": "#escaped_characters"
},
{
"include": "#variable_replace"
},
{
"include": "#variable"
},
{
"begin": "=",
"beginCaptures": {
"0": {
"name": "punctuation.separator.batchfile"
}
},
"end": "(?=!|\\n)",
"patterns": [
{
"include": "#variable"
},
{
"match": "[^!]+",
"name": "string.unquoted.batchfile"
}
]
}
]
}
]
}
]
},
"variable_replace": {
"patterns": [
{
"match": "[^=%!\\n]+",
"name": "string.unquoted.batchfile"
}
]
},
"variable_substring": {
"patterns": [
{
"match": "([+-]?\\d+)(?:(,)([+-]?\\d+))?",
"captures": {
"1": {
"name": "constant.numeric.batchfile"
},
"2": {
"name": "punctuation.separator.batchfile"
},
"3": {
"name": "constant.numeric.batchfile"
}
}
}
]
}
}
}

829
node_modules/shiki/languages/beancount.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,829 @@
{
"fileTypes": ["beancount"],
"name": "beancount",
"patterns": [
{
"comment": "Comments",
"match": ";.*",
"name": "comment.line.beancount"
},
{
"begin": "^\\s*(poptag|pushtag)\\s+(#)([A-Za-z0-9\\-_/.]+)",
"beginCaptures": {
"1": {
"name": "support.function.beancount"
},
"2": {
"name": "keyword.operator.tag.beancount"
},
"3": {
"name": "entity.name.tag.beancount"
}
},
"comment": "Tag directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.tag.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#illegal"
}
]
},
{
"begin": "^\\s*(include)\\s+(\\\".*\\\")",
"beginCaptures": {
"1": {
"name": "support.function.beancount"
},
"2": {
"name": "string.quoted.double.beancount"
}
},
"comment": "Include directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.include.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#illegal"
}
]
},
{
"begin": "^\\s*(option)\\s+(\\\".*\\\")\\s+(\\\".*\\\")",
"beginCaptures": {
"1": {
"name": "support.function.beancount"
},
"2": {
"name": "support.variable.beancount"
},
"3": {
"name": "string.quoted.double.beancount"
}
},
"comment": "Option directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.option.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#illegal"
}
]
},
{
"begin": "^\\s*(plugin)\\s*(\"(.*?)\")\\s*(\".*?\")?",
"beginCaptures": {
"1": {
"name": "support.function.beancount"
},
"2": {
"name": "string.quoted.double.beancount"
},
"3": {
"name": "entity.name.function.beancount"
},
"4": {
"name": "string.quoted.double.beancount"
}
},
"comment": "Plugin directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "keyword.operator.directive.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s+(open|close|pad)\\b",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.beancount"
}
},
"comment": "Open/Close/Pad directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#account"
},
{
"include": "#commodity"
},
{
"match": "\\,",
"name": "punctuation.separator.beancount"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s+(custom)\\b",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.beancount"
}
},
"comment": "Custom directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#string"
},
{
"include": "#bool"
},
{
"include": "#amount"
},
{
"include": "#number"
},
{
"include": "#date"
},
{
"include": "#account"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(event)",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"comment": "Event directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#string"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(commodity)",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"comment": "Commodity directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#commodity"
},
{
"include": "#illegal"
}
]
},
{
"name": "meta.directive.notetotext.beancount",
"comment": "Note as Oneliner Transaction directive",
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s+(note)(?=(.*\\*\\\"\\s))",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"end": "(?=(^\\s*$|^\\S))",
"patterns": [
{
"include": "#meta"
},
{
"include": "#account"
},
{
"name": "punctuation.separator.beancount",
"match": "(?<=\\s)\\\""
},
{
"include": "#cost"
},
{
"include": "#amount"
},
{
"begin": "(\\*|\\!)",
"beginCaptures": {
"0": {
"name": "support.function.directive.beancount"
}
},
"end": "(\\*\\\")",
"endCaptures": {
"0": {
"name": "punctuation.separator.beancount"
}
},
"patterns": [
{
"name": "constant.character.escape.beancount",
"match": "\\\\."
},
{
"include": "#tag"
},
{
"name": "string.quoted.double.beancount",
"match": "([^\\\"])"
}
]
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(note|document)",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"comment": "Note/Document directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#account"
},
{
"include": "#string"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(price)",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"comment": "Price directives",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#commodity"
},
{
"include": "#amount"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(balance)",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
}
},
"comment": "Balance directives",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.dated.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#meta"
},
{
"include": "#account"
},
{
"include": "#amount"
},
{
"include": "#illegal"
}
]
},
{
"begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s*(txn|[*!&#?%PSTCURM])\\s*(\".*?\")?\\s*(\".*?\")?",
"beginCaptures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
},
"6": {
"name": "support.function.directive.beancount"
},
"7": {
"name": "string.quoted.tiers.beancount"
},
"8": {
"name": "string.quoted.narration.beancount"
}
},
"comment": "Transaction directive",
"end": "(?=(^\\s*$|^\\S))",
"name": "meta.directive.transaction.beancount",
"patterns": [
{
"include": "#comments"
},
{
"include": "#posting"
},
{
"include": "#meta"
},
{
"include": "#tag"
},
{
"include": "#link"
},
{
"include": "#illegal"
}
]
}
],
"repository": {
"account": {
"begin": "([A-Z][a-z]+)(:)",
"beginCaptures": {
"1": {
"name": "constant.language.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
}
},
"end": "\\s",
"name": "meta.account.beancount",
"patterns": [
{
"begin": "(\\S+)([:]?)",
"beginCaptures": {
"1": {
"name": "variable.account.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
}
},
"comment": "Sub accounts",
"end": "([:]?)|(\\s)",
"patterns": [
{
"include": "$self"
},
{
"include": "#illegal"
}
]
}
]
},
"bool": {
"captures": {
"0": {
"name": "constant.language.bool.beancount"
},
"2": {
"name": "constant.numeric.currency.beancount"
},
"3": {
"name": "entity.type.commodity.beancount"
}
},
"match": "TRUE|FALSE"
},
"number": {
"captures": {
"1": {
"name": "keyword.operator.modifier.beancount"
},
"2": {
"name": "constant.numeric.currency.beancount"
}
},
"match": "([\\-|\\+]?)(\\d+(?:,\\d{3})*(?:\\.\\d*)?)"
},
"amount": {
"captures": {
"1": {
"name": "keyword.operator.modifier.beancount"
},
"2": {
"name": "constant.numeric.currency.beancount"
},
"3": {
"name": "entity.type.commodity.beancount"
}
},
"match": "([\\-|\\+]?)(\\d+(?:,\\d{3})*(?:\\.\\d*)?)\\s*([A-Z][A-Z0-9\\'\\.\\_\\-]{0,22}[A-Z0-9])",
"name": "meta.amount.beancount"
},
"comments": {
"captures": {
"1": {
"name": "comment.line.beancount"
}
},
"match": "(;.*)$"
},
"commodity": {
"match": "([A-Z][A-Z0-9\\'\\.\\_\\-]{0,22}[A-Z0-9])",
"name": "entity.type.commodity.beancount"
},
"cost": {
"begin": "\\{\\{?",
"beginCaptures": {
"0": {
"name": "keyword.operator.assignment.beancount"
}
},
"end": "\\}\\}?",
"endCaptures": {
"0": {
"name": "keyword.operator.assignment.beancount"
}
},
"name": "meta.cost.beancount",
"patterns": [
{
"include": "#amount"
},
{
"include": "#date"
},
{
"match": "\\,",
"name": "punctuation.separator.beancount"
},
{
"include": "#illegal"
}
]
},
"date": {
"captures": {
"1": {
"name": "constant.numeric.date.year.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
},
"3": {
"name": "constant.numeric.date.month.beancount"
},
"4": {
"name": "punctuation.separator.beancount"
},
"5": {
"name": "constant.numeric.date.day.beancount"
}
},
"match": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})",
"name": "meta.date.beancount"
},
"flag": {
"match": "(?<=\\s)([*!&#?%PSTCURM])(?=\\s+)",
"name": "keyword.other.beancount"
},
"illegal": {
"match": "[^\\s]",
"name": "invalid.illegal.unrecognized.beancount"
},
"link": {
"captures": {
"1": {
"name": "keyword.operator.link.beancount"
},
"2": {
"name": "markup.underline.link.beancount"
}
},
"match": "(\\^)([A-Za-z0-9\\-_/.]+)"
},
"meta": {
"begin": "^\\s*([a-z][A-Za-z0-9\\-_]+)([:])",
"beginCaptures": {
"1": {
"name": "keyword.operator.directive.beancount"
},
"2": {
"name": "punctuation.separator.beancount"
}
},
"end": "\\n",
"name": "meta.meta.beancount",
"patterns": [
{
"include": "#string"
},
{
"include": "#account"
},
{
"include": "#bool"
},
{
"include": "#commodity"
},
{
"include": "#date"
},
{
"include": "#tag"
},
{
"include": "#amount"
},
{
"include": "#number"
},
{
"include": "#comments"
},
{
"include": "#illegal"
}
]
},
"posting": {
"begin": "^\\s+(?=([A-Z\\!]))",
"end": "(?=(^\\s*$|^\\S|^\\s*[A-Z]))",
"name": "meta.posting.beancount",
"patterns": [
{
"include": "#meta"
},
{
"include": "#comments"
},
{
"include": "#flag"
},
{
"include": "#account"
},
{
"include": "#amount"
},
{
"include": "#cost"
},
{
"include": "#date"
},
{
"include": "#price"
},
{
"include": "#illegal"
}
]
},
"price": {
"begin": "\\@\\@?",
"beginCaptures": {
"0": {
"name": "keyword.operator.assignment.beancount"
}
},
"end": "(?=(;|\\n))",
"name": "meta.price.beancount",
"patterns": [
{
"include": "#amount"
},
{
"include": "#illegal"
}
]
},
"string": {
"begin": "\\\"",
"end": "\\\"",
"name": "string.quoted.double.beancount",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.beancount"
}
]
},
"tag": {
"captures": {
"1": {
"name": "keyword.operator.tag.beancount"
},
"2": {
"name": "entity.name.tag.beancount"
}
},
"match": "(#)([A-Za-z0-9\\-_/.]+)"
}
},
"scopeName": "text.beancount",
"uuid": "dbf28879-ee4d-497e-a678-a5c5a5e8d74f"
}

123
node_modules/shiki/languages/berry.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,123 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "berry",
"patterns": [
{
"include": "#controls"
},
{
"include": "#strings"
},
{
"include": "#comment-block"
},
{
"include": "#comments"
},
{
"include": "#keywords"
},
{
"include": "#function"
},
{
"include": "#member"
},
{
"include": "#identifier"
},
{
"include": "#number"
},
{
"include": "#operator"
}
],
"repository": {
"controls": {
"patterns": [
{
"name": "keyword.control.berry",
"match": "\\b(if|elif|else|for|while|do|end|break|continue|return|try|except|raise)\\b"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.double.berry",
"match": "\"(\\\\.|[^\"])*\""
},
{
"name": "string.quoted.single.berry",
"match": "'(\\\\.|[^'])*'"
}
]
},
"comment-block": {
"name": "comment.berry",
"begin": "\\#\\-",
"end": "\\-#",
"patterns": [{}]
},
"comments": {
"name": "comment.line.berry",
"begin": "\\#",
"end": "\\n",
"patterns": [{}]
},
"keywords": {
"patterns": [
{
"name": "keyword.berry",
"match": "\\b(var|static|def|class|true|false|nil|self|super|import|as)\\b"
}
]
},
"identifier": {
"patterns": [
{
"name": "identifier.berry",
"match": "\\b[_A-Za-z]\\w+\\b"
}
]
},
"number": {
"patterns": [
{
"name": "constant.numeric.berry",
"match": "0x[a-fA-F0-9]+|\\d+|(\\d+\\.?|\\.\\d)\\d*([eE][+-]?\\d+)?"
}
]
},
"operator": {
"patterns": [
{
"name": "keyword.operator.berry",
"match": "\\(|\\)|\\[|\\]|\\.|-|\\!|~|\\*|/|%|\\+|&|\\^|\\||<|>|=|:"
}
]
},
"member": {
"patterns": [
{
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)",
"captures": {
"0": {
"name": "entity.other.attribute-name.berry"
}
}
}
]
},
"function": {
"patterns": [
{
"name": "entity.name.function.berry",
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\())"
}
]
}
},
"scopeName": "source.berry"
}

401
node_modules/shiki/languages/bibtex.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,401 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/jlelong/vscode-latex-basics/blob/master/syntaxes/Bibtex.tmLanguage.json",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/jlelong/vscode-latex-basics/commit/4b19be579cb4a3c680f8b4bb613dcebfac826f8b",
"name": "bibtex",
"scopeName": "text.bibtex",
"comment": "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\t\n\tTODO: Does not support @preamble\n\t",
"patterns": [
{
"begin": "@Comment",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.bibtex"
}
},
"end": "$\\n?",
"name": "comment.line.at-sign.bibtex"
},
{
"patterns": [
{
"include": "#percentage_comment"
}
]
},
{
"begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)",
"beginCaptures": {
"1": {
"name": "keyword.other.string-constant.bibtex"
},
"2": {
"name": "punctuation.definition.keyword.bibtex"
},
"3": {
"name": "punctuation.section.string-constant.begin.bibtex"
},
"4": {
"name": "variable.other.bibtex"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.section.string-constant.end.bibtex"
}
},
"name": "meta.string-constant.braces.bibtex",
"patterns": [
{
"include": "#string_content"
}
]
},
{
"begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)",
"beginCaptures": {
"1": {
"name": "keyword.other.string-constant.bibtex"
},
"2": {
"name": "punctuation.definition.keyword.bibtex"
},
"3": {
"name": "punctuation.section.string-constant.begin.bibtex"
},
"4": {
"name": "variable.other.bibtex"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.string-constant.end.bibtex"
}
},
"name": "meta.string-constant.parenthesis.bibtex",
"patterns": [
{
"include": "#string_content"
}
]
},
{
"begin": "((@)[a-zA-Z]+)\\s*(\\{)\\s*([^\\s,]*)",
"beginCaptures": {
"1": {
"name": "keyword.other.entry-type.bibtex"
},
"2": {
"name": "punctuation.definition.keyword.bibtex"
},
"3": {
"name": "punctuation.section.entry.begin.bibtex"
},
"4": {
"name": "entity.name.type.entry-key.bibtex"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.section.entry.end.bibtex"
}
},
"name": "meta.entry.braces.bibtex",
"patterns": [
{
"include": "#percentage_comment"
},
{
"include": "#url_field"
},
{
"begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
"beginCaptures": {
"1": {
"name": "support.function.key.bibtex"
},
"2": {
"name": "punctuation.separator.key-value.bibtex"
}
},
"end": "(?=[,}])",
"name": "meta.key-assignment.bibtex",
"patterns": [
{
"include": "#percentage_comment"
},
{
"include": "#integer"
},
{
"include": "#string_content"
},
{
"include": "#string_var"
}
]
}
]
},
{
"begin": "((@)[a-zA-Z]+)\\s*(\\()\\s*([^\\s,]*)",
"beginCaptures": {
"1": {
"name": "keyword.other.entry-type.bibtex"
},
"2": {
"name": "punctuation.definition.keyword.bibtex"
},
"3": {
"name": "punctuation.section.entry.begin.bibtex"
},
"4": {
"name": "entity.name.type.entry-key.bibtex"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.entry.end.bibtex"
}
},
"name": "meta.entry.parenthesis.bibtex",
"patterns": [
{
"include": "#percentage_comment"
},
{
"include": "#url_field"
},
{
"begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
"beginCaptures": {
"1": {
"name": "support.function.key.bibtex"
},
"2": {
"name": "punctuation.separator.key-value.bibtex"
}
},
"end": "(?=[,)])",
"name": "meta.key-assignment.bibtex",
"patterns": [
{
"include": "#percentage_comment"
},
{
"include": "#integer"
},
{
"include": "#string_content"
},
{
"include": "#string_var"
}
]
}
]
},
{
"begin": "[^@\\n]",
"end": "(?=@)",
"name": "comment.block.bibtex"
}
],
"repository": {
"integer": {
"match": "\\s*(\\d+)\\s*",
"captures": {
"1": {
"name": "constant.numeric.bibtex"
}
}
},
"nested_braces": {
"begin": "(?<!\\\\)\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.group.begin.bibtex"
}
},
"end": "(?<!\\\\)\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.group.end.bibtex"
}
},
"patterns": [
{
"include": "#nested_braces"
}
]
},
"string_var": {
"match": "(#)?\\s*([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(#)?",
"captures": {
"1": {
"name": "keyword.operator.bibtex"
},
"2": {
"name": "support.variable.bibtex"
},
"3": {
"name": "keyword.operator.bibtex"
}
}
},
"string_content": {
"patterns": [
{
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.bibtex"
}
},
"end": "(\\})(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.bibtex"
}
},
"patterns": [
{
"include": "#url_cmd"
},
{
"include": "#percentage_comment"
},
{
"match": "@",
"name": "invalid.illegal.at-sign.bibtex"
},
{
"include": "#nested_braces"
}
]
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.bibtex"
}
},
"end": "\"(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.bibtex"
}
},
"patterns": [
{
"include": "#url_cmd"
},
{
"include": "#percentage_comment"
},
{
"match": "@",
"name": "invalid.illegal.at-sign.bibtex"
}
]
}
]
},
"string_url": {
"patterns": [
{
"begin": "\\{|\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.bibtex"
}
},
"end": "(\\}|\")(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.bibtex"
}
},
"contentName": "meta.url.bibtex",
"patterns": [
{
"include": "#url_cmd"
}
]
}
]
},
"percentage_comment": {
"patterns": [
{
"begin": "(^[ \\t]+)?(?=%)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.bibtex"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "%",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.bibtex"
}
},
"end": "$\\n?",
"name": "comment.line.percentage.bibtex"
}
]
}
]
},
"url_cmd": {
"captures": {
"1": {
"name": "support.function.url.bibtex"
},
"2": {
"name": "punctuation.definition.function.bibtex"
},
"3": {
"name": "punctuation.definition.arguments.begin.bibtex"
},
"4": {
"name": "markup.underline.link.bibtex"
},
"5": {
"name": "punctuation.definition.arguments.end.bibtex"
}
},
"match": "(?:\\s*)((\\\\)(?:url|href))(\\{)([^}]*)(\\})",
"name": "meta.function.link.url.bibtex"
},
"url_field": {
"begin": "(url)\\s*(\\=)",
"beginCaptures": {
"1": {
"name": "support.function.key.bibtex"
},
"2": {
"name": "punctuation.separator.key-value.bibtex"
}
},
"end": "(?=[,}])",
"name": "meta.key-assignment.url.bibtex",
"patterns": [
{
"include": "#string_url"
}
]
}
}
}

236
node_modules/shiki/languages/bicep.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,236 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "bicep",
"scopeName": "source.bicep",
"fileTypes": [".bicep"],
"patterns": [
{
"include": "#expression"
},
{
"include": "#comments"
}
],
"repository": {
"array-literal": {
"name": "meta.array-literal.bicep",
"begin": "\\[(?!(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\bfor\\b)",
"end": "]",
"patterns": [
{
"include": "#expression"
},
{
"include": "#comments"
}
]
},
"block-comment": {
"name": "comment.block.bicep",
"begin": "/\\*",
"end": "\\*/"
},
"comments": {
"patterns": [
{
"include": "#line-comment"
},
{
"include": "#block-comment"
}
]
},
"decorator": {
"name": "meta.decorator.bicep",
"begin": "@(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*(?=\\b[_$[:alpha:]][_$[:alnum:]]*\\b)",
"end": "",
"patterns": [
{
"include": "#expression"
},
{
"include": "#comments"
}
]
},
"directive": {
"name": "meta.directive.bicep",
"begin": "#\\b[_a-zA-Z-0-9]+\\b",
"end": "$",
"patterns": [
{
"include": "#directive-variable"
},
{
"include": "#comments"
}
]
},
"directive-variable": {
"name": "keyword.control.declaration.bicep",
"match": "\\b[_a-zA-Z-0-9]+\\b"
},
"escape-character": {
"name": "constant.character.escape.bicep",
"match": "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)"
},
"expression": {
"patterns": [
{
"include": "#string-literal"
},
{
"include": "#string-verbatim"
},
{
"include": "#numeric-literal"
},
{
"include": "#named-literal"
},
{
"include": "#object-literal"
},
{
"include": "#array-literal"
},
{
"include": "#keyword"
},
{
"include": "#identifier"
},
{
"include": "#function-call"
},
{
"include": "#decorator"
},
{
"include": "#lambda-start"
},
{
"include": "#directive"
}
]
},
"function-call": {
"name": "meta.function-call.bicep",
"begin": "(\\b[_$[:alpha:]][_$[:alnum:]]*\\b)(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\(",
"beginCaptures": {
"1": {
"name": "entity.name.function.bicep"
}
},
"end": "\\)",
"patterns": [
{
"include": "#expression"
},
{
"include": "#comments"
}
]
},
"identifier": {
"name": "variable.other.readwrite.bicep",
"match": "\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?!(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\()"
},
"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)\\b"
},
"lambda-start": {
"name": "meta.lambda-start.bicep",
"begin": "(\\((?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*(,(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*)*\\)|\\((?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\)|(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*)(?=(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*=>)",
"beginCaptures": {
"1": {
"name": "meta.undefined.bicep",
"patterns": [
{
"include": "#identifier"
},
{
"include": "#comments"
}
]
}
},
"end": "(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*=>"
},
"line-comment": {
"name": "comment.line.double-slash.bicep",
"match": "//.*(?=$)"
},
"named-literal": {
"name": "constant.language.bicep",
"match": "\\b(true|false|null)\\b"
},
"numeric-literal": {
"name": "constant.numeric.bicep",
"match": "[0-9]+"
},
"object-literal": {
"name": "meta.object-literal.bicep",
"begin": "{",
"end": "}",
"patterns": [
{
"include": "#object-property-key"
},
{
"include": "#expression"
},
{
"include": "#comments"
}
]
},
"object-property-key": {
"name": "variable.other.property.bicep",
"match": "\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?=(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*:)"
},
"string-literal": {
"name": "string.quoted.single.bicep",
"begin": "'(?!'')",
"end": "'",
"patterns": [
{
"include": "#escape-character"
},
{
"include": "#string-literal-subst"
}
]
},
"string-literal-subst": {
"name": "meta.string-literal-subst.bicep",
"begin": "(?<!\\\\)(\\${)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.template-expression.begin.bicep"
}
},
"end": "(})",
"endCaptures": {
"1": {
"name": "punctuation.definition.template-expression.end.bicep"
}
},
"patterns": [
{
"include": "#expression"
},
{
"include": "#comments"
}
]
},
"string-verbatim": {
"name": "string.quoted.multi.bicep",
"begin": "'''",
"end": "'''",
"patterns": []
}
}
}

3867
node_modules/shiki/languages/blade.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

3555
node_modules/shiki/languages/c.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

738
node_modules/shiki/languages/cadence.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,738 @@
{
"scopeName": "source.cadence",
"patterns": [
{
"include": "#comments"
},
{
"include": "#expressions"
},
{
"include": "#declarations"
},
{
"include": "#keywords"
},
{
"include": "#code-block"
},
{
"include": "#composite"
},
{
"include": "#event"
}
],
"repository": {
"comments": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.cadence"
}
},
"match": "\\A^(#!).*$\\n?",
"name": "comment.line.number-sign.cadence"
},
{
"begin": "/\\*\\*(?!/)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.cadence"
}
},
"end": "\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.cadence"
}
},
"name": "comment.block.documentation.cadence",
"patterns": [
{
"include": "#nested"
}
]
},
{
"begin": "/\\*:",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.cadence"
}
},
"end": "\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.cadence"
}
},
"name": "comment.block.documentation.playground.cadence",
"patterns": [
{
"include": "#nested"
}
]
},
{
"begin": "/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.cadence"
}
},
"end": "\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.cadence"
}
},
"name": "comment.block.cadence",
"patterns": [
{
"include": "#nested"
}
]
},
{
"match": "\\*/",
"name": "invalid.illegal.unexpected-end-of-block-comment.cadence"
},
{
"begin": "(^[ \\t]+)?(?=//)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.cadence"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "///",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.cadence"
}
},
"end": "^",
"name": "comment.line.triple-slash.documentation.cadence"
},
{
"begin": "//:",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.cadence"
}
},
"end": "^",
"name": "comment.line.double-slash.documentation.cadence"
},
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.cadence"
}
},
"end": "^",
"name": "comment.line.double-slash.cadence"
}
]
}
],
"repository": {
"nested": {
"begin": "/\\*",
"end": "\\*/",
"patterns": [
{
"include": "#nested"
}
]
}
}
},
"literals": {
"patterns": [
{
"include": "#boolean"
},
{
"include": "#numeric"
},
{
"include": "#string"
},
{
"match": "\\bnil\\b",
"name": "constant.language.nil.cadence"
}
],
"repository": {
"boolean": {
"match": "\\b(true|false)\\b",
"name": "constant.language.boolean.cadence"
},
"numeric": {
"patterns": [
{
"include": "#binary"
},
{
"include": "#octal"
},
{
"include": "#decimal"
},
{
"include": "#hexadecimal"
}
],
"repository": {
"binary": {
"comment": "",
"match": "(\\B\\-|\\b)0b[01]([_01]*[01])?\\b",
"name": "constant.numeric.integer.binary.cadence"
},
"octal": {
"comment": "",
"match": "(\\B\\-|\\b)0o[0-7]([_0-7]*[0-7])?\\b",
"name": "constant.numeric.integer.octal.cadence"
},
"decimal": {
"comment": "",
"match": "(\\B\\-|\\b)[0-9]([_0-9]*[0-9])?\\b",
"name": "constant.numeric.integer.decimal.cadence"
},
"hexadecimal": {
"comment": "",
"match": "(\\B\\-|\\b)0x[0-9A-Fa-f]([_0-9A-Fa-f]*[0-9A-Fa-f])?\\b",
"name": "constant.numeric.integer.hexadecimal.cadence"
}
}
},
"string": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.cadence"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.cadence"
}
},
"name": "string.quoted.double.single-line.cadence",
"patterns": [
{
"match": "\\r|\\n",
"name": "invalid.illegal.returns-not-allowed.cadence"
},
{
"include": "#string-guts"
}
]
}
],
"repository": {
"string-guts": {
"patterns": [
{
"match": "\\\\[0\\\\tnr\"']",
"name": "constant.character.escape.cadence"
},
{
"match": "\\\\u\\{[0-9a-fA-F]{1,8}\\}",
"name": "constant.character.escape.unicode.cadence"
}
]
}
}
}
}
},
"operators": {
"patterns": [
{
"match": "\\-",
"name": "keyword.operator.arithmetic.unary.cadence"
},
{
"match": "!",
"name": "keyword.operator.logical.not.cadence"
},
{
"match": "=",
"name": "keyword.operator.assignment.cadence"
},
{
"match": "<-",
"name": "keyword.operator.move.cadence"
},
{
"match": "<-!",
"name": "keyword.operator.force-move.cadence"
},
{
"match": "\\+|\\-|\\*|/",
"name": "keyword.operator.arithmetic.cadence"
},
{
"match": "%",
"name": "keyword.operator.arithmetic.remainder.cadence"
},
{
"match": "==|!=|>|<|>=|<=",
"name": "keyword.operator.comparison.cadence"
},
{
"match": "\\?\\?",
"name": "keyword.operator.coalescing.cadence"
},
{
"match": "&&|\\|\\|",
"name": "keyword.operator.logical.cadence"
},
{
"match": "[?!]",
"name": "keyword.operator.type.optional.cadence"
}
]
},
"keywords": {
"patterns": [
{
"match": "(?<!\\.)\\b(?:if|else|switch|case|default)\\b",
"name": "keyword.control.branch.cadence"
},
{
"match": "(?<!\\.)\\b(?:return|continue|break)\\b",
"name": "keyword.control.transfer.cadence"
},
{
"match": "(?<!\\.)\\b(?:while|for|in)\\b",
"name": "keyword.control.loop.cadence"
},
{
"match": "(?<!\\.)\\b(?:pre|post|prepare|execute|create|destroy|emit)\\b",
"name": "keyword.other.cadence"
},
{
"match": "(?<!\\.)\\b(?:private|pub(?:\\(set\\))?|access\\((?:self|contract|account|all)\\))\\b",
"name": "keyword.other.declaration-specifier.accessibility.cadence"
},
{
"match": "\\b(?:init|destroy)\\b",
"name": "storage.type.function.cadence"
},
{
"match": "(?<!\\.)\\b(?:import|from)\\b",
"name": "keyword.control.import.cadence"
}
]
},
"code-block": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.section.scope.begin.cadence"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.section.scope.end.cadence"
}
},
"patterns": [
{
"include": "$self"
}
]
},
"function": {
"begin": "\\b(fun)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*",
"beginCaptures": {
"1": {
"name": "storage.type.function.cadence"
},
"2": {
"name": "entity.name.function.cadence"
}
},
"end": "(?<=\\})|$",
"name": "meta.definition.function.cadence",
"patterns": [
{
"include": "#comments"
},
{
"include": "#parameter-clause"
},
{
"include": "#function-result"
},
{
"begin": "(\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.function.begin.cadence"
}
},
"end": "(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.function.end.cadence"
}
},
"name": "meta.definition.function.body.cadence",
"patterns": [
{
"include": "$self"
}
]
}
]
},
"initializer": {
"begin": "(?<!\\.)\\b(init)\\s*(?=\\(|<)",
"beginCaptures": {
"1": {
"name": "storage.type.function.cadence"
}
},
"end": "(?<=\\})|$",
"name": "meta.definition.function.initializer.cadence",
"patterns": [
{
"include": "#comments"
},
{
"include": "#parameter-clause"
},
{
"begin": "(\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.function.begin.cadence"
}
},
"end": "(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.function.end.cadence"
}
},
"name": "meta.definition.function.body.cadence",
"patterns": [
{
"include": "$self"
}
]
}
]
},
"function-result": {
"begin": "(?<![/=\\-+!*%<>&|\\^~.])(:)(?![/=\\-+!*%<>&|\\^~.])\\s*",
"beginCaptures": {
"1": {
"name": "keyword.operator.function-result.cadence"
}
},
"end": "(?!\\G)(?=\\{|;)|$",
"name": "meta.function-result.cadence",
"patterns": [
{
"include": "#type"
}
]
},
"expressions": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#function-call-expression"
},
{
"include": "#literals"
},
{
"include": "#operators"
},
{
"include": "#language-variables"
}
]
},
"language-variables": {
"patterns": [
{
"match": "\\b(self)\\b",
"name": "variable.language.cadence"
}
]
},
"function-call-expression": {
"patterns": [
{
"begin": "(?!(?:set|init))([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*(\\()",
"beginCaptures": {
"1": {
"name": "support.function.any-method.cadence"
},
"4": {
"name": "punctuation.definition.arguments.begin.cadence"
}
},
"comment": "foo(args) -- a call whose callee is a highlightable name",
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.definition.arguments.end.cadence"
}
},
"name": "meta.function-call.cadence",
"patterns": [
{
"include": "#expression-element-list"
}
]
}
]
},
"expression-element-list": {
"patterns": [
{
"include": "#comments"
},
{
"begin": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*(:)",
"beginCaptures": {
"1": {
"name": "support.function.any-method.cadence"
},
"2": {
"name": "punctuation.separator.argument-label.cadence"
}
},
"comment": "an element with a label",
"end": "(?=[,)\\]])",
"patterns": [
{
"include": "#expressions"
}
]
},
{
"begin": "(?![,)\\]])(?=\\S)",
"comment": "an element without a label (i.e. anything else)",
"end": "(?=[,)\\]])",
"patterns": [
{
"include": "#expressions"
}
]
}
]
},
"declarations": {
"patterns": [
{
"include": "#var-let-declaration"
},
{
"include": "#function"
},
{
"include": "#initializer"
}
]
},
"var-let-declaration": {
"begin": "\\b(var|let)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
"beginCaptures": {
"1": {
"name": "storage.type.$1.cadence"
},
"2": {
"name": "entity.name.type.$1.cadence"
}
},
"end": "=|<-|<-!|$",
"patterns": [
{
"include": "#type"
}
]
},
"type": {
"patterns": [
{
"include": "#comments"
},
{
"match": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
"name": "storage.type.cadence"
}
]
},
"parameter-clause": {
"begin": "(\\()",
"beginCaptures": {
"1": {
"name": "punctuation.definition.parameters.begin.cadence"
}
},
"end": "(\\))",
"endCaptures": {
"1": {
"name": "punctuation.definition.parameters.end.cadence"
}
},
"name": "meta.parameter-clause.cadence",
"patterns": [
{
"include": "#parameter-list"
}
]
},
"parameter-list": {
"patterns": [
{
"match": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)(?=\\s*:)",
"captures": {
"1": {
"name": "entity.name.function.cadence"
},
"2": {
"name": "variable.parameter.function.cadence"
}
},
"comment": "External parameter labels are considered part of the function name"
},
{
"match": "(([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*))(?=\\s*:)",
"captures": {
"1": {
"name": "variable.parameter.function.cadence"
},
"2": {
"name": "entity.name.function.cadence"
}
},
"comment": "If no external label is given, the name is both the external label and the internal variable name"
},
{
"begin": ":\\s*(?!\\s)",
"end": "(?=[,)])",
"patterns": [
{
"include": "#type"
},
{
"match": ":",
"name": "invalid.illegal.extra-colon-in-parameter-list.cadence"
}
]
}
]
},
"event": {
"begin": "\\b(event)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*",
"beginCaptures": {
"1": {
"name": "storage.type.event.cadence"
},
"2": {
"name": "entity.name.type.event.cadence"
}
},
"end": "(?<=\\))|$",
"name": "meta.definition.type.event.cadence",
"patterns": [
{
"include": "#comments"
},
{
"include": "#parameter-clause"
}
]
},
"composite": {
"begin": "\\b((?:(?:struct|resource|contract)(?:\\s+interface)?)|transaction|enum)\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
"beginCaptures": {
"1": {
"name": "storage.type.$1.cadence"
},
"2": {
"name": "entity.name.type.$1.cadence"
}
},
"end": "(?<=\\})",
"name": "meta.definition.type.composite.cadence",
"patterns": [
{
"include": "#comments"
},
{
"include": "#conformance-clause"
},
{
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.type.begin.cadence"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.type.end.cadence"
}
},
"name": "meta.definition.type.body.cadence",
"patterns": [
{
"include": "$self"
}
]
}
]
},
"conformance-clause": {
"begin": "(:)(?=\\s*\\{)|(:)\\s*",
"beginCaptures": {
"1": {
"name": "invalid.illegal.empty-conformance-clause.cadence"
},
"2": {
"name": "punctuation.separator.conformance-clause.cadence"
}
},
"end": "(?!\\G)$|(?=[={}])",
"name": "meta.conformance-clause.cadence",
"patterns": [
{
"begin": "\\G",
"end": "(?!\\G)$|(?=[={}])",
"patterns": [
{
"include": "#comments"
},
{
"include": "#type"
}
]
}
]
}
},
"name": "cadence"
}

875
node_modules/shiki/languages/clarity.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,875 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "clarity",
"scopeName": "source.clar",
"uuid": "f9e9871d-2ea6-4be0-afd2-fc382d704716",
"patterns": [
{
"include": "#expression"
},
{
"include": "#define-constant"
},
{
"include": "#define-data-var"
},
{
"include": "#define-map"
},
{
"include": "#define-function"
},
{
"include": "#define-fungible-token"
},
{
"include": "#define-non-fungible-token"
},
{
"include": "#define-trait"
},
{
"include": "#use-trait"
}
],
"repository": {
"comment": {
"name": "comment.line.semicolon.clarity",
"match": "(?x) (?<=^|[()\\[\\]{}\",'`;\\s]) (;) .* $"
},
"expression": {
"patterns": [
{
"include": "#comment"
},
{
"include": "#keyword"
},
{
"include": "#literal"
},
{
"include": "#let-func"
},
{
"include": "#built-in-func"
},
{
"include": "#get-set-func"
}
]
},
"keyword": {
"name": "constant.language.clarity",
"match": "\\b(?:block-height|burn-block-height|contract-caller|is-in-regtest|stx-liquid-supply|tx-sender)\\b"
},
"define-function": {
"begin": "(?x) (\\() \\s* (define-(?:public|private|read-only)) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-function.start.clarity"
},
"2": {
"name": "keyword.declaration.define-function.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-function.end.clarity"
}
},
"name": "meta.define-function",
"patterns": [
{
"include": "#expression"
},
{
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.function-signature.start.clarity"
},
"2": {
"name": "entity.name.function.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.function-signature.end.clarity"
}
},
"name": "meta.define-function-signature",
"patterns": [
{
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.function-argument.start.clarity"
},
"2": {
"name": "variable.parameter.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.function-argument.end.clarity"
}
},
"name": "meta.function-argument",
"patterns": [
{
"include": "#data-type"
}
]
}
]
}
]
},
"define-fungible-token": {
"match": "(?x) (\\() \\s* (define-fungible-token) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) (?:\\s+(u\\d+))?",
"captures": {
"1": {
"name": "punctuation.define-fungible-token.start.clarity"
},
"2": {
"name": "keyword.declaration.define-fungible-token.clarity"
},
"3": {
"name": "entity.name.fungible-token-name.clarity variable.other.clarity"
},
"4": {
"name": "constant.numeric.fungible-token-total-supply.clarity"
},
"5": {
"name": "punctuation.define-fungible-token.end.clarity"
}
}
},
"define-non-fungible-token": {
"begin": "(?x) (\\() \\s* (define-non-fungible-token) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-non-fungible-token.start.clarity"
},
"2": {
"name": "keyword.declaration.define-non-fungible-token.clarity"
},
"3": {
"name": "entity.name.non-fungible-token-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-non-fungible-token.end.clarity"
}
},
"name": "meta.define-non-fungible-token",
"patterns": [
{
"include": "#data-type"
}
]
},
"define-trait": {
"begin": "(?x) (\\() \\s* (define-trait) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-trait.start.clarity"
},
"2": {
"name": "keyword.declaration.define-trait.clarity"
},
"3": {
"name": "entity.name.trait-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-trait.end.clarity"
}
},
"name": "meta.define-trait",
"patterns": [
{
"begin": "(?x) (\\() \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-trait-body.start.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-trait-body.end.clarity"
}
},
"name": "meta.define-trait-body",
"patterns": [
{
"include": "#expression"
},
{
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]+\\??) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.trait-function.start.clarity"
},
"2": {
"name": "entity.name.trait-function-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.trait-function.end.clarity"
}
},
"name": "meta.trait-function",
"patterns": [
{
"include": "#data-type"
},
{
"begin": "(?x) (\\() \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.trait-function-args.start.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.trait-function-args.end.clarity"
}
},
"name": "meta.trait-function-args",
"patterns": [
{
"include": "#data-type"
}
]
}
]
}
]
}
]
},
"use-trait": {
"begin": "(?x) (\\() \\s* (use-trait) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.use-trait.start.clarity"
},
"2": {
"name": "keyword.declaration.use-trait.clarity"
},
"3": {
"name": "entity.name.trait-alias.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.use-trait.end.clarity"
}
},
"name": "meta.use-trait",
"patterns": [
{
"include": "#literal"
}
]
},
"define-constant": {
"begin": "(?x) (\\() \\s* (define-constant) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-constant.start.clarity"
},
"2": {
"name": "keyword.declaration.define-constant.clarity"
},
"3": {
"name": "entity.name.constant-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-constant.end.clarity"
}
},
"name": "meta.define-constant",
"patterns": [
{
"include": "#expression"
}
]
},
"define-data-var": {
"begin": "(?x) (\\() \\s* (define-data-var) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-data-var.start.clarity"
},
"2": {
"name": "keyword.declaration.define-data-var.clarity"
},
"3": {
"name": "entity.name.data-var-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-data-var.end.clarity"
}
},
"name": "meta.define-data-var",
"patterns": [
{
"include": "#data-type"
},
{
"include": "#expression"
}
]
},
"define-map": {
"begin": "(?x) (\\() \\s* (define-map) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.define-map.start.clarity"
},
"2": {
"name": "keyword.declaration.define-map.clarity"
},
"3": {
"name": "entity.name.map-name.clarity variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.define-map.end.clarity"
}
},
"name": "meta.define-map",
"patterns": [
{
"include": "#data-type"
},
{
"include": "#expression"
}
]
},
"literal": {
"patterns": [
{
"include": "#number-literal"
},
{
"include": "#bool-literal"
},
{
"include": "#string-literal"
},
{
"include": "#tuple-literal"
},
{
"include": "#principal-literal"
},
{
"include": "#list-literal"
},
{
"include": "#optional-literal"
},
{
"include": "#response-literal"
}
],
"repository": {
"number-literal": {
"patterns": [
{
"comment": "unsigned integers",
"name": "constant.numeric.uint.clarity",
"match": "\\bu\\d+\\b"
},
{
"comment": "signed integers",
"name": "constant.numeric.int.clarity",
"match": "\\b\\d+\\b"
},
{
"comment": "hexadecimals",
"name": "constant.numeric.hex.clarity",
"match": "\\b0x[0-9a-f]*\\b"
}
]
},
"bool-literal": {
"name": "constant.language.bool.clarity",
"match": "\\b(true|false)\\b"
},
"string-literal": {
"patterns": [
{
"name": "string.quoted.double.clarity",
"begin": "(u?)(\")",
"beginCaptures": {
"1": {
"name": "string.quoted.utf8.clarity"
},
"2": {
"name": "punctuation.definition.string.begin.clarity"
}
},
"end": "\"",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.clarity"
}
},
"patterns": [
{
"name": "constant.character.escape.quote",
"match": "\\\\."
}
]
}
]
},
"tuple-literal": {
"begin": "(\\{)",
"end": "(\\})",
"beginCaptures": {
"1": {
"name": "punctuation.tuple.start.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.tuple.end.clarity"
}
},
"name": "meta.tuple",
"patterns": [
{
"name": "entity.name.tag.tuple-key.clarity",
"match": "([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)(?=:)"
},
{
"include": "#expression"
},
{
"include": "#user-func"
}
]
},
"principal-literal": {
"name": "constant.other.principal.clarity",
"match": "(?x) \\'[0-9A-Z]{28,41}(:?\\.[a-zA-Z][a-zA-Z0-9\\-]+){0,2} | (\\.[a-zA-Z][a-zA-Z0-9\\-]*){1,2} (?=[\\s(){},]|$)"
},
"list-literal": {
"begin": "(?x) (\\() \\s* (list) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.list.start.clarity"
},
"2": {
"name": "entity.name.type.list.clarity"
}
},
"endCaptures": {
"1": {
"names": "punctuation.list.end.clarity"
}
},
"name": "meta.list",
"patterns": [
{
"include": "#expression"
},
{
"include": "#user-func"
}
]
},
"optional-literal": {
"patterns": [
{
"match": "\\b(none)\\b",
"name": "constant.language.none.clarity"
},
{
"begin": "(?x) (\\() \\s* (some) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.some.start.clarity"
},
"2": {
"name": "constant.language.some.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.some.end.clarity"
}
},
"name": "meta.some",
"patterns": [
{
"include": "#expression"
}
]
}
]
},
"response-literal": {
"begin": "(?x) (\\() \\s* (ok|err) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.response.start.clarity"
},
"2": {
"name": "constant.language.ok-err.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.response.end.clarity"
}
},
"name": "meta.response",
"patterns": [
{
"include": "#expression"
},
{
"include": "#user-func"
}
]
}
}
},
"data-type": {
"patterns": [
{
"include": "#comment"
},
{
"comment": "numerics",
"name": "entity.name.type.numeric.clarity",
"match": "\\b(uint|int)\\b"
},
{
"comment": "principal",
"name": "entity.name.type.principal.clarity",
"match": "\\b(principal)\\b"
},
{
"comment": "bool",
"name": "entity.name.type.bool.clarity",
"match": "\\b(bool)\\b"
},
{
"match": "(?x) (\\() \\s* (?:(string-ascii|string-utf8)\\s+(\\d+)) \\s* (\\))",
"captures": {
"1": {
"name": "punctuation.string-def.start.clarity"
},
"2": {
"name": "entity.name.type.string.clarity"
},
"3": {
"name": "constant.numeric.string-len.clarity"
},
"4": {
"name": "punctuation.string-def.end.clarity"
}
}
},
{
"match": "(?x) (\\() \\s* (buff)\\s+(\\d+)\\s* (\\))",
"captures": {
"1": {
"name": "punctuation.buff-def.start.clarity"
},
"2": {
"name": "entity.name.type.buff.clarity"
},
"3": {
"name": "constant.numeric.buf-len.clarity"
},
"4": {
"name": "punctuation.buff-def.end.clarity"
}
}
},
{
"comment": "optional",
"begin": "(?x) (\\() \\s* (optional)\\s+",
"beginCaptures": {
"1": {
"name": "punctuation.optional-def.start.clarity"
},
"2": {
"name": "storage.type.modifier"
}
},
"end": "(\\))",
"endCaptures": {
"1": {
"name": "punctuation.optional-def.end.clarity"
}
},
"name": "meta.optional-def",
"patterns": [
{
"include": "#data-type"
}
]
},
{
"comment": "response",
"begin": "(?x) (\\() \\s* (response)\\s+",
"beginCaptures": {
"1": {
"name": "punctuation.response-def.start.clarity"
},
"2": {
"name": "storage.type.modifier"
}
},
"end": "(\\))",
"endCaptures": {
"1": {
"name": "punctuation.response-def.end.clarity"
}
},
"name": "meta.response-def",
"patterns": [
{
"include": "#data-type"
}
]
},
{
"comment": "list",
"begin": "(?x) (\\() \\s* (list) \\s+ (\\d+) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.list-def.start.clarity"
},
"2": {
"name": "entity.name.type.list.clarity"
},
"3": {
"name": "constant.numeric.list-len.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.list-def.end.clarity"
}
},
"name": "meta.list-def",
"patterns": [
{
"include": "#data-type"
}
]
},
{
"begin": "(\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.tuple-def.start.clarity"
}
},
"end": "(\\})",
"endCaptures": {
"1": {
"name": "punctuation.tuple-def.end.clarity"
}
},
"name": "meta.tuple-def",
"patterns": [
{
"name": "entity.name.tag.tuple-data-type-key.clarity",
"match": "([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)(?=:)"
},
{
"include": "#data-type"
}
]
}
]
},
"built-in-func": {
"begin": "(?x) (\\() \\s* (\\-|\\+|<\\=|>\\=|<|>|\\*|/|and|append|as-contract|as-max-len\\?|asserts!|at-block|begin|concat|contract-call\\?|contract-of|default-to|element-at|filter|fold|ft-burn\\?|ft-get-balance|ft-get-supply|ft-mint\\?|ft-transfer\\?|get-block-info\\?|hash160|if|impl-trait|index-of|is-eq|is-err|is-none|is-ok|is-some|keccak256|len|log2|map|match|merge|mod|nft-burn\\?|nft-get-owner\\?|nft-mint\\?|nft-transfer\\?|not|or|pow|principal-of\\?|print|secp256k1-recover\\?|secp256k1-verify|sha256|sha512|sha512/256|sqrti|stx-burn\\?|stx-get-balance|stx-transfer\\?|to-int|to-uint|try!|unwrap-err-panic|unwrap-err!|unwrap-panic|unwrap!|xor) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.built-in-function.start.clarity"
},
"2": {
"name": "keyword.declaration.built-in-function.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.built-in-function.end.clarity"
}
},
"name": "meta.built-in-function",
"patterns": [
{
"include": "#expression"
},
{
"include": "#user-func"
}
]
},
"get-set-func": {
"name": "meta.get-set-func",
"begin": "(?x) (\\() \\s* (var-get|var-set|map-get\\?|map-set|map-insert|map-delete|get) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.get-set-func.start.clarity"
},
"2": {
"name": "keyword.control.clarity"
},
"3": {
"name": "variable.other.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.get-set-func.end.clarity"
}
},
"patterns": [
{
"include": "#expression"
}
]
},
"let-func": {
"begin": "(?x) (\\() \\s* (let) \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.let-function.start.clarity"
},
"2": {
"name": "keyword.declaration.let-function.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.let-function.end.clarity"
}
},
"name": "meta.let-function",
"patterns": [
{
"include": "#expression"
},
{
"include": "#user-func"
},
{
"begin": "(?x) (\\() \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.let-var.start.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.let-var.end.clarity"
}
},
"name": "meta.let-var",
"patterns": [
{
"begin": "(?x) (\\() ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.let-local-var.start.clarity"
},
"2": {
"name": "entity.name.let-local-var-name.clarity variable.parameter.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.let-local-var.end.clarity"
}
},
"name": "meta.let-local-var",
"patterns": [
{
"include": "#expression"
},
{
"include": "#user-func"
}
]
},
{
"include": "#expression"
}
]
}
]
},
"user-func": {
"begin": "(?x) (\\() \\s* (([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)) \\s*",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.user-function.start.clarity"
},
"2": {
"name": "entity.name.function.clarity"
}
},
"endCaptures": {
"1": {
"name": "punctuation.user-function.end.clarity"
}
},
"name": "meta.user-function",
"patterns": [
{
"include": "#expression"
},
{
"include": "$self"
}
]
}
}
}

431
node_modules/shiki/languages/clojure.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,431 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/atom/language-clojure/blob/master/grammars/clojure.cson",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/atom/language-clojure/commit/45bdb881501d0b8f8b707ca1d3fcc8b4b99fca03",
"name": "clojure",
"scopeName": "source.clojure",
"patterns": [
{
"include": "#comment"
},
{
"include": "#shebang-comment"
},
{
"include": "#quoted-sexp"
},
{
"include": "#sexp"
},
{
"include": "#keyfn"
},
{
"include": "#string"
},
{
"include": "#vector"
},
{
"include": "#set"
},
{
"include": "#map"
},
{
"include": "#regexp"
},
{
"include": "#var"
},
{
"include": "#constants"
},
{
"include": "#dynamic-variables"
},
{
"include": "#metadata"
},
{
"include": "#namespace-symbol"
},
{
"include": "#symbol"
}
],
"repository": {
"comment": {
"begin": "(?<!\\\\);",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.clojure"
}
},
"end": "$",
"name": "comment.line.semicolon.clojure"
},
"constants": {
"patterns": [
{
"match": "(nil)(?=(\\s|\\)|\\]|\\}))",
"name": "constant.language.nil.clojure"
},
{
"match": "(true|false)",
"name": "constant.language.boolean.clojure"
},
{
"match": "(##(?:Inf|-Inf|NaN))",
"name": "constant.numeric.symbol.clojure"
},
{
"match": "([-+]?\\d+/\\d+)",
"name": "constant.numeric.ratio.clojure"
},
{
"match": "([-+]?(?:(?:3[0-6])|(?:[12]\\d)|[2-9])[rR][0-9A-Za-z]+N?)",
"name": "constant.numeric.arbitrary-radix.clojure"
},
{
"match": "([-+]?0[xX][0-9a-fA-F]+N?)",
"name": "constant.numeric.hexadecimal.clojure"
},
{
"match": "([-+]?0[0-7]+N?)",
"name": "constant.numeric.octal.clojure"
},
{
"match": "([-+]?[0-9]+(?:(\\.|(?=[eEM]))[0-9]*([eE][-+]?[0-9]+)?)M?)",
"name": "constant.numeric.double.clojure"
},
{
"match": "([-+]?\\d+N?)",
"name": "constant.numeric.long.clojure"
},
{
"include": "#keyword"
}
]
},
"keyword": {
"match": "(?<=(\\s|\\(|\\[|\\{)):[\\w\\#\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}|\\,))",
"name": "constant.keyword.clojure"
},
"keyfn": {
"patterns": [
{
"match": "(?<=(\\s|\\(|\\[|\\{))(if(-[-\\p{Ll}\\?]*)?|when(-[-\\p{Ll}]*)?|for(-[-\\p{Ll}]*)?|cond|do|let(-[-\\p{Ll}\\?]*)?|binding|loop|recur|fn|throw[\\p{Ll}\\-]*|try|catch|finally|([\\p{Ll}]*case))(?=(\\s|\\)|\\]|\\}))",
"name": "storage.control.clojure"
},
{
"match": "(?<=(\\s|\\(|\\[|\\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[\\p{Ll}\\-]*))(?=(\\s|\\)|\\]|\\}))",
"name": "keyword.control.clojure"
}
]
},
"dynamic-variables": {
"match": "\\*[\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\d]+\\*",
"name": "meta.symbol.dynamic.clojure"
},
"map": {
"begin": "(\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.map.begin.clojure"
}
},
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.map.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.map.end.clojure"
}
},
"name": "meta.map.clojure",
"patterns": [
{
"include": "$self"
}
]
},
"metadata": {
"patterns": [
{
"begin": "(\\^\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.metadata.map.begin.clojure"
}
},
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.metadata.map.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.metadata.map.end.clojure"
}
},
"name": "meta.metadata.map.clojure",
"patterns": [
{
"include": "$self"
}
]
},
{
"begin": "(\\^)",
"end": "(\\s)",
"name": "meta.metadata.simple.clojure",
"patterns": [
{
"include": "#keyword"
},
{
"include": "$self"
}
]
}
]
},
"quoted-sexp": {
"begin": "(['``]\\()",
"beginCaptures": {
"1": {
"name": "punctuation.section.expression.begin.clojure"
}
},
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
"endCaptures": {
"1": {
"name": "punctuation.section.expression.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.expression.end.trailing.clojure"
},
"3": {
"name": "punctuation.section.expression.end.clojure"
}
},
"name": "meta.quoted-expression.clojure",
"patterns": [
{
"include": "$self"
}
]
},
"regexp": {
"begin": "#\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.regexp.begin.clojure"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.regexp.end.clojure"
}
},
"name": "string.regexp.clojure",
"patterns": [
{
"include": "#regexp_escaped_char"
}
]
},
"regexp_escaped_char": {
"match": "\\\\.",
"name": "constant.character.escape.clojure"
},
"set": {
"begin": "(\\#\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.set.begin.clojure"
}
},
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.set.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.set.end.clojure"
}
},
"name": "meta.set.clojure",
"patterns": [
{
"include": "$self"
}
]
},
"sexp": {
"begin": "(\\()",
"beginCaptures": {
"1": {
"name": "punctuation.section.expression.begin.clojure"
}
},
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
"endCaptures": {
"1": {
"name": "punctuation.section.expression.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.expression.end.trailing.clojure"
},
"3": {
"name": "punctuation.section.expression.end.clojure"
}
},
"name": "meta.expression.clojure",
"patterns": [
{
"begin": "(?<=\\()(ns|declare|def[\\w\\d._:+=><!?*-]*|[\\w._:+=><!?*-][\\w\\d._:+=><!?*-]*/def[\\w\\d._:+=><!?*-]*)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.control.clojure"
}
},
"end": "(?=\\))",
"name": "meta.definition.global.clojure",
"patterns": [
{
"include": "#metadata"
},
{
"include": "#dynamic-variables"
},
{
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)",
"name": "entity.global.clojure"
},
{
"include": "$self"
}
]
},
{
"include": "#keyfn"
},
{
"include": "#constants"
},
{
"include": "#vector"
},
{
"include": "#map"
},
{
"include": "#set"
},
{
"include": "#sexp"
},
{
"match": "(?<=\\()(.+?)(?=\\s|\\))",
"captures": {
"1": {
"name": "entity.name.function.clojure"
}
},
"patterns": [
{
"include": "$self"
}
]
},
{
"include": "$self"
}
]
},
"shebang-comment": {
"begin": "^(#!)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.shebang.clojure"
}
},
"end": "$",
"name": "comment.line.shebang.clojure"
},
"string": {
"begin": "(?<!\\\\)(\")",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.clojure"
}
},
"end": "(\")",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.clojure"
}
},
"name": "string.quoted.double.clojure",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.clojure"
}
]
},
"namespace-symbol": {
"patterns": [
{
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)/",
"captures": {
"1": {
"name": "meta.symbol.namespace.clojure"
}
}
}
]
},
"symbol": {
"patterns": [
{
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)",
"name": "meta.symbol.clojure"
}
]
},
"var": {
"match": "(?<=(\\s|\\(|\\[|\\{)\\#)'[\\w\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))",
"name": "meta.var.clojure"
},
"vector": {
"begin": "(\\[)",
"beginCaptures": {
"1": {
"name": "punctuation.section.vector.begin.clojure"
}
},
"end": "(\\](?=[\\}\\]\\)\\s]*(?:;|$)))|(\\])",
"endCaptures": {
"1": {
"name": "punctuation.section.vector.end.trailing.clojure"
},
"2": {
"name": "punctuation.section.vector.end.clojure"
}
},
"name": "meta.vector.clojure",
"patterns": [
{
"include": "$self"
}
]
}
}
}

139
node_modules/shiki/languages/cmake.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,139 @@
{
"fileTypes": ["cmake", "CMakeLists.txt"],
"name": "cmake",
"patterns": [
{
"comment": "Variables That Describe the System",
"match": "\\b(?i:APPLE|BORLAND|(CMAKE_)?(CL_64|COMPILER_2005|HOST_APPLE|HOST_SYSTEM|HOST_SYSTEM_NAME|HOST_SYSTEM_PROCESSOR|HOST_SYSTEM_VERSION|HOST_UNIX|HOST_WIN32|LIBRARY_ARCHITECTURE|LIBRARY_ARCHITECTURE_REGEX|OBJECT_PATH_MAX|SYSTEM|SYSTEM_NAME|SYSTEM_PROCESSOR|SYSTEM_VERSION)|CYGWIN|MSVC|MSVC80|MSVC_IDE|MSVC_VERSION|UNIX|WIN32|XCODE_VERSION|MSVC60|MSVC70|MSVC90|MSVC71)\\b",
"name": "constant.source.cmake"
},
{
"comment": "cmakeOperators",
"match": "\\b(?i:ABSOLUTE|AND|BOOL|CACHE|COMMAND|COMMENT|DEFINED|DOC|EQUAL|EXISTS|EXT|FALSE|GREATER|GREATER_EQUAL|INTERNAL|IN_LIST|IS_ABSOLUTE|IS_DIRECTORY|IS_NEWER_THAN|IS_SYMLINK|LESS|LESS_EQUAL|MATCHES|NAME|NAMES|NAME_WE|NOT|OFF|ON|OR|PATH|PATHS|POLICY|PROGRAM|STREQUAL|STRGREATER|STRGREATER_EQUAL|STRING|STRLESS|STRLESS_EQUAL|TARGET|TEST|TRUE|VERSION_EQUAL|VERSION_GREATER|VERSION_GREATER_EQUAL|VERSION_LESS)\\b",
"name": "keyword.cmake"
},
{
"comment": "Commands",
"match": "^\\s*\\b(?i:add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_libraries|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)\\b",
"name": "keyword.cmake"
},
{
"comment": "Variables That Change Behavior",
"match": "\\b(?i:BUILD_SHARED_LIBS|(CMAKE_)?(ABSOLUTE_DESTINATION_FILES|AUTOMOC_RELAXED_MODE|BACKWARDS_COMPATIBILITY|BUILD_TYPE|COLOR_MAKEFILE|CONFIGURATION_TYPES|DEBUG_TARGET_PROPERTIES|DISABLE_FIND_PACKAGE_\\w+|FIND_LIBRARY_PREFIXES|FIND_LIBRARY_SUFFIXES|IGNORE_PATH|INCLUDE_PATH|INSTALL_DEFAULT_COMPONENT_NAME|INSTALL_PREFIX|LIBRARY_PATH|MFC_FLAG|MODULE_PATH|NOT_USING_CONFIG_FLAGS|POLICY_DEFAULT_CMP\\w+|PREFIX_PATH|PROGRAM_PATH|SKIP_INSTALL_ALL_DEPENDENCY|SYSTEM_IGNORE_PATH|SYSTEM_INCLUDE_PATH|SYSTEM_LIBRARY_PATH|SYSTEM_PREFIX_PATH|SYSTEM_PROGRAM_PATH|USER_MAKE_RULES_OVERRIDE|WARN_ON_ABSOLUTE_INSTALL_DESTINATION))\\b",
"name": "variable.source.cmake"
},
{
"match": "\\$\\{\\w+\\}",
"name": "storage.source.cmake"
},
{
"match": "\\$ENV\\{\\w+\\}",
"name": "storage.source.cmake"
},
{
"comment": "Variables that Control the Build",
"match": "\\b(?i:(CMAKE_)?(\\w+_POSTFIX|ARCHIVE_OUTPUT_DIRECTORY|AUTOMOC|AUTOMOC_MOC_OPTIONS|BUILD_WITH_INSTALL_RPATH|DEBUG_POSTFIX|EXE_LINKER_FLAGS|EXE_LINKER_FLAGS_\\w+|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GNUtoMS|INCLUDE_CURRENT_DIR|INCLUDE_CURRENT_DIR_IN_INTERFACE|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_PATH_FLAG|LINK_DEF_FILE_FLAG|LINK_DEPENDS_NO_SHARED|LINK_INTERFACE_LIBRARIES|LINK_LIBRARY_FILE_FLAG|LINK_LIBRARY_FLAG|MACOSX_BUNDLE|NO_BUILTIN_CHRPATH|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|RUNTIME_OUTPUT_DIRECTORY|SKIP_BUILD_RPATH|SKIP_INSTALL_RPATH|TRY_COMPILE_CONFIGURATION|USE_RELATIVE_PATHS|WIN32_EXECUTABLE)|EXECUTABLE_OUTPUT_PATH|LIBRARY_OUTPUT_PATH)\\b",
"name": "variable.source.cmake"
},
{
"comment": "Variables that Provide Information",
"match": "\\b(?i:CMAKE_(AR|ARGC|ARGV0|BINARY_DIR|BUILD_TOOL|CACHEFILE_DIR|CACHE_MAJOR_VERSION|CACHE_MINOR_VERSION|CACHE_PATCH_VERSION|CFG_INTDIR|COMMAND|CROSSCOMPILING|CTEST_COMMAND|CURRENT_BINARY_DIR|CURRENT_LIST_DIR|CURRENT_LIST_FILE|CURRENT_LIST_LINE|CURRENT_SOURCE_DIR|DL_LIBS|EDIT_COMMAND|EXECUTABLE_SUFFIX|EXTRA_GENERATOR|EXTRA_SHARED_LIBRARY_SUFFIXES|GENERATOR|HOME_DIRECTORY|IMPORT_LIBRARY_PREFIX|IMPORT_LIBRARY_SUFFIX|LINK_LIBRARY_SUFFIX|MAJOR_VERSION|MAKE_PROGRAM|MINOR_VERSION|PARENT_LIST_FILE|PATCH_VERSION|PROJECT_NAME|RANLIB|ROOT|SCRIPT_MODE_FILE|SHARED_LIBRARY_PREFIX|SHARED_LIBRARY_SUFFIX|SHARED_MODULE_PREFIX|SHARED_MODULE_SUFFIX|SIZEOF_VOID_P|SKIP_RPATH|SOURCE_DIR|STANDARD_LIBRARIES|STATIC_LIBRARY_PREFIX|STATIC_LIBRARY_SUFFIX|TWEAK_VERSION|USING_VC_FREE_TOOLS|VERBOSE_MAKEFILE|VERSION)|PROJECT_BINARY_DIR|PROJECT_NAME|PROJECT_SOURCE_DIR|\\w+_BINARY_DIR|\\w+__SOURCE_DIR)\\b",
"name": "variable.source.cmake"
},
{
"comment": "BracketArgs",
"begin": "#\\[(=*)\\[",
"end": "\\]\\1\\]",
"name": "comment.source.cmake",
"patterns": [
{
"match": "\\\\(.|$)",
"name": "constant.character.escape"
}
]
},
{
"comment": "BracketArgs",
"begin": "\\[(=*)\\[",
"end": "\\]\\1\\]",
"name": "argument.source.cmake",
"patterns": [
{
"match": "\\\\(.|$)",
"name": "constant.character.escape"
}
]
},
{
"match": "#+.*$",
"name": "comment.source.cmake"
},
{
"comment": "Properties on Cache Entries",
"match": "\\b(?i:ADVANCED|HELPSTRING|MODIFIED|STRINGS|TYPE|VALUE)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Properties on Source Files",
"match": "\\b(?i:ABSTRACT|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_<CONFIG>|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Properties on Tests",
"match": "\\b(?i:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Properties on Directories",
"match": "\\b(?i:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_\\w+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_\\w+|VS_GLOBAL_SECTION_PRE_\\w+)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Properties of Global Scope",
"match": "\\b(?i:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Properties on Targets",
"match": "\\b(?i:\\w+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE(_EXTENSION)?|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_\\w+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_\\w+)?|LINK_DEPENDENT_LIBRARIES(_\\w+)?|LINK_INTERFACE_LANGUAGES(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LOCATION(_\\w+)?|NO_SONAME(_\\w+)?|SONAME(_\\w+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_\\w+)?|LIBRARY_OUTPUT_NAME(_\\w+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_\\w+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_\\w+|NO_SONAME|OSX_ARCHITECTURES(_\\w+)?|OUTPUT_NAME(_\\w+)?|PDB_NAME(_\\w+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_\\w+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_(\\w+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_\\w+)\\b",
"name": "entity.source.cmake"
},
{
"comment": "Escaped Strings",
"begin": "\\\\\"",
"end": "\\\\\"",
"name": "string.source.cmake",
"patterns": [
{
"match": "\\\\(.|$)",
"name": "constant.character.escape"
}
]
},
{
"comment": "Normal Strings",
"begin": "\"",
"end": "\"",
"name": "string.source.cmake",
"patterns": [
{
"match": "\\\\(.|$)",
"name": "constant.character.escape"
}
]
},
{
"comment": "Derecated keyword",
"match": "\\bBUILD_NAME\\b",
"name": "invalid.deprecated.source.cmake"
},
{
"comment": "Compiler Flags",
"match": "\\b(?i:(CMAKE_)?(CXX_FLAGS|CMAKE_CXX_FLAGS_DEBUG|CMAKE_CXX_FLAGS_MINSIZEREL|CMAKE_CXX_FLAGS_RELEASE|CMAKE_CXX_FLAGS_RELWITHDEBINFO))\\b",
"name": "variable.source.cmake"
}
],
"repository": {},
"scopeName": "source.cmake",
"uuid": "7aed2d59-22d9-41c8-ba9e-4f178191e380"
}

1121
node_modules/shiki/languages/cobol.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

1485
node_modules/shiki/languages/codeql.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

1316
node_modules/shiki/languages/coffee.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

9366
node_modules/shiki/languages/cpp-macro.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

16474
node_modules/shiki/languages/cpp.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

1868
node_modules/shiki/languages/crystal.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

4995
node_modules/shiki/languages/csharp.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

1865
node_modules/shiki/languages/css.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

1126
node_modules/shiki/languages/cue.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

349
node_modules/shiki/languages/cypher.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,349 @@
{
"fileTypes": ["cql", "cyp", "cypher"],
"name": "cypher",
"patterns": [
{
"include": "#comments"
},
{
"include": "#constants"
},
{
"include": "#keywords"
},
{
"include": "#functions"
},
{
"include": "#path-patterns"
},
{
"include": "#operators"
},
{
"include": "#identifiers"
},
{
"include": "#properties_literal"
},
{
"include": "#numbers"
},
{
"include": "#strings"
}
],
"repository": {
"comments": {
"patterns": [
{
"match": "//.*$\\n?",
"name": "comment.line.double-slash.cypher"
}
]
},
"constants": {
"patterns": [
{
"match": "(?i)\\bTRUE|FALSE\\b",
"name": "constant.language.bool.cypher"
},
{
"match": "(?i)\\bNULL\\b",
"name": "constant.language.missing.cypher"
}
]
},
"functions": {
"patterns": [
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b((NOT)(?=\\s*\\()|IS\\s+NULL|IS\\s+NOT\\s+NULL)",
"name": "keyword.control.function.boolean.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(ALL|ANY|NONE|SINGLE)(?=\\s*\\()",
"name": "support.function.predicate.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(LENGTH|TYPE|ID|COALESCE|HEAD|LAST|TIMESTAMP|STARTNODE|ENDNODE|TOINT|TOFLOAT)(?=\\s*\\()",
"name": "support.function.scalar.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(NODES|RELATIONSHIPS|LABELS|EXTRACT|FILTER|TAIL|RANGE|REDUCE)(?=\\s*\\()",
"name": "support.function.collection.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(ABS|ACOS|ASIN|ATAN|ATAN2|COS|COT|DEGREES|E|EXP|FLOOR|HAVERSIN|LOG|LOG10|PI|RADIANS|RAND|ROUND|SIGN|SIN|SQRT|TAN)(?=\\s*\\()",
"name": "support.function.math.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(COUNT|sum|avg|max|min|stdev|stdevp|percentileDisc|percentileCont|collect)(?=\\s*\\()",
"name": "support.function.aggregation.cypher"
},
{
"comment": "List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",
"match": "(?i)\\b(STR|REPLACE|SUBSTRING|LEFT|RIGHT|LTRIM|RTRIM|TRIM|LOWER|UPPER|SPLIT)(?=\\s*\\()",
"name": "support.function.string.cypher"
}
]
},
"identifiers": {
"patterns": [
{
"match": "`.+?`",
"name": "variable.other.quoted-identifier.cypher"
},
{
"match": "[\\p{L}_][\\p{L}0-9_]*",
"name": "variable.other.identifier.cypher"
}
]
},
"keywords": {
"patterns": [
{
"match": "(?i)\\b(START|MATCH|WHERE|RETURN|UNION|FOREACH|WITH|AS|LIMIT|SKIP|UNWIND|HAS|DISTINCT|OPTIONAL\\\\s+MATCH|ORDER\\s+BY|CALL|YIELD)\\b",
"name": "keyword.control.clause.cypher"
},
{
"match": "(?i)\\b(ELSE|END|THEN|CASE|WHEN)\\b",
"name": "keyword.control.case.cypher"
},
{
"match": "(?i)\\b(FIELDTERMINATOR|USING\\s+PERIODIC\\s+COMMIT|HEADERS|LOAD\\s+CSV|FROM)\\b",
"name": "keyword.data.import.cypher"
},
{
"match": "(?i)\\b(USING\\s+INDEX|CREATE\\s+INDEX\\s+ON|DROP\\s+INDEX\\s+ON|CREATE\\s+CONSTRAINT\\s+ON|DROP\\s+CONSTRAINT\\s+ON)\\b",
"name": "keyword.other.indexes.cypher"
},
{
"match": "(?i)\\b(MERGE|DELETE|SET|REMOVE|ON\\s+CREATE|ON\\s+MATCH|CREATE\\s+UNIQUE|CREATE)\\b",
"name": "keyword.data.definition.cypher"
},
{
"match": "(?i)\\b(DESC|ASC)\\b",
"name": "keyword.other.order.cypher"
},
{
"begin": "(?i)\\b(node|relationship|rel)((:)([\\p{L}_-][\\p{L}0-9_]*))?(?=\\s*\\()",
"beginCaptures": {
"1": {
"name": "support.class.starting-functions-point.cypher"
},
"2": {
"name": "keyword.control.index-seperator.cypher"
},
"3": {
"name": "keyword.control.index-seperator.cypher"
},
"4": {
"name": "support.class.index.cypher"
}
},
"end": "\\)",
"name": "source.starting-functions.cypher",
"patterns": [
{
"match": "((?:`.+?`)|(?:[\\p{L}_][\\p{L}0-9_]*))",
"name": "variable.parameter.relationship-name.cypher"
},
{
"match": "(\\*)",
"name": "keyword.control.starting-function-params.cypher"
},
{
"include": "#comments"
},
{
"include": "#numbers"
},
{
"include": "#strings"
}
]
}
]
},
"numbers": {
"patterns": [
{
"match": "\\b\\d+(\\.\\d+)?\\b",
"name": "constant.numeric.cypher"
}
]
},
"operators": {
"patterns": [
{
"match": "(\\+|\\-|\\/|\\*|\\%|\\?|!)",
"name": "keyword.operator.math.cypher"
},
{
"match": "(<=|=>|<>|<|>|=~|=)",
"name": "keyword.operator.compare.cypher"
},
{
"match": "(?i)\\b(OR|AND|XOR|IS)\\b",
"name": "keyword.operator.logical.cypher"
},
{
"match": "(?i)\\b(IN)\\b",
"name": "keyword.operator.in.cypher"
}
]
},
"path-patterns": {
"patterns": [
{
"match": "(<--|-->|--)",
"name": "support.function.relationship-pattern.cypher"
},
{
"begin": "(<-|-)(\\[)",
"beginCaptures": {
"1": {
"name": "support.function.relationship-pattern-start.cypher"
},
"2": {
"name": "keyword.operator.relationship-pattern-start.cypher"
}
},
"end": "(])(->|-)",
"endCaptures": {
"1": {
"name": "keyword.operator.relationship-pattern-end.cypher"
},
"2": {
"name": "support.function.relationship-pattern-end.cypher"
}
},
"name": "path-pattern.cypher",
"patterns": [
{
"include": "#identifiers"
},
{
"captures": {
"1": {
"name": "keyword.operator.relationship-type-start.cypher"
},
"2": {
"name": "entity.name.class.relationship.type.cypher"
}
},
"match": "(:)((?:`.+?`)|(?:[\\p{L}_][\\p{L}0-9_]*))",
"name": "entity.name.class.relationship-type.cypher"
},
{
"captures": {
"1": {
"name": "support.type.operator.relationship-type-or.cypher"
},
"2": {
"name": "entity.name.class.relationship.type-or.cypher"
}
},
"match": "(\\|)(\\s*)((?:`.+?`)|(?:[\\p{L}_][\\p{L}0-9_]*))",
"name": "entity.name.class.relationship-type-ored.cypher"
},
{
"match": "(?:\\?\\*|\\?|\\*)\\s*(?:\\d+\\s*(?:\\.\\.\\s*\\d+)?)?",
"name": "support.function.relationship-pattern.quant.cypher"
},
{
"include": "#properties_literal"
}
]
}
]
},
"properties_literal": {
"patterns": [
{
"begin": "{",
"beginCaptures": {
"0": {
"name": "keyword.control.properties_literal.cypher"
}
},
"end": "}",
"endCaptures": {
"0": {
"name": "keyword.control.properties_literal.cypher"
}
},
"name": "source.cypher",
"patterns": [
{
"match": ":|,",
"name": "keyword.control.properties_literal.seperator.cypher"
},
{
"include": "#comments"
},
{
"include": "#constants"
},
{
"include": "#functions"
},
{
"include": "#operators"
},
{
"include": "#identifiers"
},
{
"include": "#numbers"
},
{
"include": "#strings"
}
]
}
]
},
"string_escape": {
"captures": {
"2": {
"name": "string.quoted.double.cypher"
}
},
"match": "(\\\\\\\\|\\\\[tbnrf])|(\\\\'|\\\\\")",
"name": "constant.character.escape.cypher"
},
"strings": {
"patterns": [
{
"begin": "'",
"end": "'",
"name": "string.quoted.single.cypher",
"patterns": [
{
"include": "#string_escape"
}
]
},
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.cypher",
"patterns": [
{
"include": "#string_escape"
}
]
}
]
}
},
"scopeName": "source.cypher",
"uuid": "698F4D06-BAE8-40A8-8AA4-3307ABC03B31"
}

3195
node_modules/shiki/languages/d.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

528
node_modules/shiki/languages/dart.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,528 @@
{
"name": "dart",
"version": "1.2.1",
"fileTypes": ["dart"],
"scopeName": "source.dart",
"foldingStartMarker": "\\{\\s*$",
"foldingStopMarker": "^\\s*\\}",
"patterns": [
{
"name": "meta.preprocessor.script.dart",
"match": "^(#!.*)$"
},
{
"name": "meta.declaration.dart",
"begin": "^\\w*\\b(library|import|part of|part|export)\\b",
"beginCaptures": {
"0": {
"name": "keyword.other.import.dart"
}
},
"end": ";",
"endCaptures": {
"0": {
"name": "punctuation.terminator.dart"
}
},
"patterns": [
{
"include": "#strings"
},
{
"include": "#comments"
},
{
"name": "keyword.other.import.dart",
"match": "\\b(as|show|hide)\\b"
},
{
"name": "keyword.control.dart",
"match": "\\b(if)\\b"
}
]
},
{
"include": "#comments"
},
{
"include": "#punctuation"
},
{
"include": "#annotations"
},
{
"include": "#keywords"
},
{
"include": "#constants-and-special-vars"
},
{
"include": "#operators"
},
{
"include": "#strings"
}
],
"repository": {
"dartdoc": {
"patterns": [
{
"match": "(\\[.*?\\])",
"captures": {
"0": {
"name": "variable.name.source.dart"
}
}
},
{
"match": "^ {4,}(?![ \\*]).*",
"captures": {
"0": {
"name": "variable.name.source.dart"
}
}
},
{
"contentName": "variable.other.source.dart",
"begin": "```.*?$",
"end": "```"
},
{
"match": "(`.*?`)",
"captures": {
"0": {
"name": "variable.other.source.dart"
}
}
},
{
"match": "(`.*?`)",
"captures": {
"0": {
"name": "variable.other.source.dart"
}
}
},
{
"match": "(\\* (( ).*))$",
"captures": {
"2": {
"name": "variable.other.source.dart"
}
}
}
]
},
"comments": {
"patterns": [
{
"name": "comment.block.empty.dart",
"match": "/\\*\\*/",
"captures": {
"0": {
"name": "punctuation.definition.comment.dart"
}
}
},
{
"include": "#comments-doc-oldschool"
},
{
"include": "#comments-doc"
},
{
"include": "#comments-inline"
}
]
},
"comments-doc-oldschool": {
"patterns": [
{
"name": "comment.block.documentation.dart",
"begin": "/\\*\\*",
"end": "\\*/",
"patterns": [
{
"include": "#comments-doc-oldschool"
},
{
"include": "#comments-block"
},
{
"include": "#dartdoc"
}
]
}
]
},
"comments-doc": {
"patterns": [
{
"name": "comment.block.documentation.dart",
"begin": "///",
"while": "^\\s*///",
"patterns": [
{
"include": "#dartdoc"
}
]
}
]
},
"comments-inline": {
"patterns": [
{
"include": "#comments-block"
},
{
"match": "((//).*)$",
"captures": {
"1": {
"name": "comment.line.double-slash.dart"
}
}
}
]
},
"comments-block": {
"patterns": [
{
"name": "comment.block.dart",
"begin": "/\\*",
"end": "\\*/",
"patterns": [
{
"include": "#comments-block"
}
]
}
]
},
"annotations": {
"patterns": [
{
"name": "storage.type.annotation.dart",
"match": "@[a-zA-Z]+"
}
]
},
"constants-and-special-vars": {
"patterns": [
{
"name": "constant.language.dart",
"match": "(?<!\\$)\\b(true|false|null)\\b(?!\\$)"
},
{
"name": "variable.language.dart",
"match": "(?<!\\$)\\b(this|super)\\b(?!\\$)"
},
{
"name": "constant.numeric.dart",
"match": "(?<!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"
},
{
"include": "#class-identifier"
},
{
"include": "#function-identifier"
}
]
},
"class-identifier": {
"patterns": [
{
"match": "(?<!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)",
"name": "support.class.dart"
},
{
"match": "(?<!\\$)\\bvoid\\b(?!\\$)",
"name": "storage.type.primitive.dart"
},
{
"begin": "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b",
"end": "(?!<)",
"beginCaptures": {
"1": {
"name": "support.class.dart"
}
},
"patterns": [
{
"include": "#type-args"
}
]
}
]
},
"function-identifier": {
"patterns": [
{
"match": "([_$]*[a-z][a-zA-Z0-9_$]*)(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?[!?]?\\(",
"captures": {
"1": {
"name": "entity.name.function.dart"
},
"2": {
"patterns": [
{
"include": "#type-args"
}
]
}
}
}
]
},
"type-args": {
"begin": "(<)",
"end": "(>)",
"beginCaptures": {
"1": {
"name": "other.source.dart"
}
},
"endCaptures": {
"1": {
"name": "other.source.dart"
}
},
"patterns": [
{
"include": "#class-identifier"
},
{
"match": ","
},
{
"name": "keyword.declaration.dart",
"match": "extends"
},
{
"include": "#comments"
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.cast.dart",
"match": "(?<!\\$)\\bas\\b(?!\\$)"
},
{
"name": "keyword.control.catch-exception.dart",
"match": "(?<!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"
},
{
"name": "keyword.control.dart",
"match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while|when)\\b(?!\\$)"
},
{
"name": "keyword.control.dart",
"match": "(?<!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"
},
{
"name": "keyword.control.dart",
"match": "(?<!\\$)\\bassert\\b(?!\\$)"
},
{
"name": "keyword.control.new.dart",
"match": "(?<!\\$)\\b(new)\\b(?!\\$)"
},
{
"name": "keyword.declaration.dart",
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
},
{
"name": "storage.modifier.dart",
"match": "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
},
{
"name": "storage.type.primitive.dart",
"match": "(?<!\\$)\\b(?:void|var)\\b(?!\\$)"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.dart",
"match": "(?<!\\$)\\b(is\\!?)\\b(?!\\$)"
},
{
"name": "keyword.operator.ternary.dart",
"match": "\\?|:"
},
{
"name": "keyword.operator.bitwise.dart",
"match": "(<<|>>>?|~|\\^|\\||&)"
},
{
"name": "keyword.operator.assignment.bitwise.dart",
"match": "((&|\\^|\\||<<|>>>?)=)"
},
{
"name": "keyword.operator.closure.dart",
"match": "(=>)"
},
{
"name": "keyword.operator.comparison.dart",
"match": "(==|!=|<=?|>=?)"
},
{
"name": "keyword.operator.assignment.arithmetic.dart",
"match": "(([+*/%-]|\\~)=)"
},
{
"name": "keyword.operator.assignment.dart",
"match": "(=)"
},
{
"name": "keyword.operator.increment-decrement.dart",
"match": "(\\-\\-|\\+\\+)"
},
{
"name": "keyword.operator.arithmetic.dart",
"match": "(\\-|\\+|\\*|\\/|\\~\\/|%)"
},
{
"name": "keyword.operator.logical.dart",
"match": "(!|&&|\\|\\|)"
}
]
},
"string-interp": {
"patterns": [
{
"match": "\\$([a-zA-Z0-9_]+)",
"captures": {
"1": {
"name": "variable.parameter.dart"
}
}
},
{
"name": "string.interpolated.expression.dart",
"begin": "\\$\\{",
"end": "\\}",
"patterns": [
{
"include": "#constants-and-special-vars",
"name": "variable.parameter.dart"
},
{
"include": "#strings"
},
{
"name": "variable.parameter.dart",
"match": "[a-zA-Z0-9_]+"
}
]
},
{
"name": "constant.character.escape.dart",
"match": "\\\\."
}
]
},
"strings": {
"patterns": [
{
"name": "string.interpolated.triple.double.dart",
"begin": "(?<!r)\"\"\"",
"end": "\"\"\"(?!\")",
"patterns": [
{
"include": "#string-interp"
}
]
},
{
"name": "string.interpolated.triple.single.dart",
"begin": "(?<!r)'''",
"end": "'''(?!')",
"patterns": [
{
"include": "#string-interp"
}
]
},
{
"name": "string.quoted.triple.double.dart",
"begin": "r\"\"\"",
"end": "\"\"\"(?!\")"
},
{
"name": "string.quoted.triple.single.dart",
"begin": "r'''",
"end": "'''(?!')"
},
{
"name": "string.interpolated.double.dart",
"begin": "(?<!\\|r)\"",
"end": "\"",
"patterns": [
{
"name": "invalid.string.newline",
"match": "\\n"
},
{
"include": "#string-interp"
}
]
},
{
"name": "string.quoted.double.dart",
"begin": "r\"",
"end": "\"",
"patterns": [
{
"name": "invalid.string.newline",
"match": "\\n"
}
]
},
{
"name": "string.interpolated.single.dart",
"begin": "(?<!\\|r)'",
"end": "'",
"patterns": [
{
"name": "invalid.string.newline",
"match": "\\n"
},
{
"include": "#string-interp"
}
]
},
{
"name": "string.quoted.single.dart",
"begin": "r'",
"end": "'",
"patterns": [
{
"name": "invalid.string.newline",
"match": "\\n"
}
]
}
]
},
"punctuation": {
"patterns": [
{
"name": "punctuation.comma.dart",
"match": ","
},
{
"name": "punctuation.terminator.dart",
"match": ";"
},
{
"name": "punctuation.dot.dart",
"match": "\\."
}
]
}
}
}

185
node_modules/shiki/languages/dax.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,185 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "dax",
"patterns": [
{
"include": "#comments"
},
{
"include": "#keywords"
},
{
"include": "#labels"
},
{
"include": "#parameters"
},
{
"include": "#strings"
},
{
"include": "#numbers"
}
],
"repository": {
"parameters": {
"patterns": [
{
"name": "meta.function.definition.parameters.dax",
"comment": "build out variable assignment",
"begin": "\\b(?<!\\.)(VAR)\\b(?<!\\.)\\b",
"end": "=",
"beginCaptures": {
"1": {
"name": "keyword.control.dax"
},
"2": {
"name": "variable.other.readwrite.dax"
}
},
"endCaptures": {
"0": {
"name": "keyword.operator.assignment.dax"
}
},
"patterns": [
{
"name": "keyword.control.dax",
"match": "(?x)\n = \n"
}
]
},
{
"name": "variable.other.constant.dax",
"match": "[_$[:alpha:]][_$[:alnum:]]*"
}
]
},
"labels": {
"patterns": [
{
"match": "(^(.*?)\\s*(:=|!=))",
"captures": {
"1": {
"name": "punctuation.separator.label.dax"
},
"2": {
"name": "entity.name.label.dax"
}
}
}
]
},
"numbers": {
"name": "constant.numeric.dax",
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional"
},
"comments": {
"patterns": [
{
"name": "comment.line.dax",
"begin": "//",
"end": "\n",
"captures": {
"0": {
"name": "punctuation.definition.comment.dax"
}
}
},
{
"name": "comment.line.dax",
"begin": "--",
"end": "\n",
"captures": {
"0": {
"name": "punctuation.definition.comment.dax"
}
}
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.dax"
}
},
"end": "\\*/",
"name": "comment.block.dax"
}
]
},
"keywords": {
"patterns": [
{
"match": "\\b(YIELDMAT|YIELDDISC|YIELD|YEARFRAC|YEAR|XNPV|XIRR|WEEKNUM|WEEKDAY|VDB|VARX.S|VARX.P|VAR.S|VAR.P|VALUES|VALUE|UTCTODAY|UTCNOW|USERPRINCIPALNAME|USEROBJECTID|USERNAME|USERELATIONSHIP|USERCULTURE|UPPER|UNION|UNICODE|UNICHAR|TRUNC|TRUE|TRIM|TREATAS|TOTALYTD|TOTALQTD|TOTALMTD|TOPNSKIP|TOPNPERLEVEL|TOPN|TODAY|TIMEVALUE|TIME|TBILLYIELD|TBILLPRICE|TBILLEQ|TANH|TAN|T.INV.2T|T.INV|T.DIST.RT|T.DIST.2T|T.DIST|SYD|SWITCH|SUMX|SUMMARIZECOLUMNS|SUMMARIZE|SUM|SUBSTITUTEWITHINDEX|SUBSTITUTE|STDEVX.S|STDEVX.P|STDEV.S|STDEV.P|STARTOFYEAR|STARTOFQUARTER|STARTOFMONTH|SQRTPI|SQRT|SLN|SINH|SIN|SIGN|SELECTEDVALUE|SELECTEDMEASURENAME|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURE|SELECTCOLUMNS|SECOND|SEARCH|SAMPLE|SAMEPERIODLASTYEAR|RRI|ROW|ROUNDUP|ROUNDDOWN|ROUND|ROLLUPISSUBTOTAL|ROLLUPGROUP|ROLLUPADDISSUBTOTAL|ROLLUP|RIGHT|REPT|REPLACE|REMOVEFILTERS|RELATEDTABLE|RELATED|RECEIVED|RATE|RANKX|RANK.EQ|RANDBETWEEN|RAND|RADIANS|QUOTIENT|QUARTER|PV|PRODUCTX|PRODUCT|PRICEMAT|PRICEDISC|PRICE|PREVIOUSYEAR|PREVIOUSQUARTER|PREVIOUSMONTH|PREVIOUSDAY|PPMT|POWER|POISSON.DIST|PMT|PI|PERMUT|PERCENTILEX.INC|PERCENTILEX.EXC|PERCENTILE.INC|PERCENTILE.EXC|PDURATION|PATHLENGTH|PATHITEMREVERSE|PATHITEM|PATHCONTAINS|PATH|PARALLELPERIOD|OR|OPENINGBALANCEYEAR|OPENINGBALANCEQUARTER|OPENINGBALANCEMONTH|ODDLYIELD|ODDLPRICE|ODDFYIELD|ODDFPRICE|ODD|NPER|NOW|NOT|NORM.S.INV|NORM.S.DIST|NORM.INV|NORM.DIST|NONVISUAL|NOMINAL|NEXTYEAR|NEXTQUARTER|NEXTMONTH|NEXTDAY|NATURALLEFTOUTERJOIN|NATURALINNERJOIN|MROUND|MONTH|MOD|MINX|MINUTE|MINA|MIN|MID|MEDIANX|MEDIAN|MDURATION|MAXX|MAXA|MAX|LOWER|LOOKUPVALUE|LOG10|LOG|LN|LEN|LEFT|LCM|LASTNONBLANKVALUE|LASTNONBLANK|LASTDATE|KEYWORDMATCH|KEEPFILTERS|ISTEXT|ISSUBTOTAL|ISSELECTEDMEASURE|ISPMT|ISONORAFTER|ISODD|ISO.CEILING|ISNUMBER|ISNONTEXT|ISLOGICAL|ISINSCOPE|ISFILTERED|ISEVEN|ISERROR|ISEMPTY|ISCROSSFILTERED|ISBLANK|ISAFTER|IPMT|INTRATE|INTERSECT|INT|IGNORE|IFERROR|IF.EAGER|IF|HOUR|HASONEVALUE|HASONEFILTER|HASH|GROUPBY|GEOMEANX|GEOMEAN|GENERATESERIES|GENERATEALL|GENERATE|GCD|FV|FORMAT|FLOOR|FIXED|FIRSTNONBLANKVALUE|FIRSTNONBLANK|FIRSTDATE|FIND|FILTERS|FILTER|FALSE|FACT|EXPON.DIST|EXP|EXCEPT|EXACT|EVEN|ERROR|EOMONTH|ENDOFYEAR|ENDOFQUARTER|ENDOFMONTH|EFFECT|EDATE|EARLIEST|EARLIER|DURATION|DOLLARFR|DOLLARDE|DIVIDE|DISTINCTCOUNTNOBLANK|DISTINCTCOUNT|DISTINCT|DISC|DETAILROWS|DEGREES|DDB|DB|DAY|DATEVALUE|DATESYTD|DATESQTD|DATESMTD|DATESINPERIOD|DATESBETWEEN|DATEDIFF|DATEADD|DATE|DATATABLE|CUSTOMDATA|CURRENTGROUP|CURRENCY|CUMPRINC|CUMIPMT|CROSSJOIN|CROSSFILTER|COUPPCD|COUPNUM|COUPNCD|COUPDAYSNC|COUPDAYS|COUPDAYBS|COUNTX|COUNTROWS|COUNTBLANK|COUNTAX|COUNTA|COUNT|COTH|COT|COSH|COS|CONVERT|CONTAINSSTRINGEXACT|CONTAINSSTRING|CONTAINSROW|CONTAINS|CONFIDENCE.T|CONFIDENCE.NORM|CONCATENATEX|CONCATENATE|COMBINEVALUES|COMBINA|COMBIN|COLUMNSTATISTICS|COALESCE|CLOSINGBALANCEYEAR|CLOSINGBALANCEQUARTER|CLOSINGBALANCEMONTH|CHISQ.INV.RT|CHISQ.INV|CHISQ.DIST.RT|CHISQ.DIST|CEILING|CALENDARAUTO|CALENDAR|CALCULATETABLE|CALCULATE|BLANK|BETA.INV|BETA.DIST|AVERAGEX|AVERAGEA|AVERAGE|ATANH|ATAN|ASINH|ASIN|APPROXIMATEDISTINCTCOUNT|AND|AMORLINC|AMORDEGRC|ALLSELECTED|ALLNOBLANKROW|ALLEXCEPT|ALLCROSSFILTERED|ALL|ADDMISSINGITEMS|ADDCOLUMNS|ACOTH|ACOT|ACOSH|ACOS|ACCRINTM|ACCRINT|ABS)\\b",
"name": "variable.language.dax"
},
{
"name": "keyword.control.dax",
"match": "\\b(DEFINE|EVALUATE|ORDER BY|RETURN|VAR)\\b"
},
{
"name": "keyword.array.constructor.dax",
"match": "(?x)\n { | }"
},
{
"name": "keyword.operator.comparison.dax",
"match": "(?x)\n > | < | >= | <= | =(?!==)\n"
},
{
"name": "keyword.operator.logical.dax",
"match": "(?x)\n && | IN | NOT | \\|\\|"
},
{
"name": "keyword.arithmetic.operator.dax",
"match": "(?x)\n \\+ | \\- | \\* | \\/ \n"
},
{
"begin": "\\[",
"end": "\\]",
"name": "support.function.dax"
},
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.dax"
},
{
"begin": "\\'",
"end": "\\'",
"name": "support.class.dax"
}
]
},
"strings": {
"name": "string.quoted.double.dax",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.dax",
"match": "\\\\."
}
]
},
"metas": {
"patterns": [
{
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "meta.brace.round.dax"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "meta.brace.round.dax"
}
}
}
]
}
},
"scopeName": "source.dax"
}

160
node_modules/shiki/languages/diff.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,160 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/textmate/diff.tmbundle/blob/master/Syntaxes/Diff.plist",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/textmate/diff.tmbundle/commit/0593bb775eab1824af97ef2172fd38822abd97d7",
"name": "diff",
"scopeName": "source.diff",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.separator.diff"
}
},
"match": "^((\\*{15})|(={67})|(-{3}))$\\n?",
"name": "meta.separator.diff"
},
{
"match": "^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?",
"name": "meta.diff.range.normal"
},
{
"captures": {
"1": {
"name": "punctuation.definition.range.diff"
},
"2": {
"name": "meta.toc-list.line-number.diff"
},
"3": {
"name": "punctuation.definition.range.diff"
}
},
"match": "^(@@)\\s*(.+?)\\s*(@@)($\\n?)?",
"name": "meta.diff.range.unified"
},
{
"captures": {
"3": {
"name": "punctuation.definition.range.diff"
},
"4": {
"name": "punctuation.definition.range.diff"
},
"6": {
"name": "punctuation.definition.range.diff"
},
"7": {
"name": "punctuation.definition.range.diff"
}
},
"match": "^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?",
"name": "meta.diff.range.context"
},
{
"match": "^diff --git a/.*$\\n?",
"name": "meta.diff.header.git"
},
{
"match": "^diff (-|\\S+\\s+\\S+).*$\\n?",
"name": "meta.diff.header.command"
},
{
"captures": {
"4": {
"name": "punctuation.definition.from-file.diff"
},
"6": {
"name": "punctuation.definition.from-file.diff"
},
"7": {
"name": "punctuation.definition.from-file.diff"
}
},
"match": "(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))",
"name": "meta.diff.header.from-file"
},
{
"captures": {
"2": {
"name": "punctuation.definition.to-file.diff"
},
"3": {
"name": "punctuation.definition.to-file.diff"
},
"4": {
"name": "punctuation.definition.to-file.diff"
}
},
"match": "(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)",
"name": "meta.diff.header.to-file"
},
{
"captures": {
"3": {
"name": "punctuation.definition.inserted.diff"
},
"6": {
"name": "punctuation.definition.inserted.diff"
}
},
"match": "^(((>)( .*)?)|((\\+).*))$\\n?",
"name": "markup.inserted.diff"
},
{
"captures": {
"1": {
"name": "punctuation.definition.changed.diff"
}
},
"match": "^(!).*$\\n?",
"name": "markup.changed.diff"
},
{
"captures": {
"3": {
"name": "punctuation.definition.deleted.diff"
},
"6": {
"name": "punctuation.definition.deleted.diff"
}
},
"match": "^(((<)( .*)?)|((-).*))$\\n?",
"name": "markup.deleted.diff"
},
{
"begin": "^(#)",
"captures": {
"1": {
"name": "punctuation.definition.comment.diff"
}
},
"comment": "Git produces unified diffs with embedded comments\"",
"end": "\\n",
"name": "comment.line.number-sign.diff"
},
{
"match": "^index [0-9a-f]{7,40}\\.\\.[0-9a-f]{7,40}.*$\\n?",
"name": "meta.diff.index.git"
},
{
"captures": {
"1": {
"name": "punctuation.separator.key-value.diff"
},
"2": {
"name": "meta.toc-list.file-name.diff"
}
},
"match": "^Index(:) (.+)$\\n?",
"name": "meta.diff.index"
},
{
"match": "^Only in .*: .*$\\n?",
"name": "meta.diff.only-in"
}
]
}

102
node_modules/shiki/languages/docker.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,102 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
"name": "docker",
"scopeName": "source.dockerfile",
"patterns": [
{
"captures": {
"1": {
"name": "keyword.other.special-method.dockerfile"
},
"2": {
"name": "keyword.other.special-method.dockerfile"
}
},
"match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.dockerfile"
},
"2": {
"name": "keyword.other.special-method.dockerfile"
}
},
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"
},
{
"captures": {
"1": {
"name": "keyword.operator.dockerfile"
},
"2": {
"name": "keyword.other.special-method.dockerfile"
}
},
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
},
{
"begin": "\"",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.dockerfile"
}
},
"end": "\"",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.dockerfile"
}
},
"name": "string.quoted.double.dockerfile",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escaped.dockerfile"
}
]
},
{
"begin": "'",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.dockerfile"
}
},
"end": "'",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.dockerfile"
}
},
"name": "string.quoted.single.dockerfile",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escaped.dockerfile"
}
]
},
{
"captures": {
"1": {
"name": "punctuation.whitespace.comment.leading.dockerfile"
},
"2": {
"name": "comment.line.number-sign.dockerfile"
},
"3": {
"name": "punctuation.definition.comment.dockerfile"
}
},
"comment": "comment.line",
"match": "^(\\s*)((#).*$\\n?)"
}
]
}

View file

@ -0,0 +1,636 @@
{
"fileTypes": ["dm", "dme"],
"foldingStartMarker": "(?x)\n/\\*\\*(?!\\*)\n|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))",
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
"name": "dream-maker",
"patterns": [
{
"include": "#preprocessor-rule-enabled"
},
{
"include": "#preprocessor-rule-disabled"
},
{
"include": "#preprocessor-rule-other"
},
{
"include": "#comments"
},
{
"match": "(?x)\n(var)[\\/ ]\n(?:(static|global|tmp|const)\\/)?\n(?:(datum|atom(?:\\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\/)?\n(?:\n\t([a-zA-Z0-9_\\-$]*)\\/\n)*\n\n([A-Za-z0-9_$]*)\\b",
"name": "meta.initialization.dm",
"captures": {
"1": {
"name": "storage.type.dm"
},
"2": {
"name": "storage.modifier.dm"
},
"3": {
"name": "storage.type.dm"
},
"5": {
"name": "variable.other.dm"
}
}
},
{
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
"name": "constant.numeric.dm"
},
{
"match": "\\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while)\\b",
"name": "keyword.control.dm"
},
{
"match": "\\b(del|new)\\b",
"name": "keyword.other.dm"
},
{
"match": "\\b(proc|verb|datum|atom(/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\b",
"name": "storage.type.dm"
},
{
"match": "\\b(as|const|global|set|static|tmp)\\b",
"name": "storage.modifier.dm"
},
{
"match": "\\b(usr|world|src|args)\\b",
"name": "variable.language.dm"
},
{
"match": "(\\?|(>|<)(=)?|\\.|:|/(=)?|~|\\+(\\+|=)?|-(-|=)?|\\*(\\*|=)?|%|>>|<<|=(=)?|!(=)?|<>|&|&&|\\^|\\||\\|\\||\\bto\\b|\\bin\\b|\\bstep\\b)",
"name": "keyword.operator.dm"
},
{
"match": "\\b([A-Z_][A-Z_0-9]*)\\b",
"name": "constant.language.dm"
},
{
"match": "\\bnull\\b",
"name": "constant.language.dm"
},
{
"begin": "{\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.dm"
}
},
"end": "\"}",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.dm"
}
},
"name": "string.quoted.triple.dm",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_embedded_expression"
}
]
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.dm"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.dm"
}
},
"name": "string.quoted.double.dm",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_embedded_expression"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.dm"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.dm"
}
},
"name": "string.quoted.single.dm",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n(?:\n\t(\\()\n\t\t(\n\t\t\t\\s* \\g<id> \\s* # first argument\n\t\t\t((,) \\s* \\g<id> \\s*)* # additional arguments\n\t\t\t(?:\\.\\.\\.)? # varargs ellipsis?\n\t\t)\n\t(\\))\n)",
"beginCaptures": {
"1": {
"name": "keyword.control.directive.define.dm"
},
"2": {
"name": "punctuation.definition.directive.dm"
},
"3": {
"name": "entity.name.function.preprocessor.dm"
},
"5": {
"name": "punctuation.definition.parameters.begin.dm"
},
"6": {
"name": "variable.parameter.preprocessor.dm"
},
"8": {
"name": "punctuation.separator.parameters.dm"
},
"9": {
"name": "punctuation.definition.parameters.end.dm"
}
},
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
"name": "meta.preprocessor.macro.dm",
"patterns": [
{
"include": "$base"
}
]
},
{
"begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name",
"beginCaptures": {
"1": {
"name": "keyword.control.directive.define.dm"
},
"2": {
"name": "punctuation.definition.directive.dm"
},
"3": {
"name": "variable.other.preprocessor.dm"
}
},
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
"name": "meta.preprocessor.macro.dm",
"patterns": [
{
"include": "$base"
}
]
},
{
"begin": "^\\s*(#\\s*(error|warn))\\b",
"captures": {
"1": {
"name": "keyword.control.import.error.dm"
}
},
"end": "$",
"name": "meta.preprocessor.diagnostic.dm",
"patterns": [
{
"match": "(?>\\\\\\s*\\n)",
"name": "punctuation.separator.continuation.dm"
}
]
},
{
"begin": "^\\s*(?:((#)\\s*(?:elif|else|if|ifdef|ifndef))|((#)\\s*(undef|include)))\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.directive.conditional.dm"
},
"2": {
"name": "punctuation.definition.directive.dm"
},
"3": {
"name": "keyword.control.directive.$5.dm"
},
"4": {
"name": "punctuation.definition.directive.dm"
}
},
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
"name": "meta.preprocessor.dm",
"patterns": [
{
"match": "(?>\\\\\\s*\\n)",
"name": "punctuation.separator.continuation.dm"
}
]
},
{
"include": "#block"
},
{
"begin": "(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t\t|\n\t\t\t\t\t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w) # or word + space before name\n\t\t\t\t\t\t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>]) # or type modifier before name\n\t\t\t\t\t\t )\n\t\t\t\t)\n\t\t\t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n\t\t\t\t(\n\t\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t\t\t\t)\n\t\t\t\t \\s*(?=\\()",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.function.leading.dm"
},
"3": {
"name": "entity.name.function.dm"
},
"4": {
"name": "punctuation.definition.parameters.dm"
}
},
"end": "(?<=\\})|(?=#)|(;)?",
"name": "meta.function.dm",
"patterns": [
{
"include": "#comments"
},
{
"include": "#parens"
},
{
"match": "\\bconst\\b",
"name": "storage.modifier.dm"
},
{
"include": "#block"
}
]
}
],
"repository": {
"access": {
"match": "\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()",
"name": "variable.other.dot-access.dm"
},
"block": {
"begin": "\\{",
"end": "\\}",
"name": "meta.block.dm",
"patterns": [
{
"include": "#block_innards"
}
]
},
"block_innards": {
"patterns": [
{
"include": "#preprocessor-rule-enabled-block"
},
{
"include": "#preprocessor-rule-disabled-block"
},
{
"include": "#preprocessor-rule-other-block"
},
{
"include": "#access"
},
{
"captures": {
"1": {
"name": "punctuation.whitespace.function-call.leading.dm"
},
"2": {
"name": "support.function.any-method.dm"
},
"3": {
"name": "punctuation.definition.parameters.dm"
}
},
"match": "(?x) (?: (?= \\s ) (?:(?<=else|new|return) | (?<!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()",
"name": "meta.function-call.dm"
},
{
"include": "#block"
},
{
"include": "$base"
}
]
},
"comments": {
"patterns": [
{
"captures": {
"1": {
"name": "meta.toc-list.banner.block.dm"
}
},
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
"name": "comment.block.dm"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.dm"
}
},
"end": "\\*/",
"name": "comment.block.dm",
"patterns": [
{
"include": "#comments"
}
]
},
{
"match": "\\*/.*\\n",
"name": "invalid.illegal.stray-comment-end.dm"
},
{
"captures": {
"1": {
"name": "meta.toc-list.banner.line.dm"
}
},
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
"name": "comment.line.banner.dm"
},
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.dm"
}
},
"end": "$\\n?",
"name": "comment.line.double-slash.dm",
"patterns": [
{
"match": "(?>\\\\\\s*\\n)",
"name": "punctuation.separator.continuation.dm"
}
]
}
]
},
"disabled": {
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
"comment": "eat nested preprocessor if(def)s",
"end": "^\\s*#\\s*endif\\b.*$",
"patterns": [
{
"include": "#disabled"
}
]
},
"parens": {
"begin": "\\(",
"end": "\\)",
"name": "meta.parens.dm",
"patterns": [
{
"include": "$base"
}
]
},
"preprocessor-rule-disabled": {
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.if.dm"
},
"3": {
"name": "constant.numeric.preprocessor.dm"
}
},
"end": "^\\s*(#\\s*(endif)\\b)",
"patterns": [
{
"begin": "^\\s*(#\\s*(else)\\b)",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.else.dm"
}
},
"end": "(?=^\\s*#\\s*endif\\b.*$)",
"patterns": [
{
"include": "$base"
}
]
},
{
"begin": "",
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
"name": "comment.block.preprocessor.if-branch",
"patterns": [
{
"include": "#disabled"
}
]
}
]
},
"preprocessor-rule-disabled-block": {
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.if.dm"
},
"3": {
"name": "constant.numeric.preprocessor.dm"
}
},
"end": "^\\s*(#\\s*(endif)\\b)",
"patterns": [
{
"begin": "^\\s*(#\\s*(else)\\b)",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.else.dm"
}
},
"end": "(?=^\\s*#\\s*endif\\b.*$)",
"patterns": [
{
"include": "#block_innards"
}
]
},
{
"begin": "",
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
"name": "comment.block.preprocessor.if-branch.in-block",
"patterns": [
{
"include": "#disabled"
}
]
}
]
},
"preprocessor-rule-enabled": {
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.if.dm"
},
"3": {
"name": "constant.numeric.preprocessor.dm"
}
},
"end": "^\\s*(#\\s*(endif)\\b)",
"patterns": [
{
"begin": "^\\s*(#\\s*(else)\\b).*",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.else.dm"
}
},
"contentName": "comment.block.preprocessor.else-branch",
"end": "(?=^\\s*#\\s*endif\\b.*$)",
"patterns": [
{
"include": "#disabled"
}
]
},
{
"begin": "",
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
"patterns": [
{
"include": "$base"
}
]
}
]
},
"preprocessor-rule-enabled-block": {
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.if.dm"
},
"3": {
"name": "constant.numeric.preprocessor.dm"
}
},
"end": "^\\s*(#\\s*(endif)\\b)",
"patterns": [
{
"begin": "^\\s*(#\\s*(else)\\b).*",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.else.dm"
}
},
"contentName": "comment.block.preprocessor.else-branch.in-block",
"end": "(?=^\\s*#\\s*endif\\b.*$)",
"patterns": [
{
"include": "#disabled"
}
]
},
{
"begin": "",
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
"patterns": [
{
"include": "#block_innards"
}
]
}
]
},
"preprocessor-rule-other": {
"begin": "^\\s*((#\\s*(if(n?def)?))\\b.*?(?:(?=(?://|/\\*))|$))",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.dm"
}
},
"end": "^\\s*((#\\s*(endif))\\b).*$",
"patterns": [
{
"include": "$base"
}
]
},
"preprocessor-rule-other-block": {
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
"captures": {
"1": {
"name": "meta.preprocessor.dm"
},
"2": {
"name": "keyword.control.import.dm"
}
},
"end": "^\\s*(#\\s*(endif)\\b).*$",
"patterns": [
{
"include": "#block_innards"
}
]
},
"string_embedded_expression": {
"patterns": [
{
"begin": "(?<!\\\\)\\[",
"end": "\\]",
"name": "string.interpolated.dm",
"patterns": [
{
"include": "$self"
}
]
}
]
},
"string_escaped_char": {
"patterns": [
{
"match": "(?x)\n\\\\\n(\n\th(?:(?:er|im)self|ers|im)\n\t|([tTsS]?he) # Weird regex to match The, the, She, she and he at once.\n\t|He\n\t|[Hh]is\n\t|[aA]n?\n\t|(?:im)?proper\n\t|\\.\\.\\.\n\t|(?:icon|ref|[Rr]oman)(?=\\[) # Macros which need a [] after them.\n\t|[s<>\"n\\n \\[]\n)",
"name": "constant.character.escape.dm"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unknown-escape.dm"
}
]
}
},
"scopeName": "source.dm"
}

1013
node_modules/shiki/languages/elixir.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

748
node_modules/shiki/languages/elm.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,748 @@
{
"fileTypes": ["elm"],
"name": "elm",
"scopeName": "source.elm",
"patterns": [
{
"include": "#import"
},
{
"include": "#module"
},
{
"include": "#debug"
},
{
"include": "#comments"
},
{
"match": "\\b(_)\\b",
"name": "keyword.unused.elm"
},
{
"include": "#type-signature"
},
{
"include": "#type-declaration"
},
{
"include": "#type-alias-declaration"
},
{
"include": "#string-triple"
},
{
"include": "#string-quote"
},
{
"include": "#char"
},
{
"comment": "Floats are always decimal",
"match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b",
"name": "constant.numeric.float.elm"
},
{
"match": "\\b([0-9]+)\\b",
"name": "constant.numeric.elm"
},
{
"match": "\\b(0x[0-9a-fA-F]+)\\b",
"name": "constant.numeric.elm"
},
{
"include": "#glsl"
},
{
"include": "#record-prefix"
},
{
"include": "#module-prefix"
},
{
"include": "#constructor"
},
{
"name": "meta.record.field.update.elm",
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\|)\\s+([a-z][a-zA-Z0-9_]*)",
"captures": {
"1": {
"name": "punctuation.bracket.elm"
},
"2": {
"name": "record.name.elm"
},
"3": {
"name": "keyword.pipe.elm"
},
"4": {
"name": "entity.name.record.field.elm"
}
}
},
{
"name": "meta.record.field.update.elm",
"match": "(\\|)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
"captures": {
"1": {
"name": "keyword.pipe.elm"
},
"2": {
"name": "entity.name.record.field.elm"
},
"3": {
"name": "keyword.operator.assignment.elm"
}
}
},
{
"name": "meta.record.field.update.elm",
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+$",
"captures": {
"1": {
"name": "punctuation.bracket.elm"
},
"2": {
"name": "record.name.elm"
}
}
},
{
"name": "meta.record.field.elm",
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
"captures": {
"1": {
"name": "punctuation.bracket.elm"
},
"2": {
"name": "entity.name.record.field.elm"
},
"3": {
"name": "keyword.operator.assignment.elm"
}
}
},
{
"name": "meta.record.field.elm",
"match": "(,)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
"captures": {
"1": {
"name": "punctuation.separator.comma.elm"
},
"2": {
"name": "entity.name.record.field.elm"
},
"3": {
"name": "keyword.operator.assignment.elm"
}
}
},
{
"match": "(\\}|\\{)",
"name": "punctuation.bracket.elm"
},
{
"include": "#unit"
},
{
"include": "#comma"
},
{
"include": "#parens"
},
{
"match": "(->)",
"name": "keyword.operator.arrow.elm"
},
{
"include": "#infix_op"
},
{
"match": "(\\=|\\:|\\||\\\\)",
"name": "keyword.other.elm"
},
{
"match": "\\b(type|as|port|exposing|alias|infixl|infixr|infix)\\s+",
"name": "keyword.other.elm"
},
{
"match": "\\b(if|then|else|case|of|let|in)\\s+",
"name": "keyword.control.elm"
},
{
"include": "#record-accessor"
},
{
"include": "#top_level_value"
},
{
"include": "#value"
},
{
"include": "#period"
},
{
"include": "#square_brackets"
}
],
"repository": {
"comma": {
"match": "(,)",
"name": "punctuation.separator.comma.elm"
},
"parens": {
"match": "(\\(|\\))",
"name": "punctuation.parens.elm"
},
"block_comment": {
"applyEndPatternLast": 1,
"begin": "\\{-(?!#)",
"captures": {
"0": {
"name": "punctuation.definition.comment.elm"
}
},
"end": "-\\}",
"name": "comment.block.elm",
"patterns": [
{
"include": "#block_comment"
}
]
},
"comments": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.elm"
}
},
"begin": "--",
"end": "$",
"name": "comment.line.double-dash.elm"
},
{
"include": "#block_comment"
}
]
},
"import": {
"name": "meta.import.elm",
"begin": "^\\b(import)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.control.import.elm"
}
},
"end": "\\n(?!\\s)",
"patterns": [
{
"match": "(as|exposing)",
"name": "keyword.control.elm"
},
{
"include": "#module_chunk"
},
{
"include": "#period"
},
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"include": "#module-exports"
}
]
},
"module": {
"begin": "^\\b((port |effect )?module)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.other.elm"
}
},
"end": "\\n(?!\\s)",
"endCaptures": {
"1": {
"name": "keyword.other.elm"
}
},
"name": "meta.declaration.module.elm",
"patterns": [
{
"include": "#module_chunk"
},
{
"include": "#period"
},
{
"match": "(exposing)",
"name": "keyword.other.elm"
},
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"include": "#module-exports"
}
]
},
"string-triple": {
"name": "string.quoted.triple.elm",
"begin": "\"\"\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.elm"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.elm"
}
},
"patterns": [
{
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
"name": "constant.character.escape.elm"
},
{
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
"name": "constant.character.escape.control.elm"
}
]
},
"string-quote": {
"name": "string.quoted.double.elm",
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.elm"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.elm"
}
},
"patterns": [
{
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
"name": "constant.character.escape.elm"
},
{
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
"name": "constant.character.escape.control.elm"
}
]
},
"char": {
"name": "string.quoted.single.elm",
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.char.begin.elm"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.char.end.elm"
}
},
"patterns": [
{
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
"name": "constant.character.escape.elm"
},
{
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
"name": "constant.character.escape.control.elm"
}
]
},
"debug": {
"match": "\\b(Debug)\\b",
"name": "invalid.illegal.debug.elm"
},
"module-exports": {
"begin": "(\\()",
"beginCaptures": {
"1": {
"name": "punctuation.parens.module-export.elm"
}
},
"end": "(\\))",
"endCaptures": {
"1": {
"name": "punctuation.parens.module-export.elm"
}
},
"name": "meta.declaration.exports.elm",
"patterns": [
{
"match": "\\b[a-z][a-zA-Z_'0-9]*",
"name": "entity.name.function.elm"
},
{
"match": "\\b[A-Z][A-Za-z_'0-9]*",
"name": "storage.type.elm"
},
{
"match": ",",
"name": "punctuation.separator.comma.elm"
},
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"include": "#comma"
},
{
"match": "\\(\\.\\.\\)",
"name": "punctuation.parens.ellipses.elm"
},
{
"match": "\\.\\.",
"name": "punctuation.parens.ellipses.elm"
},
{
"include": "#infix_op"
},
{
"comment": "So named because I don't know what to call this.",
"match": "\\(.*?\\)",
"name": "meta.other.unknown.elm"
}
]
},
"module_chunk": {
"match": "[A-Z][a-zA-Z0-9_]*",
"name": "support.module.elm"
},
"period": {
"match": "[.]",
"name": "keyword.other.period.elm"
},
"square_brackets": {
"match": "[\\[\\]]",
"name": "punctuation.definition.list.elm"
},
"record-prefix": {
"match": "([a-z][a-zA-Z0-9_]*)(\\.)([a-z][a-zA-Z0-9_]*)",
"name": "record.accessor.elm",
"captures": {
"1": {
"name": "record.name.elm"
},
"2": {
"name": "keyword.other.period.elm"
},
"3": {
"name": "entity.name.record.field.accessor.elm"
}
}
},
"module-prefix": {
"match": "([A-Z][a-zA-Z0-9_]*)(\\.)",
"name": "meta.module.name.elm",
"captures": {
"1": {
"name": "support.module.elm"
},
"2": {
"name": "keyword.other.period.elm"
}
}
},
"constructor": {
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
"name": "constant.type-constructor.elm"
},
"value": {
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
"name": "meta.value.elm"
},
"unit": {
"match": "\\(\\)",
"name": "constant.unit.elm"
},
"top_level_value": {
"match": "^[a-z][a-zA-Z0-9_]*\\b",
"name": "entity.name.function.top_level.elm"
},
"record-accessor": {
"match": "(\\.)([a-z][a-zA-Z0-9_]*)",
"name": "meta.record.accessor",
"captures": {
"1": {
"name": "keyword.other.period.elm"
},
"2": {
"name": "entity.name.record.field.accessor.elm"
}
}
},
"infix_op": {
"match": "(</>|<\\?>|<\\||<=|\\|\\||&&|>=|\\|>|\\|=|\\|\\.|\\+\\+|::|/=|==|//|>>|<<|<|>|\\^|\\+|-|/|\\*)",
"name": "keyword.operator.elm"
},
"type-declaration": {
"begin": "^(type\\s+)([A-Z][a-zA-Z0-9_']*)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.type.elm"
},
"2": {
"name": "storage.type.elm"
}
},
"end": "^(?=\\S)",
"name": "meta.function.type-declaration.elm",
"patterns": [
{
"name": "meta.record.field.elm",
"match": "^\\s*([A-Z][a-zA-Z0-9_]*)\\b",
"captures": {
"1": {
"name": "constant.type-constructor.elm"
}
}
},
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"name": "meta.record.field.elm",
"match": "(\\=|\\|)\\s+([A-Z][a-zA-Z0-9_]*)\\b",
"captures": {
"1": {
"name": "keyword.operator.assignment.elm"
},
"2": {
"name": "constant.type-constructor.elm"
}
}
},
{
"match": "\\=",
"name": "keyword.operator.assignment.elm"
},
{
"match": "\\-\\>",
"name": "keyword.operator.arrow.elm"
},
{
"include": "#module-prefix"
},
{
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
"name": "variable.type.elm"
},
{
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
"name": "storage.type.elm"
},
{
"include": "#comments"
},
{
"include": "#type-record"
}
]
},
"type-alias-declaration": {
"begin": "^(type\\s+)(alias\\s+)([A-Z][a-zA-Z0-9_']*)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.type.elm"
},
"2": {
"name": "keyword.type-alias.elm"
},
"3": {
"name": "storage.type.elm"
}
},
"end": "^(?=\\S)",
"name": "meta.function.type-declaration.elm",
"patterns": [
{
"match": "\\n\\s+",
"name": "punctuation.spaces.elm"
},
{
"match": "\\=",
"name": "keyword.operator.assignment.elm"
},
{
"include": "#module-prefix"
},
{
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
"name": "storage.type.elm"
},
{
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
"name": "variable.type.elm"
},
{
"include": "#comments"
},
{
"include": "#type-record"
}
]
},
"type-record": {
"begin": "(\\{)",
"beginCaptures": {
"1": {
"name": "punctuation.section.braces.begin"
}
},
"end": "(\\})",
"endCaptures": {
"1": {
"name": "punctuation.section.braces.end"
}
},
"name": "meta.function.type-record.elm",
"patterns": [
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"match": "->",
"name": "keyword.operator.arrow.elm"
},
{
"name": "meta.record.field.elm",
"match": "([a-z][a-zA-Z0-9_]*)\\s+(\\:)",
"captures": {
"1": {
"name": "entity.name.record.field.elm"
},
"2": {
"name": "keyword.other.elm"
}
}
},
{
"match": "\\,",
"name": "punctuation.separator.comma.elm"
},
{
"include": "#module-prefix"
},
{
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
"name": "variable.type.elm"
},
{
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
"name": "storage.type.elm"
},
{
"include": "#comments"
},
{
"include": "#type-record"
}
]
},
"type-signature": {
"begin": "^(port\\s+)?([a-z_][a-zA-Z0-9_']*)\\s+(\\:)",
"beginCaptures": {
"1": {
"name": "keyword.other.port.elm"
},
"2": {
"name": "entity.name.function.elm"
},
"3": {
"name": "keyword.other.colon.elm"
}
},
"end": "((^(?=[a-z]))|^$)",
"name": "meta.function.type-declaration.elm",
"patterns": [
{
"include": "#type-signature-chunk"
}
]
},
"type-signature-chunk": {
"patterns": [
{
"match": "->",
"name": "keyword.operator.arrow.elm"
},
{
"match": "\\s+",
"name": "punctuation.spaces.elm"
},
{
"include": "#module-prefix"
},
{
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
"name": "variable.type.elm"
},
{
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
"name": "storage.type.elm"
},
{
"match": "\\(\\)",
"name": "constant.unit.elm"
},
{
"include": "#comma"
},
{
"include": "#parens"
},
{
"include": "#comments"
},
{
"include": "#type-record"
}
]
},
"glsl": {
"begin": "(\\[)(glsl)(\\|)",
"beginCaptures": {
"1": {
"name": "entity.glsl.bracket.elm"
},
"2": {
"name": "entity.glsl.name.elm"
},
"3": {
"name": "entity.glsl.bracket.elm"
}
},
"end": "(\\|\\])",
"endCaptures": {
"1": {
"name": "entity.glsl.bracket.elm"
}
},
"name": "meta.embedded.block.glsl",
"patterns": [
{
"include": "source.glsl"
}
]
}
}
}

153
node_modules/shiki/languages/erb.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,153 @@
{
"fileTypes": ["erb", "rhtml", "html.erb"],
"injections": {
"text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | comment)": {
"patterns": [
{
"begin": "(^\\s*)(?=<%+#(?![^%]*%>))",
"beginCaptures": {
"0": {
"name": "punctuation.whitespace.comment.leading.erb"
}
},
"end": "(?!\\G)(\\s*$\\n)?",
"endCaptures": {
"0": {
"name": "punctuation.whitespace.comment.trailing.erb"
}
},
"patterns": [
{
"include": "#comment"
}
]
},
{
"begin": "(^\\s*)(?=<%(?![^%]*%>))",
"beginCaptures": {
"0": {
"name": "punctuation.whitespace.embedded.leading.erb"
}
},
"end": "(?!\\G)(\\s*$\\n)?",
"endCaptures": {
"0": {
"name": "punctuation.whitespace.embedded.trailing.erb"
}
},
"patterns": [
{
"include": "#tags"
}
]
},
{
"include": "#comment"
},
{
"include": "#tags"
}
]
}
},
"keyEquivalent": "^~H",
"name": "erb",
"patterns": [
{
"include": "text.html.basic"
}
],
"repository": {
"comment": {
"patterns": [
{
"begin": "<%+#",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.erb"
}
},
"end": "%>",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.erb"
}
},
"name": "comment.block.erb"
}
]
},
"tags": {
"patterns": [
{
"begin": "<%+(?!>)[-=]?(?![^%]*%>)",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.erb"
}
},
"contentName": "source.ruby",
"end": "(-?%)>",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.erb"
},
"1": {
"name": "source.ruby"
}
},
"name": "meta.embedded.block.erb",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.erb"
}
},
"match": "(#).*?(?=-?%>)",
"name": "comment.line.number-sign.erb"
},
{
"include": "source.ruby"
}
]
},
{
"begin": "<%+(?!>)[-=]?",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.erb"
}
},
"contentName": "source.ruby",
"end": "(-?%)>",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.erb"
},
"1": {
"name": "source.ruby"
}
},
"name": "meta.embedded.line.erb",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.erb"
}
},
"match": "(#).*?(?=-?%>)",
"name": "comment.line.number-sign.erb"
},
{
"include": "source.ruby"
}
]
}
]
}
},
"scopeName": "text.html.erb",
"uuid": "13FF9439-15D0-4E74-9A8E-83ABF0BAA5E7"
}

1730
node_modules/shiki/languages/erlang.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

189
node_modules/shiki/languages/fish.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,189 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"fileTypes": ["fish"],
"firstLineMatch": "^#!.*\\bfish\\b",
"foldingStartMarker": "^\\s*(function|while|if|switch|for|begin)\\s.*$",
"foldingStopMarker": "^\\s*end\\s*$",
"keyEquivalent": "^~F",
"name": "fish",
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.fish"
}
},
"comment": "Double quoted string",
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.fish"
}
},
"name": "string.quoted.double.fish",
"patterns": [
{
"include": "#variable"
},
{
"comment": "https://fishshell.com/docs/current/#quotes",
"match": "\\\\(\\\"|\\$|$|\\\\)",
"name": "constant.character.escape.fish"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.fish"
}
},
"comment": "Single quoted string",
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.fish"
}
},
"name": "string.quoted.single.fish",
"patterns": [
{
"comment": "https://fishshell.com/docs/current/#quotes",
"match": "\\\\('|`|\\\\)",
"name": "constant.character.escape.fish"
}
]
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.fish"
}
},
"comment": "line comment",
"match": "(?<!\\$)(#)(?!\\{).*$\\n?",
"name": "comment.line.number-sign.fish"
},
{
"comment": "name of command, either a function or a binary",
"match": "(^\\s*|&&\\s*|\\|\\s*|\\(\\s*|[;]\\s*|\\b(if|while)\\b\\s+)(?!(?<!\\.)\\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\\b(?![?!]))([a-zA-Z_\\-0-9\\[\\].]+)",
"captures": {
"2": {
"name": "keyword.control.fish"
},
"4": {
"name": "support.function.command.fish"
}
}
},
{
"comment": "keywords that affect control flow",
"match": "(?<!\\.)\\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\\b(?![?!])",
"name": "keyword.control.fish"
},
{
"match": "(?<!\\.)\\bfunction\\b(?![?!])",
"name": "storage.type.fish"
},
{
"match": "\\|",
"name": "keyword.operator.pipe.fish"
},
{
"comment": "IO Redirection",
"match": "(?x:\n<|# Standard Input\n(>|\\^|>>|\\^\\^)(&[012\\-])?| # Redirection of stderr\n[012](<|>|>>)(&[012\\-])? # Redirect input/output of file descriptors\n)",
"name": "keyword.operator.redirect.fish"
},
{
"match": "&",
"name": "keyword.operator.background.fish"
},
{
"match": "\\*\\*|\\*|\\?",
"name": "keyword.operator.glob.fish"
},
{
"comment": "command short/long options",
"match": "\\s(-{1,2}[a-zA-Z_\\-0-9]+|-\\w)\\b",
"captures": {
"1": {
"name": "source.option.fish"
}
}
},
{
"include": "#variable"
},
{
"include": "#escape"
}
],
"repository": {
"escape": {
"patterns": [
{
"comment": "single character character escape sequences",
"match": "\\\\[abefnrtv $*?~#(){}\\[\\]<>^&|;\"']",
"name": "constant.character.escape.single.fish"
},
{
"comment": "escapes the ascii character with the specified value (hexadecimal)",
"match": "\\\\x[0-9a-fA-F]{1,2}",
"name": "constant.character.escape.hex-ascii.fish"
},
{
"comment": "escapes a byte of data with the specified value (hexadecimal). If you are using mutibyte encoding, this can be used to enter invalid strings. Only use this if you know what are doing.",
"match": "\\\\X[0-9a-fA-F]{1,2}",
"name": "constant.character.escape.hex-byte.fish"
},
{
"comment": "escapes the ascii character with the specified value (octal)",
"match": "\\\\[0-7]{1,3}",
"name": "constant.character.escape.octal.fish"
},
{
"comment": "escapes the 16-bit unicode character with the specified value (hexadecimal)",
"match": "\\\\u[0-9a-fA-F]{1,4}",
"name": "constant.character.escape.unicode-16-bit.fish"
},
{
"comment": "escapes the 32-bit unicode character with the specified value (hexadecimal)",
"match": "\\\\U[0-9a-fA-F]{1,8}",
"name": "constant.character.escape.unicode-32-bit.fish"
},
{
"comment": "escapes the control sequence generated by pressing the control key and the specified letter",
"match": "\\\\c[a-zA-Z]",
"name": "constant.character.escape.control.fish"
}
]
},
"variable": {
"patterns": [
{
"comment": "Built-in variables visible by pressing $ TAB TAB in a new shell",
"captures": {
"1": {
"name": "punctuation.definition.variable.fish"
}
},
"match": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b",
"name": "variable.language.fish"
},
{
"captures": {
"1": {
"name": "punctuation.definition.variable.fish"
}
},
"match": "(\\$)[a-zA-Z_][a-zA-Z0-9_]*",
"name": "variable.other.normal.fish"
}
]
}
},
"scopeName": "source.fish",
"uuid": "9CA6DB6F-A16F-4836-A058-617C7378775D"
}

1835
node_modules/shiki/languages/fsharp.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

326
node_modules/shiki/languages/gdresource.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,326 @@
{
"scopeName": "source.gdresource",
"uuid": "e076faa2-3c52-42fa-a8e6-9a7c453c1a5b",
"patterns": [
{
"include": "#embedded_shader"
},
{
"include": "#embedded_gdscript"
},
{
"include": "#comment"
},
{
"include": "#heading"
},
{
"include": "#key_value"
}
],
"repository": {
"comment": {
"captures": {
"1": {
"name": "punctuation.definition.comment.gdresource"
}
},
"match": "(;).*$\\n?",
"name": "comment.line.gdresource"
},
"embedded_shader": {
"name": "meta.embedded.block.gdshader",
"begin": "(code) = \"",
"end": "\"",
"beginCaptures": {
"1": {
"name": "variable.other.property.gdresource"
}
},
"patterns": [
{
"include": "source.gdshader"
}
]
},
"embedded_gdscript": {
"comment": "meta.embedded.block.gdscript",
"begin": "(script/source) = \"",
"end": "\"",
"beginCaptures": {
"1": {
"name": "variable.other.property.gdresource"
}
},
"patterns": [
{
"include": "source.gdscript"
}
]
},
"heading": {
"begin": "\\[([a-z_]*)\\s?",
"beginCaptures": {
"1": {
"name": "keyword.control.gdresource"
}
},
"end": "\\]",
"patterns": [
{
"include": "#heading_properties"
},
{
"include": "#data"
}
]
},
"heading_properties": {
"patterns": [
{
"name": "invalid.deprecated.noValue.gdresource",
"match": "(\\s*[A-Za-z_\\-][A-Za-z0-9_\\-]*\\s*=)(?=\\s*$)"
},
{
"begin": "\\s*([A-Za-z_-][^\\s]*|\".+\"|'.+'|[0-9]+)\\s*(=)\\s*",
"beginCaptures": {
"1": {
"name": "variable.other.property.gdresource"
},
"2": {
"name": "punctuation.definition.keyValue.gdresource"
}
},
"end": "($|(?==)|\\,?|\\s*(?=\\}))",
"patterns": [
{
"include": "#data"
}
]
}
]
},
"key_value": {
"patterns": [
{
"name": "invalid.deprecated.noValue.gdresource",
"match": "(\\s*[A-Za-z_\\-][A-Za-z0-9_\\-]*\\s*=)(?=\\s*$)"
},
{
"begin": "\\s*([A-Za-z_-][^\\s]*|\".+\"|'.+'|[0-9]+)\\s*(=)\\s*",
"beginCaptures": {
"1": {
"name": "variable.other.property.gdresource"
},
"2": {
"name": "punctuation.definition.keyValue.gdresource"
}
},
"end": "($|(?==)|\\,|\\s*(?=\\}))",
"patterns": [
{
"include": "#data"
}
]
}
]
},
"data": {
"patterns": [
{
"include": "#comment"
},
{
"begin": "(?<!\\w)(\\{)\\s*",
"beginCaptures": {
"1": {
"name": "punctuation.definition.table.inline.gdresource"
}
},
"end": "\\s*(\\})(?!\\w)",
"endCaptures": {
"1": {
"name": "punctuation.definition.table.inline.gdresource"
}
},
"patterns": [
{
"include": "#key_value"
},
{
"include": "#data"
}
]
},
{
"begin": "(?<!\\w)(\\[)\\s*",
"beginCaptures": {
"1": {
"name": "punctuation.definition.array.gdresource"
}
},
"end": "\\s*(\\])(?!\\w)",
"endCaptures": {
"1": {
"name": "punctuation.definition.array.gdresource"
}
},
"patterns": [
{
"include": "#data"
}
]
},
{
"name": "string.quoted.triple.basic.block.gdresource",
"begin": "\"\"\"",
"end": "\"\"\"",
"patterns": [
{
"match": "\\\\([btnfr\"\\\\\\n/ ]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})",
"name": "constant.character.escape.gdresource"
},
{
"match": "\\\\[^btnfr/\"\\\\\\n]",
"name": "invalid.illegal.escape.gdresource"
}
]
},
{
"name": "support.function.any-method.gdresource",
"match": "\"res:\\/\\/[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\""
},
{
"name": "support.class.library.gdresource",
"match": "(?<=type=)\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\""
},
{
"name": "constant.character.escape.gdresource",
"match": "(?<=NodePath\\(|parent=|name=)\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\""
},
{
"name": "string.quoted.double.basic.line.gdresource",
"match": "\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"",
"patterns": [
{
"match": "\\\\([btnfr\"\\\\\\n/ ]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})",
"name": "constant.character.escape.gdresource"
},
{
"match": "\\\\[^btnfr/\"\\\\\\n]",
"name": "invalid.illegal.escape.gdresource"
}
]
},
{
"name": "invalid.illegal.escape.gdresource",
"begin": "'''",
"end": "'''"
},
{
"name": "string.quoted.single.literal.line.gdresource",
"match": "'.*?'"
},
{
"match": "(?<!\\w)(true|false)(?!\\w)",
"captures": {
"1": {
"name": "constant.language.gdresource"
}
}
},
{
"match": "(?<!\\w)([\\+\\-]?(0|([1-9](([0-9]|_[0-9])+)?))(?:(?:\\.(0|([1-9](([0-9]|_[0-9])+)?)))?[eE][\\+\\-]?[1-9]_?[0-9]*|(?:\\.[0-9_]*)))(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.float.gdresource"
}
}
},
{
"match": "(?<!\\w)((?:[\\+\\-]?(0|([1-9](([0-9]|_[0-9])+)?))))(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.integer.gdresource"
}
}
},
{
"match": "(?<!\\w)([\\+\\-]?inf)(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.inf.gdresource"
}
}
},
{
"match": "(?<!\\w)([\\+\\-]?nan)(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.nan.gdresource"
}
}
},
{
"match": "(?<!\\w)((?:0x(([0-9a-fA-F](([0-9a-fA-F]|_[0-9a-fA-F])+)?))))(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.hex.gdresource"
}
}
},
{
"match": "(?<!\\w)(0o[0-7](_?[0-7])*)(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.oct.gdresource"
}
}
},
{
"match": "(?<!\\w)(0b[01](_?[01])*)(?!\\w)",
"captures": {
"1": {
"name": "constant.numeric.bin.gdresource"
}
}
},
{
"begin": "(?<!\\w)(Vector2|Vector2i|Vector3|Vector3i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|Object|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|StringName|Quaternion|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedColorArray)(\\()\\s?",
"beginCaptures": {
"1": {
"name": "support.class.library.gdresource"
}
},
"end": "\\s?(\\))",
"patterns": [
{
"include": "#key_value"
},
{
"include": "#data"
}
]
},
{
"begin": "(?<!\\w)(ExtResource|SubResource)(\\()\\s?",
"beginCaptures": {
"1": {
"name": "keyword.control.gdresource"
}
},
"end": "\\s?(\\))",
"patterns": [
{
"include": "#key_value"
},
{
"include": "#data"
}
]
}
]
}
},
"name": "gdresource"
}

883
node_modules/shiki/languages/gdscript.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,883 @@
{
"fileTypes": ["gd"],
"scopeName": "source.gdscript",
"name": "gdscript",
"patterns": [
{
"include": "#nodepath_object"
},
{
"include": "#nodepath_function"
},
{
"include": "#base_expression"
},
{
"include": "#logic_op"
},
{
"include": "#in_keyword"
},
{
"include": "#getter_setter_godot4"
},
{
"include": "#compare_op"
},
{
"include": "#arithmetic_op"
},
{
"include": "#assignment_op"
},
{
"include": "#lambda_declaration"
},
{
"include": "#control_flow"
},
{
"include": "#annotations"
},
{
"include": "#keywords"
},
{
"include": "#self"
},
{
"include": "#class_definition"
},
{
"include": "#variable_definition"
},
{
"include": "#class_name"
},
{
"include": "#builtin_func"
},
{
"include": "#builtin_get_node_shorthand"
},
{
"include": "#builtin_classes"
},
{
"include": "#const_vars"
},
{
"include": "#pascal_case_class"
},
{
"include": "#class_new"
},
{
"include": "#class_is"
},
{
"include": "#class_enum"
},
{
"include": "#signal_declaration_bare"
},
{
"include": "#signal_declaration"
},
{
"include": "#function_declaration"
},
{
"include": "#function_keyword"
},
{
"include": "#any_method"
},
{
"include": "#any_property"
},
{
"include": "#extends"
}
],
"repository": {
"comment": {
"captures": {
"1": {
"name": "punctuation.definition.comment.number-sign.gdscript"
}
},
"match": "(#).*$\\n?",
"name": "comment.line.number-sign.gdscript"
},
"strings": {
"patterns": [
{
"begin": "(?:(?<=get_node|has_node|find_node|get_node_or_null|NodePath)\\s*\\(\\s*)",
"end": "(?:\\s*\\))",
"patterns": [
{
"begin": "[\"']",
"end": "[\"']",
"name": "constant.character.escape"
},
{
"include": "#base_expression"
}
]
},
{
"name": "invalid.illegal.escape.gdscript",
"begin": "'''",
"end": "'''"
},
{
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.untitled",
"match": "\\\\."
}
],
"name": "string.quoted.double.gdscript"
},
{
"begin": "'",
"end": "'",
"patterns": [
{
"name": "constant.character.escape.untitled",
"match": "\\\\."
}
],
"name": "string.quoted.single.gdscript"
},
{
"begin": "@\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.untitled",
"match": "\\."
}
],
"name": "string.nodepath.gdscript"
}
]
},
"nodepath_object": {
"name": "meta.literal.nodepath.gdscript",
"begin": "(NodePath)\\s*(?:\\()",
"beginCaptures": {
"1": {
"name": "support.class.library.gdscript"
}
},
"end": "(?:\\))",
"patterns": [
{
"begin": "[\"']",
"end": "[\"']",
"name": "constant.character.escape",
"patterns": [
{
"match": "%",
"name": "keyword.control.flow"
}
]
}
]
},
"nodepath_function": {
"name": "meta.literal.nodepath.gdscript",
"begin": "(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(?:\\()",
"beginCaptures": {
"1": {
"name": "entity.name.function.gdscript"
}
},
"end": "(?:\\))",
"patterns": [
{
"begin": "[\"']",
"end": "[\"']",
"name": "constant.character.escape",
"patterns": [
{
"match": "%",
"name": "keyword.control.flow"
}
]
}
]
},
"self": {
"match": "\\bself\\b",
"name": "variable.language.gdscript"
},
"base_expression": {
"patterns": [
{
"include": "#builtin_get_node_shorthand"
},
{
"include": "#nodepath_object"
},
{
"include": "#nodepath_function"
},
{
"include": "#strings"
},
{
"include": "#keywords"
},
{
"include": "#logic_op"
},
{
"include": "#lambda_declaration"
},
{
"include": "#in_keyword"
},
{
"include": "#control_flow"
},
{
"include": "#function_call"
},
{
"include": "#comment"
},
{
"include": "#self"
},
{
"include": "#letter"
},
{
"include": "#numbers"
},
{
"include": "#builtin_func"
},
{
"include": "#builtin_classes"
},
{
"include": "#const_vars"
},
{
"include": "#pascal_case_class"
},
{
"include": "#line_continuation"
}
]
},
"logic_op": {
"match": "\\b(and|or|not)\\b",
"name": "keyword.operator.wordlike.gdscript"
},
"in_keyword": {
"patterns": [
{
"match": "\\b(for)\\s+[a-zA-Z_]\\w*\\s+(in)\\b",
"captures": {
"1": {
"name": "keyword.control.gdscript"
},
"2": {
"name": "keyword.control.gdscript"
}
}
},
{
"match": "\\bin\\b",
"name": "keyword.operator.wordlike.gdscript"
}
]
},
"compare_op": {
"match": "<=|>=|==|<|>|!=",
"name": "keyword.operator.comparison.gdscript"
},
"arithmetic_op": {
"match": "\\+=|-=|\\*=|/=|%=|&=|\\|=|\\*|/|%|\\+|-|<<|>>|&|\\||\\^|~",
"name": "keyword.operator.arithmetic.gdscript"
},
"assignment_op": {
"match": "=",
"name": "keyword.operator.assignment.gdscript"
},
"control_flow": {
"match": "\\b(?i:if|elif|else|for|while|break|continue|pass|return|match|yield|await)\\b",
"name": "keyword.control.gdscript"
},
"keywords": {
"match": "\\b(?i:class|class_name|extends|is|onready|tool|static|export|as|void|enum|preload|assert|breakpoint|rpc|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",
"name": "keyword.language.gdscript"
},
"letter": {
"match": "\\b(?i:true|false|null)\\b",
"name": "constant.language.gdscript"
},
"numbers": {
"patterns": [
{
"match": "\\b(?i:0x\\h*)\\b",
"name": "constant.numeric.integer.hexadecimal.gdscript"
},
{
"match": "\\b(?i:(\\d+\\.\\d*(e[\\-\\+]?\\d+)?))\\b",
"name": "constant.numeric.float.gdscript"
},
{
"match": "\\b(?i:(\\.\\d+(e[\\-\\+]?\\d+)?))\\b",
"name": "constant.numeric.float.gdscript"
},
{
"match": "\\b(?i:(\\d+e[\\-\\+]?\\d+))\\b",
"name": "constant.numeric.float.gdscript"
},
{
"match": "\\b\\d+\\b",
"name": "constant.numeric.integer.gdscript"
}
]
},
"variable_definition": {
"begin": "\\b(?:(var)|(const))\\s+",
"end": "$|;",
"beginCaptures": {
"1": {
"name": "storage.type.var.gdscript"
},
"2": {
"name": "storage.type.const.gdscript"
}
},
"patterns": [
{
"match": "(:)\\s*([a-zA-Z_]\\w*)?",
"captures": {
"1": {
"name": "punctuation.separator.annotation.gdscript"
},
"2": {
"name": "entity.name.type.class.gdscript"
}
}
},
{
"match": "=(?!=)",
"name": "keyword.operator.assignment.gdscript"
},
{
"match": "(setget)\\s+([a-zA-Z_]\\w*)(?:[,]\\s*([a-zA-Z_]\\w*))?",
"captures": {
"1": {
"name": "storage.type.const.gdscript"
},
"2": {
"name": "entity.name.function.gdscript"
},
"3": {
"name": "entity.name.function.gdscript"
}
}
},
{
"include": "#base_expression"
}
]
},
"getter_setter_godot4": {
"patterns": [
{
"match": "\\b(get):",
"captures": {
"1": {
"name": "entity.name.function.gdscript"
}
}
},
{
"name": "meta.function.gdscript",
"begin": "(?x) \\s+\n (set) \\s*\n (?=\\()",
"end": "(:|(?=[#'\"\\n]))",
"beginCaptures": {
"1": {
"name": "entity.name.function.gdscript"
}
},
"patterns": [
{
"include": "#parameters"
},
{
"include": "#line_continuation"
},
{
"match": "\\s*(\\-\\>)\\s*([a-zA-Z_]\\w*)\\s*\\:",
"captures": {
"1": {},
"2": {
"name": "entity.name.type.class.gdscript"
}
}
}
]
}
]
},
"class_definition": {
"captures": {
"1": {
"name": "entity.name.type.class.gdscript"
},
"2": {
"name": "class.other.gdscript"
}
},
"match": "(?<=^class)\\s+([a-zA-Z_]\\w*)\\s*(?=:)"
},
"class_new": {
"captures": {
"1": {
"name": "entity.name.type.class.gdscript"
},
"2": {
"name": "storage.type.new.gdscript"
}
},
"match": "\\b([a-zA-Z_]\\w*).(new)\\("
},
"class_is": {
"captures": {
"1": {
"name": "storage.type.is.gdscript"
},
"2": {
"name": "entity.name.type.class.gdscript"
}
},
"match": "\\s+(is)\\s+([a-zA-Z_]\\w*)"
},
"class_enum": {
"captures": {
"1": {
"name": "entity.name.type.class.gdscript"
},
"2": {
"name": "constant.language.gdscript"
}
},
"match": "\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)"
},
"class_name": {
"captures": {
"1": {
"name": "entity.name.type.class.gdscript"
},
"2": {
"name": "class.other.gdscript"
}
},
"match": "(?<=class_name)\\s+([a-zA-Z_]\\w*(\\.([a-zA-Z_]\\w*))?)"
},
"extends": {
"match": "(?<=extends)\\s+[a-zA-Z_]\\w*(\\.([a-zA-Z_]\\w*))?",
"name": "entity.other.inherited-class.gdscript"
},
"builtin_func": {
"match": "(?<![^.]\\.|:)\\b(abs|absf|absi|acos|asin|assert|atan|atan2|bytes2var|bytes2var_with_objects|ceil|char|clamp|clampf|clampi|Color8|convert|cos|cosh|cubic_interpolate|db2linear|decimals|dectime|deg2rad|dict2inst|ease|error_string|exp|floor|fmod|fposmod|funcref|get_stack|hash|inst2dict|instance_from_id|inverse_lerp|is_equal_approx|is_inf|is_instance_id_valid|is_instance_valid|is_nan|is_zero_approx|len|lerp|lerp_angle|linear2db|load|log|max|maxf|maxi|min|minf|mini|move_toward|nearest_po2|pingpong|posmod|pow|preload|print|printerr|printraw|prints|printt|print_debug|print_stack|print_verbose|push_error|push_warning|rad2deg|randf|randfn|randf_range|randi|randi_range|randomize|rand_from_seed|rand_range|rand_seed|range|range_lerp|range_step_decimals|rid_allocate_id|rid_from_int64|round|seed|sign|signf|signi|sin|sinh|smoothstep|snapped|sqrt|stepify|step_decimals|str|str2var|tan|tanh|typeof|type_exists|var2bytes|var2bytes_with_objects|var2str|weakref|wrapf|wrapi|yield)\\b(?=(\\()([^)]*)(\\)))",
"name": "support.function.builtin.gdscript"
},
"builtin_get_node_shorthand": {
"patterns": [
{
"include": "#builtin_get_node_shorthand_quoted"
},
{
"include": "#builtin_get_node_shorthand_bare"
}
]
},
"builtin_get_node_shorthand_quoted": {
"begin": "(\\$)([\"'])",
"end": "([\"'])",
"name": "support.function.builtin.shorthand.gdscript",
"beginCaptures": {
"1": {
"name": "keyword.control.flow"
},
"2": {
"name": "constant.character.escape"
}
},
"endCaptures": {
"1": {
"name": "constant.character.escape"
}
},
"patterns": [
{
"match": "%",
"name": "keyword.control.flow"
},
{
"match": "[^%^\"^']*",
"name": "constant.character.escape"
}
]
},
"builtin_get_node_shorthand_bare": {
"begin": "(\\$)",
"end": "[^\\w%]",
"name": "support.function.builtin.shorthand.gdscript",
"beginCaptures": {
"1": {
"name": "keyword.control.flow"
}
},
"patterns": [
{
"match": "[a-zA-Z_]\\w*/?",
"name": "constant.character.escape"
},
{
"match": "%[a-zA-Z_]\\w*/?",
"name": "invalid.illegal.escape.gdscript"
}
]
},
"annotations": {
"match": "(@)(export|export_color_no_alpha|export_dir|export_enum|export_exp_easing|export_file|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_global_dir|export_global_file|export_multiline|export_node_path|export_placeholder|export_range|icon|onready|rpc|tool|warning_ignore)\\b",
"captures": {
"1": {
"name": "entity.name.function.decorator.gdscript"
},
"2": {
"name": "entity.name.function.decorator.gdscript"
}
}
},
"builtin_classes": {
"match": "(?<![^.]\\.|:)\\b(OS|GDScript|Vector2|Vector2i|Vector3|Vector3i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|Object|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|StringName|Quaternion|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedColorArray|super)\\b",
"name": "support.class.library.gdscript"
},
"const_vars": {
"match": "\\b([A-Z_][A-Z_0-9]*)\\b",
"name": "constant.language.gdscript"
},
"pascal_case_class": {
"match": "\\b([A-Z][a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",
"name": "support.class.library.gdscript"
},
"signal_declaration_bare": {
"match": "(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*)(?=[\\n\\s])",
"captures": {
"1": {
"name": "storage.type.function.gdscript"
},
"2": {
"name": "entity.name.function.gdscript"
}
}
},
"signal_declaration": {
"name": "meta.signal.gdscript",
"begin": "(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()",
"end": "((?=[#'\"\\n]))",
"beginCaptures": {
"1": {
"name": "storage.type.function.gdscript"
},
"2": {
"name": "entity.name.function.gdscript"
}
},
"patterns": [
{
"include": "#parameters"
},
{
"include": "#line_continuation"
},
{
"match": "\\s*(\\-\\>)\\s*([a-zA-Z_]\\w*)\\s*\\:",
"captures": {
"1": {},
"2": {
"name": "entity.name.type.class.gdscript"
}
}
}
]
},
"lambda_declaration": {
"name": "meta.function.gdscript",
"begin": "(func)(?=\\()",
"end": "(:|(?=[#'\"\\n]))",
"beginCaptures": {
"1": {
"name": "storage.type.function.gdscript"
},
"2": {
"name": "entity.name.function.gdscript"
}
},
"patterns": [
{
"include": "#parameters"
},
{
"include": "#line_continuation"
}
]
},
"function_declaration": {
"name": "meta.function.gdscript",
"begin": "(?x) \\s*\n (func) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()",
"end": "((:)|(?=[#'\"\\n]))",
"beginCaptures": {
"1": {
"name": "storage.type.function.gdscript"
},
"2": {
"name": "entity.name.function.gdscript"
}
},
"endCaptures": {
"1": {
"name": "punctuation.section.function.begin.gdscript"
}
},
"patterns": [
{
"include": "#parameters"
},
{
"include": "#line_continuation"
},
{
"match": "\\s*(\\-\\>)\\s*([a-zA-Z_]\\w*)\\s*\\:",
"captures": {
"1": {},
"2": {
"name": "entity.name.type.class.gdscript"
}
}
},
{
"include": "#base_expression"
}
]
},
"function_keyword": {
"match": "func",
"name": "keyword.language.gdscript"
},
"parameters": {
"name": "meta.function.parameters.gdscript",
"begin": "(\\()",
"end": "(\\))",
"beginCaptures": {
"1": {
"name": "punctuation.definition.parameters.begin.gdscript"
}
},
"endCaptures": {
"1": {
"name": "punctuation.definition.parameters.end.gdscript"
}
},
"patterns": [
{
"include": "#annotated_parameter"
},
{
"match": "(?x)\n ([a-zA-Z_]\\w*)\n \\s* (?: (,) | (?=[)#\\n=]))\n",
"captures": {
"1": {
"name": "variable.parameter.function.language.gdscript"
},
"2": {
"name": "punctuation.separator.parameters.gdscript"
}
}
},
{
"include": "#comment"
},
{
"include": "#loose_default"
}
]
},
"loose_default": {
"begin": "(=)",
"end": "(,)|(?=\\))",
"beginCaptures": {
"1": {
"name": "keyword.operator.gdscript"
}
},
"endCaptures": {
"1": {
"name": "punctuation.separator.parameters.gdscript"
}
},
"patterns": [
{
"include": "#base_expression"
}
]
},
"annotated_parameter": {
"begin": "(?x)\n \\b\n ([a-zA-Z_]\\w*) \\s* (:)\n",
"end": "(,)|(?=\\))",
"beginCaptures": {
"1": {
"name": "variable.parameter.function.language.gdscript"
},
"2": {
"name": "punctuation.separator.annotation.gdscript"
}
},
"endCaptures": {
"1": {
"name": "punctuation.separator.parameters.gdscript"
}
},
"patterns": [
{
"include": "#base_expression"
},
{
"name": "keyword.operator.assignment.gdscript",
"match": "=(?!=)"
}
]
},
"line_continuation": {
"patterns": [
{
"match": "(\\\\)\\s*(\\S.*$\\n?)",
"captures": {
"1": {
"name": "punctuation.separator.continuation.line.gdscript"
},
"2": {
"name": "invalid.illegal.line.continuation.gdscript"
}
}
},
{
"begin": "(\\\\)\\s*$\\n?",
"end": "(?x)\n (?=^\\s*$)\n |\n (?! (\\s* [rR]? (\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))\n |\n (\\G $) (?# '\\G' is necessary for ST)\n )\n",
"beginCaptures": {
"1": {
"name": "punctuation.separator.continuation.line.gdscript"
}
},
"patterns": [
{
"include": "#base_expression"
}
]
}
]
},
"any_method": {
"match": "\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))",
"name": "support.function.any-method.gdscript"
},
"any_property": {
"match": "(?<=[^.]\\.)\\b([A-Za-z_]\\w*)\\b(?![(])",
"name": "variable.other.property.gdscript"
},
"function_call": {
"name": "meta.function-call.gdscript",
"comment": "Regular function call of the type \"name(args)\"",
"begin": "(?x)\n \\b(?=\n ([a-zA-Z_]\\w*) \\s* (\\()\n )\n",
"end": "(\\))",
"endCaptures": {
"1": {
"name": "punctuation.definition.arguments.end.gdscript"
}
},
"patterns": [
{
"include": "#function_name"
},
{
"include": "#function_arguments"
}
]
},
"function_name": {
"patterns": [
{
"include": "#builtin_func"
},
{
"include": "#builtin_classes"
},
{
"comment": "Some color schemas support meta.function-call.generic scope",
"name": "support.function.any-method.gdscript",
"match": "(?x)\n \\b ([a-zA-Z_]\\w*) \\b\n"
}
]
},
"function_arguments": {
"begin": "(\\()",
"end": "(?=\\))(?!\\)\\s*\\()",
"beginCaptures": {
"1": {
"name": "punctuation.definition.arguments.begin.gdscript"
}
},
"contentName": "meta.function-call.arguments.gdscript",
"patterns": [
{
"name": "punctuation.separator.arguments.gdscript",
"match": "(,)"
},
{
"match": "\\b([a-zA-Z_]\\w*)\\s*(=)(?!=)",
"captures": {
"1": {
"name": "variable.parameter.function-call.gdscript"
},
"2": {
"name": "keyword.operator.assignment.gdscript"
}
}
},
{
"name": "keyword.operator.assignment.gdscript",
"match": "=(?!=)"
},
{
"include": "#base_expression"
},
{
"match": "\\s*(\\))\\s*(\\()",
"captures": {
"1": {
"name": "punctuation.definition.arguments.end.gdscript"
},
"2": {
"name": "punctuation.definition.arguments.begin.gdscript"
}
}
}
]
}
}
}

403
node_modules/shiki/languages/gdshader.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,403 @@
{
"name": "gdshader",
"scopeName": "source.gdshader",
"uuid": "3a95d25d-688b-481f-a581-eee47f00e5ca",
"fileTypes": ["gdshader"],
"patterns": [
{
"include": "#any"
}
],
"repository": {
"any": {
"patterns": [
{
"include": "#comment"
},
{
"include": "#enclosed"
},
{
"include": "#classifier"
},
{
"include": "#definition"
},
{
"include": "#keyword"
},
{
"include": "#element"
},
{
"include": "#separator"
},
{
"include": "#operator"
}
]
},
"comment": {
"patterns": [
{
"include": "#commentLine"
},
{
"include": "#commentBlock"
}
]
},
"commentLine": {
"name": "comment.line.double-slash.gdshader",
"begin": "//",
"end": "$"
},
"commentBlock": {
"name": "comment.block.gdshader",
"begin": "/\\*",
"end": "\\*/"
},
"enclosed": {
"name": "meta.parenthesis.gdshader",
"begin": "\\(",
"end": "\\)",
"captures": {
"0": {
"name": "punctuation.parenthesis.gdshader"
}
},
"patterns": [
{
"include": "#any"
}
]
},
"classifier": {
"name": "meta.classifier.gdshader",
"begin": "(?=\\b(?:shader_type|render_mode)\\b)",
"patterns": [
{
"include": "#comment"
},
{
"include": "#keyword"
},
{
"include": "#identifierClassification"
},
{
"include": "#separator"
}
],
"end": "(?<=;)"
},
"classifierKeyword": {
"name": "keyword.language.classifier.gdshader",
"match": "\\b(?:shader_type|render_mode)\\b"
},
"identifierClassification": {
"name": "entity.other.inherited-class.gdshader",
"match": "\\b[a-z_]+\\b"
},
"definition": {
"patterns": [
{
"include": "#structDefinition"
}
]
},
"arraySize": {
"name": "meta.array-size.gdshader",
"begin": "\\[",
"end": "\\]",
"captures": {
"0": {
"name": "punctuation.bracket.gdshader"
}
},
"patterns": [
{
"include": "#comment"
},
{
"include": "#keyword"
},
{
"include": "#element"
},
{
"include": "#separator"
}
]
},
"structDefinition": {
"begin": "(?=\\b(?:struct)\\b)",
"patterns": [
{
"include": "#comment"
},
{
"include": "#keyword"
},
{
"include": "#structName"
},
{
"include": "#structDefinitionBlock"
},
{
"include": "#separator"
}
],
"end": "(?<=;)"
},
"structKeyword": {
"name": "keyword.other.struct.gdshader",
"match": "\\b(?:struct)\\b"
},
"structName": {
"name": "entity.name.type.struct.gdshader",
"match": "\\b[a-zA-Z_]\\w*\\b"
},
"structDefinitionBlock": {
"name": "meta.definition.block.struct.gdshader",
"begin": "\\{",
"end": "\\}",
"captures": {
"0": {
"name": "punctuation.definition.block.struct.gdshader"
}
},
"patterns": [
{
"include": "#comment"
},
{
"include": "#precisionKeyword"
},
{
"include": "#fieldDefinition"
},
{
"include": "#keyword"
},
{
"include": "#any"
}
]
},
"fieldDefinition": {
"name": "meta.definition.field.gdshader",
"begin": "\\b[a-zA-Z_]\\w*\\b",
"beginCaptures": {
"0": {
"patterns": [
{
"include": "#typeKeyword"
},
{
"match": ".+",
"name": "entity.name.type.gdshader"
}
]
}
},
"patterns": [
{
"include": "#comment"
},
{
"include": "#keyword"
},
{
"include": "#arraySize"
},
{
"include": "#fieldName"
},
{
"include": "#any"
}
],
"end": "(?<=;)"
},
"fieldName": {
"name": "entity.name.variable.field.gdshader",
"match": "\\b[a-zA-Z_]\\w*\\b"
},
"keyword": {
"patterns": [
{
"include": "#classifierKeyword"
},
{
"include": "#structKeyword"
},
{
"include": "#controlKeyword"
},
{
"include": "#modifierKeyword"
},
{
"include": "#precisionKeyword"
},
{
"include": "#typeKeyword"
},
{
"include": "#hintKeyword"
}
]
},
"controlKeyword": {
"name": "keyword.control.gdshader",
"match": "\\b(?:if|else|do|while|for|continue|break|switch|case|default|return|discard)\\b"
},
"modifierKeyword": {
"name": "storage.modifier.gdshader",
"match": "\\b(?:const|global|instance|uniform|varying|in|out|inout|flat|smooth)\\b"
},
"precisionKeyword": {
"name": "storage.type.built-in.primitive.precision.gdshader",
"match": "\\b(?:low|medium|high)p\\b"
},
"typeKeyword": {
"name": "support.type.gdshader",
"match": "\\b(?:void|bool|[biu]?vec[234]|u?int|float|mat[234]|[iu]?sampler(?:3D|2D(?:Array)?)|samplerCube)\\b"
},
"hintKeyword": {
"name": "support.type.annotation.gdshader",
"match": "\\b(?:source_color|hint_(?:color|range|(?:black_)?albedo|normal|(?:default_)?(?:white|black)|aniso|anisotropy|roughness_(?:[rgba]|normal|gray))|filter_(?:nearest|linear)(?:_mipmap(?:_anisotropic)?)?|repeat_(?:en|dis)able)\\b"
},
"element": {
"patterns": [
{
"include": "#literalFloat"
},
{
"include": "#literalInt"
},
{
"include": "#literalBool"
},
{
"include": "#identifierType"
},
{
"include": "#constructor"
},
{
"include": "#processorFunction"
},
{
"include": "#identifierFunction"
},
{
"include": "#swizzling"
},
{
"include": "#identifierField"
},
{
"include": "#constantFloat"
},
{
"include": "#languageVariable"
},
{
"include": "#identifierVariable"
}
]
},
"literalFloat": {
"name": "constant.numeric.float.gdshader",
"match": "\\b(?:\\d+[eE][-+]?\\d+|(?:\\d*[.]\\d+|\\d+[.])(?:[eE][-+]?\\d+)?)[fF]?"
},
"literalInt": {
"name": "constant.numeric.integer.gdshader",
"match": "\\b(?:0[xX][0-9A-Fa-f]+|\\d+[uU]?)\\b"
},
"literalBool": {
"name": "constant.language.boolean.gdshader",
"match": "\\b(?:false|true)\\b"
},
"identifierType": {
"name": "entity.name.type.gdshader",
"match": "\\b[a-zA-Z_]\\w*(?=(?:\\s*\\[\\s*\\w*\\s*\\])?\\s+[a-zA-Z_]\\w*\\b)"
},
"constructor": {
"name": "entity.name.type.constructor.gdshader",
"match": "\\b[a-zA-Z_]\\w*(?=\\s*\\[\\s*\\w*\\s*\\]\\s*[(])|\\b[A-Z]\\w*(?=\\s*[(])"
},
"processorFunction": {
"name": "support.function.gdshader",
"match": "\\b(?:vertex|fragment|light|start|process|sky|fog)(?=(?:\\s|/\\*(?:\\*(?!/)|[^*])*\\*/)*[(])"
},
"identifierFunction": {
"name": "entity.name.function.gdshader",
"match": "\\b[a-zA-Z_]\\w*(?=(?:\\s|/\\*(?:\\*(?!/)|[^*])*\\*/)*[(])"
},
"swizzling": {
"match": "([.])\\s*([xyzw]{2,4}|[rgba]{2,4}|[stpq]{2,4})\\b",
"captures": {
"1": {
"name": "punctuation.accessor.gdshader"
},
"2": {
"name": "variable.other.property.gdshader"
}
}
},
"identifierField": {
"match": "([.])\\s*([a-zA-Z_]\\w*)\\b(?!\\s*\\()",
"captures": {
"1": {
"name": "punctuation.accessor.gdshader"
},
"2": {
"name": "entity.name.variable.field.gdshader"
}
}
},
"constantFloat": {
"name": "constant.language.float.gdshader",
"match": "\\b(?:E|PI|TAU)\\b"
},
"languageVariable": {
"name": "variable.language.gdshader",
"match": "\\b(?:[A-Z][A-Z_0-9]*)\\b"
},
"identifierVariable": {
"name": "variable.name.gdshader",
"match": "\\b[a-zA-Z_]\\w*\\b"
},
"separator": {
"patterns": [
{
"match": "[.]",
"name": "punctuation.accessor.gdshader"
},
{
"include": "#separatorComma"
},
{
"match": "[;]",
"name": "punctuation.terminator.statement.gdshader"
},
{
"match": "[:]",
"name": "keyword.operator.type.annotation.gdshader"
}
]
},
"separatorComma": {
"name": "punctuation.separator.comma.gdshader",
"match": "[,]"
},
"operator": {
"name": "keyword.operator.gdshader",
"match": "\\<\\<\\=?|\\>\\>\\=?|[-+*/&|<>=!]\\=|\\&\\&|[|][|]|[-+~!*/%<>&^|=]"
}
}
}

132
node_modules/shiki/languages/gherkin.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,132 @@
{
"fileTypes": ["feature"],
"firstLineMatch": "기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Функция|Функциональность|Свойство|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Ability|Business Need|Feature|Egenskap|Egenskab|Crikey|Característica|Arwedd(.*)",
"foldingStartMarker": "^\\s*\\b(예|시나리오 개요|시나리오|배경|背景|場景大綱|場景|场景大纲|场景|劇本大綱|劇本|例子|例|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|シナリオ|サンプル|سيناريو مخطط|سيناريو|امثلة|الخلفية|תרחיש|תבנית תרחיש|רקע|דוגמאות|Тарих|Сценарій|Сценарији|Сценарио|Сценарий структураси|Сценарий|Структура сценарію|Структура сценарија|Структура сценария|Скица|Рамка на сценарий|Примери|Пример|Приклади|Предыстория|Предистория|Позадина|Передумова|Основа|Мисоллар|Концепт|Контекст|Значения|Örnekler|Założenia|Wharrimean is|Voorbeelden|Variantai|Tình huống|The thing of it is|Tausta|Taust|Tapausaihio|Tapaus|Tapaukset|Szenariogrundriss|Szenario|Szablon scenariusza|Stsenaarium|Struktura scenarija|Skica|Skenario konsep|Skenario|Situācija|Senaryo taslağı|Senaryo|Scénář|Scénario|Schema dello scenario|Scenārijs pēc parauga|Scenārijs|Scenár|Scenariusz|Scenariul de şablon|Scenariul de sablon|Scenariu|Scenarios|Scenario Outline|Scenario Amlinellol|Scenario|Example|Scenarijus|Scenariji|Scenarijaus šablonas|Scenarijai|Scenarij|Scenarie|Rerefons|Raamstsenaarium|Příklady|Példák|Príklady|Przykłady|Primjeri|Primeri|Primer|Pozadí|Pozadina|Pozadie|Plan du scénario|Plan du Scénario|Piemēri|Pavyzdžiai|Paraugs|Osnova scénáře|Osnova|Náčrt Scénáře|Náčrt Scenáru|Mate|MISHUN SRSLY|MISHUN|Kịch bản|Kontext|Konteksts|Kontekstas|Kontekst|Koncept|Khung tình huống|Khung kịch bản|Juhtumid|Háttér|Grundlage|Geçmiş|Forgatókönyv vázlat|Forgatókönyv|Exemplos|Exemples|Exemplele|Exempel|Examples|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esempi|Escenario|Escenari|Enghreifftiau|Eksempler|Ejemplos|EXAMPLZ|Dữ liệu|Dis is what went down|Dasar|Contoh|Contexto|Contexte|Contesto|Condiţii|Conditii|Cobber|Cenário|Cenario|Cefndir|Bối cảnh|Blokes|Beispiele|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|All y'all|Achtergrond|Abstrakt Scenario|Abstract Scenario|Rule|Regla|Règle|Regel|Regra)",
"foldingStopMarker": "^\\s*$",
"keyEquivalent": "^~C",
"name": "gherkin",
"patterns": [
{
"include": "#feature_element_keyword"
},
{
"include": "#feature_keyword"
},
{
"include": "#step_keyword"
},
{
"include": "#strings_triple_quote"
},
{
"include": "#strings_single_quote"
},
{
"include": "#strings_double_quote"
},
{
"include": "#comments"
},
{
"include": "#tags"
},
{
"include": "#scenario_outline_variable"
},
{
"include": "#table"
}
],
"repository": {
"comments": {
"captures": {
"0": {
"name": "comment.line.number-sign"
}
},
"match": "^\\s*(#.*)"
},
"table": {
"begin": "^\\s*\\|",
"end": "\\|\\s*$",
"name": "keyword.control.cucumber.table",
"patterns": [
{
"match": "\\w",
"name": "source"
}
]
},
"feature_keyword": {
"captures": {
"1": {
"name": "keyword.language.gherkin.feature"
},
"2": {
"name": "string.language.gherkin.feature.title"
}
},
"match": "^\\s*(기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Функция|Функциональность|Свойство|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Ability|Business Need|Feature|Ability|Egenskap|Egenskab|Crikey|Característica|Arwedd):(.*)\\b"
},
"step_keyword": {
"captures": {
"1": {
"name": "keyword.language.gherkin.feature.step"
}
},
"match": "^\\s*(En |و |Y |E |Եվ |Ya |Too right |Və |Həm |A |И |而且 |并且 |同时 |並且 |同時 |Ak |Epi |A také |Og |😂 |And |Kaj |Ja |Et que |Et qu' |Et |და |Und |Και |અને |וגם |और |तथा |És |Dan |Agus |かつ |Lan |ಮತ್ತು |'ej |latlh |그리고 |AN |Un |Ir |an |a |Мөн |Тэгээд |Ond |7 |ਅਤੇ |Aye |Oraz |Si |Și |Şi |К тому же |Также |An |A tiež |A taktiež |A zároveň |In |Ter |Och |மேலும் |மற்றும் |Һәм |Вә |మరియు |และ |Ve |І |А також |Та |اور |Ва |Và |Maar |لكن |Pero |Բայց |Peru |Yeah nah |Amma |Ancaq |Ali |Но |Però |但是 |Men |Ale |😔 |But |Sed |Kuid |Mutta |Mais que |Mais qu' |Mais |მაგ­რამ |Aber |Αλλά |પણ |אבל |पर |परन्तु |किन्तु |De |En |Tapi |Ach |Ma |しかし |但し |ただし |Nanging |Ananging |ಆದರೆ |'ach |'a |하지만 |단 |BUT |Bet |awer |mä |No |Tetapi |Гэхдээ |Харин |Ac |ਪਰ |اما |Avast! |Mas |Dar |А |Иначе |Buh |Али |Toda |Ampak |Vendar |ஆனால் |Ләкин |Әмма |కాని |แต่ |Fakat |Ama |Але |لیکن |Лекин |Бирок |Аммо |Nhưng |Ond |Dan |اذاً |ثم |Alavez |Allora |Antonces |Ապա |Entós |But at the end of the day I reckon |O halda |Zatim |То |Aleshores |Cal |那么 |那麼 |Lè sa a |Le sa a |Onda |Pak |Så |🙏 |Then |Do |Siis |Niin |Alors |Entón |Logo |მაშინ |Dann |Τότε |પછી |אז |אזי |तब |तदा |Akkor |Þá |Maka |Ansin |ならば |Njuk |Banjur |ನಂತರ |vaj |그러면 |DEN |Tad |Tada |dann |Тогаш |Togash |Kemudian |Тэгэхэд |Үүний дараа |Tha |Þa |Ða |Tha the |Þa þe |Ða ðe |ਤਦ |آنگاه |Let go and haul |Wtedy |Então |Entao |Atunci |Затем |Тогда |Dun |Den youse gotta |Онда |Tak |Potom |Nato |Potem |Takrat |Entonces |அப்பொழுது |Нәтиҗәдә |అప్పుడు |ดังนั้น |O zaman |Тоді |پھر |تب |Унда |Thì |Yna |Wanneer |متى |عندما |Cuan |Եթե |Երբ |Cuando |It's just unbelievable |Əgər |Nə vaxt ki |Kada |Когато |Quan |当 |當 |Lè |Le |Kad |Když |Når |Als |🎬 |When |Se |Kui |Kun |Quand |Lorsque |Lorsqu' |Cando |როდესაც |Wenn |Όταν |ક્યારે |כאשר |जब |कदा |Majd |Ha |Amikor |Þegar |Ketika |Nuair a |Nuair nach |Nuair ba |Nuair nár |Quando |もし |Manawa |Menawa |ಸ್ಥಿತಿಯನ್ನು |qaSDI' |만일 |만약 |WEN |Ja |Kai |wann |Кога |Koga |Apabila |Хэрэв |Tha |Þa |Ða |ਜਦੋਂ |هنگامی |Blimey! |Jeżeli |Jeśli |Gdy |Kiedy |Cand |Când |Когда |Если |Wun |Youse know like when |Када |Кад |Keď |Ak |Ko |Ce |Če |Kadar |När |எப்போது |Әгәр |ఈ పరిస్థితిలో |เมื่อ |Eğer ki |Якщо |Коли |جب |Агар |Khi |Pryd |Gegewe |بفرض |Dau |Dada |Daus |Dadas |Դիցուք |Dáu |Daos |Daes |Y'know |Tutaq ki |Verilir |Dato |Дадено |Donat |Donada |Atès |Atesa |假如 |假设 |假定 |假設 |Sipoze |Sipoze ke |Sipoze Ke |Zadan |Zadani |Zadano |Pokud |Za předpokladu |Givet |Gegeven |Stel |😐 |Given |Donitaĵo |Komence |Eeldades |Oletetaan |Soit |Etant donné que |Etant donné qu' |Etant donné |Etant donnée |Etant donnés |Etant données |Étant donné que |Étant donné qu' |Étant donné |Étant donnée |Étant donnés |Étant données |Dado |Dados |მოცემული |Angenommen |Gegeben sei |Gegeben seien |Δεδομένου |આપેલ છે |בהינתן |अगर |यदि |चूंकि |Amennyiben |Adott |Ef |Dengan |Cuir i gcás go |Cuir i gcás nach |Cuir i gcás gur |Cuir i gcás nár |Data |Dati |Date |前提 |Nalika |Nalikaning |ನೀಡಿದ |ghu' noblu' |DaH ghu' bejlu' |조건 |먼저 |I CAN HAZ |Kad |Duota |ugeholl |Дадена |Dadeno |Dadena |Diberi |Bagi |Өгөгдсөн нь |Анх |Gitt |Thurh |Þurh |Ðurh |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |با فرض |Gangway! |Zakładając |Mając |Zakładając, że |Date fiind |Dat fiind |Dată fiind |Dati fiind |Dați fiind |Daţi fiind |Допустим |Дано |Пусть |Givun |Youse know when youse got |За дато |За дате |За дати |Za dato |Za date |Za dati |Pokiaľ |Za predpokladu |Dano |Podano |Zaradi |Privzeto |கொடுக்கப்பட்ட |Әйтик |చెప్పబడినది |กำหนดให้ |Diyelim ki |Припустимо |Припустимо, що |Нехай |اگر |بالفرض |فرض کیا |Агар |Biết |Cho |Anrhegedig a |\\* )"
},
"feature_element_keyword": {
"captures": {
"1": {
"name": "keyword.language.gherkin.feature.scenario"
},
"2": {
"name": "string.language.gherkin.scenario.title.title"
}
},
"match": "^\\s*(예|시나리오 개요|시나리오|배경|背景|場景大綱|場景|场景大纲|场景|劇本大綱|劇本|例子|例|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|シナリオ|サンプル|سيناريو مخطط|سيناريو|امثلة|الخلفية|תרחיש|תבנית תרחיש|רקע|דוגמאות|Тарих|Сценарій|Сценарији|Сценарио|Сценарий структураси|Сценарий|Структура сценарію|Структура сценарија|Структура сценария|Скица|Рамка на сценарий|Примери|Пример|Приклади|Предыстория|Предистория|Позадина|Передумова|Основа|Мисоллар|Концепт|Контекст|Значения|Örnekler|Założenia|Wharrimean is|Voorbeelden|Variantai|Tình huống|The thing of it is|Tausta|Taust|Tapausaihio|Tapaus|Tapaukset|Szenariogrundriss|Szenario|Szablon scenariusza|Stsenaarium|Struktura scenarija|Skica|Skenario konsep|Skenario|Situācija|Senaryo taslağı|Senaryo|Scénář|Scénario|Schema dello scenario|Scenārijs pēc parauga|Scenārijs|Scenár|Scenariusz|Scenariul de şablon|Scenariul de sablon|Scenariu|Scenarios|Scenario Outline|Scenario Amlinellol|Scenario|Example|Scenarijus|Scenariji|Scenarijaus šablonas|Scenarijai|Scenarij|Scenarie|Rerefons|Raamstsenaarium|Příklady|Példák|Príklady|Przykłady|Primjeri|Primeri|Primer|Pozadí|Pozadina|Pozadie|Plan du scénario|Plan du Scénario|Piemēri|Pavyzdžiai|Paraugs|Osnova scénáře|Osnova|Náčrt Scénáře|Náčrt Scenáru|Mate|MISHUN SRSLY|MISHUN|Kịch bản|Kontext|Konteksts|Kontekstas|Kontekst|Koncept|Khung tình huống|Khung kịch bản|Juhtumid|Háttér|Grundlage|Geçmiş|Forgatókönyv vázlat|Forgatókönyv|Exemplos|Exemples|Exemplele|Exempel|Examples|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esempi|Escenario|Escenari|Enghreifftiau|Eksempler|Ejemplos|EXAMPLZ|Dữ liệu|Dis is what went down|Dasar|Contoh|Contexto|Contexte|Contesto|Condiţii|Conditii|Cobber|Cenário|Cenario|Cefndir|Bối cảnh|Blokes|Beispiele|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|All y'all|Achtergrond|Abstrakt Scenario|Abstract Scenario|Rule|Regla|Règle|Regel|Regra):(.*)"
},
"scenario_outline_variable": {
"match": "<[a-zA-Z0-9 _-]*>",
"name": "variable.other"
},
"strings_double_quote": {
"begin": "(?<![a-zA-Z0-9'])\"",
"end": "\"(?![a-zA-Z0-9'])",
"name": "string.quoted.double",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.untitled"
}
]
},
"strings_single_quote": {
"begin": "(?<![a-zA-Z0-9\"])'",
"end": "'(?![a-zA-Z0-9\"])",
"name": "string.quoted.single",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape"
}
]
},
"strings_triple_quote": {
"begin": "\"\"\".*",
"end": "\"\"\"",
"name": "string.quoted.single"
},
"tags": {
"captures": {
"0": {
"name": "entity.name.type.class.tsx"
}
},
"match": "(@[^@\\r\\n\\t ]+)"
}
},
"scopeName": "text.gherkin.feature",
"uuid": "85E2C52C-9B16-4A54-81E7-6D8D3ADAEFA8"
}

View file

@ -0,0 +1,90 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/walles/git-commit-message-plus/blob/master/syntaxes/git-commit.tmLanguage.json",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/walles/git-commit-message-plus/commit/35a079dea5a91b087021b40c01a6bb4eb0337a87",
"name": "git-commit",
"scopeName": "text.git-commit",
"patterns": [
{
"comment": "diff presented at the end of the commit message when using commit -v.",
"name": "meta.embedded.diff.git-commit",
"contentName": "source.diff",
"begin": "(?=^diff\\ \\-\\-git)",
"end": "\\z",
"patterns": [
{
"include": "source.diff"
}
]
},
{
"comment": "User supplied message",
"name": "meta.scope.message.git-commit",
"begin": "^(?!#)",
"end": "^(?=#)",
"patterns": [
{
"comment": "Mark > 50 lines as deprecated, > 72 as illegal",
"name": "meta.scope.subject.git-commit",
"match": "\\G.{0,50}(.{0,22}(.*))$",
"captures": {
"1": {
"name": "invalid.deprecated.line-too-long.git-commit"
},
"2": {
"name": "invalid.illegal.line-too-long.git-commit"
}
}
}
]
},
{
"comment": "Git supplied metadata in a number of lines starting with #",
"name": "meta.scope.metadata.git-commit",
"begin": "^(?=#)",
"contentName": "comment.line.number-sign.git-commit",
"end": "^(?!#)",
"patterns": [
{
"match": "^#\\t((modified|renamed):.*)$",
"captures": {
"1": {
"name": "markup.changed.git-commit"
}
}
},
{
"match": "^#\\t(new file:.*)$",
"captures": {
"1": {
"name": "markup.inserted.git-commit"
}
}
},
{
"match": "^#\\t(deleted.*)$",
"captures": {
"1": {
"name": "markup.deleted.git-commit"
}
}
},
{
"comment": "Fallback for non-English git commit template",
"match": "^#\\t([^:]+): *(.*)$",
"captures": {
"1": {
"name": "keyword.other.file-type.git-commit"
},
"2": {
"name": "string.unquoted.filename.git-commit"
}
}
}
]
}
]
}

View file

@ -0,0 +1,61 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/textmate/git.tmbundle/blob/master/Syntaxes/Git%20Rebase%20Message.tmLanguage",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/textmate/git.tmbundle/commit/5870cf3f8abad3a6637bdf69250b5d2ded427dc4",
"name": "git-rebase",
"scopeName": "text.git-rebase",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.git-rebase"
}
},
"match": "^\\s*(#).*$\\n?",
"name": "comment.line.number-sign.git-rebase"
},
{
"captures": {
"1": {
"name": "support.function.git-rebase"
},
"2": {
"name": "constant.sha.git-rebase"
},
"3": {
"name": "meta.commit-message.git-rebase"
}
},
"match": "^\\s*(pick|p|reword|r|edit|e|squash|s|fixup|f|drop|d)\\s+([0-9a-f]+)\\s+(.*)$",
"name": "meta.commit-command.git-rebase"
},
{
"captures": {
"1": {
"name": "support.function.git-rebase"
},
"2": {
"patterns": [
{
"include": "source.shell"
}
]
}
},
"match": "^\\s*(exec|x)\\s+(.*)$",
"name": "meta.commit-command.git-rebase"
},
{
"captures": {
"1": {
"name": "support.function.git-rebase"
}
},
"match": "^\\s*(break|b)\\s*$",
"name": "meta.commit-command.git-rebase"
}
]
}

View file

@ -0,0 +1,98 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "glimmer-js",
"scopeName": "source.gjs",
"patterns": [
{
"include": "source.js"
}
],
"injections": {
"L:source.gjs -comment": {
"patterns": [
{
"name": "meta.js.embeddedTemplateWithoutArgs",
"begin": "\\s*(<)(template)\\s*(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"name": "meta.js.embeddedTemplateWithArgs",
"begin": "(<)(template)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"begin": "(?<=\\<template)",
"end": "(?=\\>)",
"patterns": [
{
"include": "text.html.handlebars#tag-stuff"
}
]
},
{
"begin": "(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.end.js"
}
},
"end": "(?=</template>)",
"contentName": "meta.html.embedded.block",
"patterns": [
{
"include": "text.html.handlebars"
}
]
}
]
}
]
}
}
}

View file

@ -0,0 +1,98 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "glimmer-ts",
"scopeName": "source.gts",
"patterns": [
{
"include": "source.ts"
}
],
"injections": {
"L:source.gts -comment": {
"patterns": [
{
"name": "meta.js.embeddedTemplateWithoutArgs",
"begin": "\\s*(<)(template)\\s*(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"name": "meta.js.embeddedTemplateWithArgs",
"begin": "(<)(template)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"begin": "(?<=\\<template)",
"end": "(?=\\>)",
"patterns": [
{
"include": "text.html.handlebars#tag-stuff"
}
]
},
{
"begin": "(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.end.js"
}
},
"end": "(?=</template>)",
"contentName": "meta.html.embedded.block",
"patterns": [
{
"include": "text.html.handlebars"
}
]
}
]
}
]
}
}
}

58
node_modules/shiki/languages/glsl.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,58 @@
{
"fileTypes": [
"vs",
"fs",
"gs",
"vsh",
"fsh",
"gsh",
"vshader",
"fshader",
"gshader",
"vert",
"frag",
"geom",
"f.glsl",
"v.glsl",
"g.glsl"
],
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
"keyEquivalent": "^~G",
"name": "glsl",
"patterns": [
{
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b",
"name": "keyword.control.glsl"
},
{
"match": "\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1|2|3]D|samplerCube|sampler2DRect|sampler[1|2]DShadow|sampler2DRectShadow|sampler[1|2]DArray|sampler[1|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1|2|3]D|isamplerCube|isampler2DRect|isampler[1|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1|2|3]D|usamplerCube|usampler2DRect|usampler[1|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\b",
"name": "storage.type.glsl"
},
{
"match": "\\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\\b",
"name": "storage.modifier.glsl"
},
{
"match": "\\b(gl_BackColor|gl_BackLightModelProduct|gl_BackLightProduct|gl_BackMaterial|gl_BackSecondaryColor|gl_ClipDistance|gl_ClipPlane|gl_ClipVertex|gl_Color|gl_DepthRange|gl_DepthRangeParameters|gl_EyePlaneQ|gl_EyePlaneR|gl_EyePlaneS|gl_EyePlaneT|gl_Fog|gl_FogCoord|gl_FogFragCoord|gl_FogParameters|gl_FragColor|gl_FragCoord|gl_FragDat|gl_FragDept|gl_FrontColor|gl_FrontFacing|gl_FrontLightModelProduct|gl_FrontLightProduct|gl_FrontMaterial|gl_FrontSecondaryColor|gl_InstanceID|gl_Layer|gl_LightModel|gl_LightModelParameters|gl_LightModelProducts|gl_LightProducts|gl_LightSource|gl_LightSourceParameters|gl_MaterialParameters|gl_ModelViewMatrix|gl_ModelViewMatrixInverse|gl_ModelViewMatrixInverseTranspose|gl_ModelViewMatrixTranspose|gl_ModelViewProjectionMatrix|gl_ModelViewProjectionMatrixInverse|gl_ModelViewProjectionMatrixInverseTranspose|gl_ModelViewProjectionMatrixTranspose|gl_MultiTexCoord[0-7]|gl_Normal|gl_NormalMatrix|gl_NormalScale|gl_ObjectPlaneQ|gl_ObjectPlaneR|gl_ObjectPlaneS|gl_ObjectPlaneT|gl_Point|gl_PointCoord|gl_PointParameters|gl_PointSize|gl_Position|gl_PrimitiveIDIn|gl_ProjectionMatrix|gl_ProjectionMatrixInverse|gl_ProjectionMatrixInverseTranspose|gl_ProjectionMatrixTranspose|gl_SecondaryColor|gl_TexCoord|gl_TextureEnvColor|gl_TextureMatrix|gl_TextureMatrixInverse|gl_TextureMatrixInverseTranspose|gl_TextureMatrixTranspose|gl_Vertex|gl_VertexIDh)\\b",
"name": "support.variable.glsl"
},
{
"match": "\\b(gl_MaxClipPlanes|gl_MaxCombinedTextureImageUnits|gl_MaxDrawBuffers|gl_MaxFragmentUniformComponents|gl_MaxLights|gl_MaxTextureCoords|gl_MaxTextureImageUnits|gl_MaxTextureUnits|gl_MaxVaryingFloats|gl_MaxVertexAttribs|gl_MaxVertexTextureImageUnits|gl_MaxVertexUniformComponents)\\b",
"name": "support.constant.glsl"
},
{
"match": "\\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp|exp2|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log|log2|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\\b",
"name": "support.function.glsl"
},
{
"match": "\\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\\b",
"name": "invalid.illegal.glsl"
},
{
"include": "source.c"
}
],
"scopeName": "source.glsl",
"uuid": "D0FD1B52-F137-4FBA-A148-B8A893CD948C"
}

887
node_modules/shiki/languages/gnuplot.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,887 @@
{
"name": "gnuplot",
"scopeName": "source.gnuplot",
"uuid": "A75AB1C2-611C-4500-9EE4-20668B5BB465",
"fileTypes": ["gp", "plt", "plot", "gnuplot"],
"patterns": [
{
"name": "invalid.illegal.backslash.gnuplot",
"match": "(\\\\(?!\\n).*)"
},
{
"name": "punctuation.separator.statement.gnuplot",
"match": "(;)"
},
{
"include": "#LineComment"
},
{
"include": "#DataBlock"
},
{
"include": "#MacroExpansion"
},
{
"include": "#VariableDecl"
},
{
"include": "#ArrayDecl"
},
{
"include": "#FunctionDecl"
},
{
"include": "#ShellCommand"
},
{
"include": "#Command"
}
],
"repository": {
"DataBlock": {
"name": "meta.datablock.gnuplot",
"begin": "(?x:\n\t\t\t\t([$][A-Za-z_]\\w*)\\s* # 1: var name\n\t\t\t\t(<<)\\s* # 2: shift operator\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 3: end tag\n\t\t\t\t(?=(\\#|$)) # 4: comment or end of line\n\t\t\t)",
"beginCaptures": {
"1": {
"patterns": [
{
"include": "#SpecialVariable"
}
]
},
"3": {
"name": "constant.language.datablock.gnuplot"
}
},
"end": "^(\\3)\\b(.*)",
"endCaptures": {
"1": {
"name": "constant.language.datablock.gnuplot"
},
"2": {
"name": "invalid.illegal.datablock.gnuplot"
}
},
"patterns": [
{
"include": "#LineComment"
},
{
"include": "#NumberLiteral"
},
{
"include": "#DoubleQuotedStringLiteral"
}
]
},
"MacroExpansion": {
"begin": "([@][A-Za-z_]\\w*)",
"beginCaptures": {
"1": {
"patterns": [
{
"include": "#SpecialVariable"
}
]
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
"VariableDecl": {
"name": "meta.variable.gnuplot",
"begin": "\\b(?x:\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 1: var name\n\t\t\t\t(?:\n\t\t\t\t\t(\\[)\\s* # 2: opening bracket\n\t\t\t\t\t(.*)\\s* # 3: expression\n\t\t\t\t\t(\\])\\s* # 4: closing bracket\n\t\t\t\t)?\n\t\t\t\t(?=(=)(?!\\s*=)) # 5: assignment\n\t\t\t)",
"beginCaptures": {
"1": {
"name": "entity.name.variable.gnuplot",
"patterns": [
{
"include": "#InvalidVariableDecl"
},
{
"include": "#BuiltinVariable"
}
]
},
"3": {
"patterns": [
{
"include": "#Expression"
}
]
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
"ArrayDecl": {
"name": "meta.variable.gnuplot",
"begin": "\\b(?x:\n\t\t\t\t(array)\\s+ # 1: array keyword\n\t\t\t\t([A-Za-z_]\\w*)? # 2: var name\n\t\t\t\t# Note: Handle size decl and init expression inside.\n\t\t\t\t# TODO: Properly annotate brackets.\n\t\t\t)",
"beginCaptures": {
"1": {
"name": "support.type.array.gnuplot"
},
"2": {
"name": "entity.name.variable.gnuplot",
"patterns": [
{
"include": "#InvalidVariableDecl"
},
{
"include": "#BuiltinVariable"
}
]
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
"FunctionDecl": {
"name": "meta.function.gnuplot",
"begin": "\\b(?x:\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 1: func name\n\t\t\t\t( # 2: parameter list\n\t\t\t\t\t(\\()\\s* # 3: opening parens\n\t\t\t\t\t([A-Za-z_]\\w*)\\s* # 4: arg name\n\t\t\t\t\t(?:\n\t\t\t\t\t\t(,)\\s* # 5: comma\n\t\t\t\t\t\t([A-Za-z_]\\w*)\\s* # 6: other args\n\t\t\t\t\t)*\n\t\t\t\t\t(\\)) # 7: closing parens\n\t\t\t\t)\n\t\t\t)",
"beginCaptures": {
"1": {
"name": "entity.name.function.gnuplot",
"patterns": [
{
"include": "#BuiltinFunction"
}
]
},
"2": {
"name": "meta.function.parameters.gnuplot"
},
"3": {
"name": "punctuation.definition.parameters.begin.gnuplot"
},
"4": {
"name": "variable.parameter.function.language.gnuplot"
},
"5": {
"name": "punctuation.separator.parameters.gnuplot"
},
"6": {
"name": "variable.parameter.function.language.gnuplot"
},
"7": {
"name": "punctuation.definition.parameters.end.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
"InvalidVariableDecl": {
"name": "invalid.illegal.variable.gnuplot",
"match": "\\b(GPVAL_\\w*|MOUSE_\\w*)\\b"
},
"ShellCommand": {
"begin": "(!)",
"beginCaptures": {
"1": {
"name": "keyword.other.shell.gnuplot"
}
},
"end": "(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"name": "string.unquoted",
"match": "([^#]|\\\\(?=\\n))"
}
]
},
"Command": {
"patterns": [
{
"name": "invalid.deprecated.command.gnuplot",
"begin": "\\b(?x:\n\t\t\t\t\t\tupdate\n\t\t\t\t\t)\\b",
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))"
},
{
"begin": "\\b(?x:\n\t\t\t\t\t\tbreak |\n\t\t\t\t\t\tclear |\n\t\t\t\t\t\tcontinue |\n\t\t\t\t\t\tpwd |\n\t\t\t\t\t\trefresh |\n\t\t\t\t\t\treplot |\n\t\t\t\t\t\treread |\n\t\t\t\t\t\tshell\n\t\t\t\t\t)\\b",
"beginCaptures": {
"0": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#InvalidWord"
}
]
},
{
"begin": "\\b(?x:\n\t\t\t\t\t\tcd |\n\t\t\t\t\t\tcall |\n\t\t\t\t\t\teval |\n\t\t\t\t\t\texit |\n\t\t\t\t\t\thelp |\n\t\t\t\t\t\thistory |\n\t\t\t\t\t\tload |\n\t\t\t\t\t\tlower |\n\t\t\t\t\t\tpause |\n\t\t\t\t\t\tprint |\n\t\t\t\t\t\tprinterr |\n\t\t\t\t\t\tquit |\n\t\t\t\t\t\traise |\n\t\t\t\t\t\tsave |\n\t\t\t\t\t\tstats |\n\t\t\t\t\t\tsystem |\n\t\t\t\t\t\ttest |\n\t\t\t\t\t\ttoggle\n\t\t\t\t\t)\\b",
"beginCaptures": {
"0": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
{
"begin": "\\b(import)\\s(.+)\\s(from)",
"beginCaptures": {
"1": {
"name": "keyword.control.import.gnuplot"
},
"2": {
"patterns": [
{
"include": "#FunctionDecl"
}
]
},
"3": {
"name": "keyword.control.import.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#SingleQuotedStringLiteral"
},
{
"include": "#DoubleQuotedStringLiteral"
},
{
"include": "#InvalidWord"
}
]
},
{
"begin": "\\b(reset)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"name": "support.class.reset.gnuplot",
"match": "\\b(bind|error(state)?|session)\\b"
},
{
"include": "#InvalidWord"
}
]
},
{
"begin": "\\b(undefine)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#BuiltinVariable"
},
{
"include": "#BuiltinFunction"
},
{
"name": "source.gnuplot",
"match": "(?<=\\s)([$]?[A-Za-z_]\\w*\\*?)(?=\\s)"
},
{
"include": "#InvalidWord"
}
]
},
{
"begin": "\\b(if|while)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.conditional.gnuplot"
}
},
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#Expression"
}
]
},
{
"begin": "\\b(else)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.conditional.gnuplot"
}
},
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))"
},
{
"begin": "\\b(do)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.flow.gnuplot"
}
},
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#ForIterationExpr"
}
]
},
{
"begin": "\\b(set)(?=\\s+pm3d)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"name": "invalid.deprecated.options.gnuplot",
"match": "\\b(hidden3d|map|transparent|solid)\\b"
},
{
"include": "#SetUnsetOptions"
},
{
"include": "#ForIterationExpr"
},
{
"include": "#Expression"
}
]
},
{
"begin": "\\b((un)?set)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#SetUnsetOptions"
},
{
"include": "#ForIterationExpr"
},
{
"include": "#Expression"
}
]
},
{
"begin": "\\b(show)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#ExtraShowOptions"
},
{
"include": "#SetUnsetOptions"
},
{
"include": "#Expression"
}
]
},
{
"begin": "\\b(fit|(s)?plot)\\b",
"beginCaptures": {
"1": {
"name": "keyword.other.command.gnuplot"
}
},
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
"patterns": [
{
"include": "#ColumnIndexLiteral"
},
{
"include": "#PlotModifiers"
},
{
"include": "#ForIterationExpr"
},
{
"include": "#Expression"
}
]
}
]
},
"SetUnsetOptions": {
"patterns": [
{
"name": "invalid.deprecated.options.gnuplot",
"match": "\\G\\s*\\b(?x:\n\t\t\t\t\t\tclabel |\n\t\t\t\t\t\tdata |\n\t\t\t\t\t\tfunction |\n\t\t\t\t\t\thistorysize |\n\t\t\t\t\t\tmacros |\n\t\t\t\t\t\tticslevel |\n\t\t\t\t\t\tticscale |\n\t\t\t\t\t\t(style\\s+increment\\s+\\w+)\n\t\t\t\t\t)\\b"
},
{
"name": "support.class.options.gnuplot",
"match": "\\G\\s*\\b(?x:\n\t\t\t\t\t\tangles |\n\t\t\t\t\t\tarrow |\n\t\t\t\t\t\tautoscale |\n\t\t\t\t\t\tborder |\n\t\t\t\t\t\tboxwidth |\n\t\t\t\t\t\tclip |\n\t\t\t\t\t\tcntr(label|param) |\n\t\t\t\t\t\tcolor(box|sequence)?|\n\t\t\t\t\t\tcontour |\n\t\t\t\t\t\t(dash|line)type |\n\t\t\t\t\t\tdatafile |\n\t\t\t\t\t\tdecimal(sign)? |\n\t\t\t\t\t\tdgrid3d |\n\t\t\t\t\t\tdummy |\n\t\t\t\t\t\tencoding |\n\t\t\t\t\t\t(error)?bars |\n\t\t\t\t\t\tfit |\n\t\t\t\t\t\tfontpath |\n\t\t\t\t\t\tformat |\n\t\t\t\t\t\tgrid |\n\t\t\t\t\t\thidden3d |\n\t\t\t\t\t\thistory |\n\t\t\t\t\t\t(iso)?samples |\n\t\t\t\t\t\tjitter |\n\t\t\t\t\t\tkey |\n\t\t\t\t\t\tlabel |\n\t\t\t\t\t\tlink |\n\t\t\t\t\t\tloadpath |\n\t\t\t\t\t\tlocale |\n\t\t\t\t\t\tlogscale |\n\t\t\t\t\t\tmapping |\n\t\t\t\t\t\t[lrtb]margin |\n\t\t\t\t\t\tmargins |\n\t\t\t\t\t\tmicro |\n\t\t\t\t\t\tminus(sign)? |\n\t\t\t\t\t\tmono(chrome)? |\n\t\t\t\t\t\tmouse |\n\t\t\t\t\t\tmultiplot |\n\t\t\t\t\t\tnonlinear |\n\t\t\t\t\t\tobject |\n\t\t\t\t\t\toffsets |\n\t\t\t\t\t\torigin |\n\t\t\t\t\t\toutput |\n\t\t\t\t\t\tparametric |\n\t\t\t\t\t\t(p|r)axis |\n\t\t\t\t\t\tpm3d |\n\t\t\t\t\t\tpalette |\n\t\t\t\t\t\tpointintervalbox |\n\t\t\t\t\t\tpointsize |\n\t\t\t\t\t\tpolar |\n\t\t\t\t\t\tprint |\n\t\t\t\t\t\tpsdir |\n\t\t\t\t\t\tsize |\n\t\t\t\t\t\tstyle |\n\t\t\t\t\t\tsurface |\n\t\t\t\t\t\ttable |\n\t\t\t\t\t\tterminal |\n\t\t\t\t\t\ttermoption |\n\t\t\t\t\t\ttheta |\n\t\t\t\t\t\ttics |\n\t\t\t\t\t\ttimestamp |\n\t\t\t\t\t\ttimefmt |\n\t\t\t\t\t\ttitle |\n\t\t\t\t\t\tview |\n\t\t\t\t\t\txyplane |\n\t\t\t\t\t\tzero |\n\t\t\t\t\t\t(no)?(m)?(x|x2|y|y2|z|cb|r|t)tics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)data |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb|r)label |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)dtics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)mtics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb|[rtuv])range |\n\t\t\t\t\t\t(x|x2|y|y2|z)?zeroaxis\n\t\t\t\t\t)\\b"
}
]
},
"ExtraShowOptions": {
"name": "support.class.options.gnuplot",
"match": "\\b(?x:\n\t\t\t\tall |\n\t\t\t\tbind |\n\t\t\t\tcolornames |\n\t\t\t\tfunctions |\n\t\t\t\tplot |\n\t\t\t\tvariables |\n\t\t\t\tversion\n\t\t\t)\\b"
},
"PlotModifiers": {
"patterns": [
{
"name": "invalid.deprecated.plot.gnuplot",
"match": "\\b(thru)\\b"
},
{
"name": "storage.type.plot.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tin(dex)? |\n\t\t\t\t\t\tevery |\n\t\t\t\t\t\tus(ing)? |\n\t\t\t\t\t\twi(th)? |\n\t\t\t\t\t\tvia\n\t\t\t\t\t)\\b"
},
{
"name": "storage.type.plot.gnuplot",
"match": "\\b(newhist(ogram)?)\\b"
}
]
},
"InvalidWord": {
"name": "invalid.illegal.gnuplot",
"match": "([^;#\\\\[:space:]]+)"
},
"Expression": {
"patterns": [
{
"include": "#Literal"
},
{
"include": "#SpecialVariable"
},
{
"include": "#BuiltinVariable"
},
{
"include": "#BuiltinOperator"
},
{
"include": "#TernaryExpr"
},
{
"include": "#FunctionCallExpr"
},
{
"include": "#SummationExpr"
}
]
},
"ForIterationExpr": {
"begin": "\\b(?x:\n\t\t\t\t(for)\\s* # 1: for keyword\n\t\t\t\t(\\[)\\s* # 2: opening bracket\n\t\t\t\t(?: # optionally\n\t\t\t\t\t([A-Za-z_]\\w*)\\s+ # 3: var name\n\t\t\t\t\t(in)\\b # 4: in keyword\n\t\t\t\t)?\n\t\t\t)",
"beginCaptures": {
"1": {
"name": "keyword.control.flow.gnuplot"
},
"2": {
"patterns": [
{
"include": "#RangeSeparators"
}
]
},
"3": {
"name": "variable.other.iterator.gnuplot"
},
"4": {
"name": "keyword.control.flow.gnuplot"
}
},
"end": "((\\])|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
"endCaptures": {
"2": {
"patterns": [
{
"include": "#RangeSeparators"
}
]
}
},
"patterns": [
{
"include": "#Expression"
},
{
"include": "#RangeSeparators"
}
]
},
"SummationExpr": {
"begin": "\\b(sum)\\s*(\\[)",
"beginCaptures": {
"1": {
"name": "keyword.other.sum.gnuplot"
},
"2": {
"patterns": [
{
"include": "#RangeSeparators"
}
]
}
},
"end": "((\\])|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
"endCaptures": {
"2": {
"patterns": [
{
"include": "#RangeSeparators"
}
]
}
},
"patterns": [
{
"include": "#Expression"
},
{
"include": "#RangeSeparators"
}
]
},
"FunctionCallExpr": {
"name": "meta.function-call.gnuplot",
"begin": "\\b([A-Za-z_]\\w*)\\s*(\\()",
"beginCaptures": {
"1": {
"name": "variable.function.gnuplot",
"patterns": [
{
"include": "#BuiltinFunction"
}
]
},
"2": {
"name": "punctuation.definition.arguments.begin.gnuplot"
}
},
"end": "((\\))|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
"endCaptures": {
"2": {
"name": "punctuation.definition.arguments.end.gnuplot"
}
},
"patterns": [
{
"include": "#Expression"
}
]
},
"TernaryExpr": {
"begin": "(?<!\\?)(\\?)(?!\\?)",
"beginCaptures": {
"1": {
"name": "keyword.operator.ternary.gnuplot"
}
},
"end": "((?<!:)(:)(?!:)|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
"endCaptures": {
"2": {
"name": "keyword.operator.ternary.gnuplot"
}
},
"patterns": [
{
"include": "#Expression"
}
]
},
"RangeSeparators": {
"patterns": [
{
"name": "punctuation.section.brackets.begin.gnuplot",
"match": "(\\[)"
},
{
"name": "punctuation.separator.range.gnuplot",
"match": "(:)"
},
{
"name": "punctuation.section.brackets.end.gnuplot",
"match": "(\\])"
}
]
},
"BuiltinOperator": {
"patterns": [
{
"name": "keyword.operator.logical.gnuplot",
"match": "(&&|\\|\\|)"
},
{
"name": "keyword.operator.bitwise.gnuplot",
"match": "(<<|>>|&|\\||\\^)"
},
{
"name": "keyword.operator.comparison.gnuplot",
"match": "(==|!=|<=|<|>=|>)"
},
{
"name": "keyword.operator.assignment.gnuplot",
"match": "(=)"
},
{
"name": "keyword.operator.arithmetic.gnuplot",
"match": "(\\+|-|~|!)"
},
{
"name": "keyword.operator.arithmetic.gnuplot",
"match": "(\\*\\*|\\+|-|\\*|/|%)"
},
{
"name": "keyword.operator.strings.gnuplot",
"match": "(\\.|\\b(eq|ne)\\b)",
"captures": {
"2": {
"name": "keyword.operator.word.gnuplot"
}
}
}
]
},
"BuiltinVariable": {
"patterns": [
{
"name": "invalid.deprecated.variable.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tFIT_LIMIT |\n\t\t\t\t\t\tFIT_MAXITER |\n\t\t\t\t\t\tFIT_START_LAMBDA |\n\t\t\t\t\t\tFIT_LAMBDA_FACTOR |\n\t\t\t\t\t\tFIT_SKIP |\n\t\t\t\t\t\tFIT_INDEX\n\t\t\t\t\t)\\b"
},
{
"name": "support.constant.gnuplot",
"match": "\\b(GPVAL_\\w*|MOUSE_\\w*)\\b"
},
{
"name": "support.variable.gnuplot",
"match": "\\b(ARG[0-9C]|GPFUN_\\w*|FIT_\\w*|STATS_\\w*|pi|NaN)\\b"
}
]
},
"SpecialVariable": {
"patterns": [
{
"match": "(?<=[\\[:=])\\s*(\\*)\\s*(?=[:\\]])",
"captures": {
"1": {
"name": "constant.language.wildcard.gnuplot"
}
}
},
{
"name": "constant.language.special.gnuplot",
"match": "(([@$])[A-Za-z_]\\w*)\\b",
"captures": {
"2": {
"name": "punctuation.definition.variable.gnuplot"
}
}
}
]
},
"BuiltinFunction": {
"patterns": [
{
"name": "invalid.deprecated.function.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tdefined\n\t\t\t\t\t)\\b"
},
{
"name": "support.function.math.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tabs |\n\t\t\t\t\t\tacos |\n\t\t\t\t\t\tacosh |\n\t\t\t\t\t\tairy |\n\t\t\t\t\t\targ |\n\t\t\t\t\t\tasin |\n\t\t\t\t\t\tasinh |\n\t\t\t\t\t\tatan |\n\t\t\t\t\t\tatan2 |\n\t\t\t\t\t\tatanh |\n\t\t\t\t\t\tEllipticK |\n\t\t\t\t\t\tEllipticE |\n\t\t\t\t\t\tEllipticPi |\n\t\t\t\t\t\tbesj0 |\n\t\t\t\t\t\tbesj1 |\n\t\t\t\t\t\tbesy0 |\n\t\t\t\t\t\tbesy1 |\n\t\t\t\t\t\tceil |\n\t\t\t\t\t\tcos |\n\t\t\t\t\t\tcosh |\n\t\t\t\t\t\terf |\n\t\t\t\t\t\terfc |\n\t\t\t\t\t\texp |\n\t\t\t\t\t\texpint |\n\t\t\t\t\t\tfloor |\n\t\t\t\t\t\tgamma |\n\t\t\t\t\t\tibeta |\n\t\t\t\t\t\tinverf |\n\t\t\t\t\t\tigamma |\n\t\t\t\t\t\timag |\n\t\t\t\t\t\tinvnorm |\n\t\t\t\t\t\tint |\n\t\t\t\t\t\tlambertw |\n\t\t\t\t\t\tlgamma |\n\t\t\t\t\t\tlog |\n\t\t\t\t\t\tlog10 |\n\t\t\t\t\t\tnorm |\n\t\t\t\t\t\trand |\n\t\t\t\t\t\treal |\n\t\t\t\t\t\tsgn |\n\t\t\t\t\t\tsin |\n\t\t\t\t\t\tsinh |\n\t\t\t\t\t\tsqrt |\n\t\t\t\t\t\ttan |\n\t\t\t\t\t\ttanh |\n\t\t\t\t\t\tvoigt |\n\t\t\t\t\t\tcerf |\n\t\t\t\t\t\tcdawson |\n\t\t\t\t\t\tfaddeeva |\n\t\t\t\t\t\terfi |\n\t\t\t\t\t\tVP\n\t\t\t\t\t)\\b"
},
{
"name": "support.function.string.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tgprintf |\n\t\t\t\t\t\tsprintf |\n\t\t\t\t\t\tstrlen |\n\t\t\t\t\t\tstrstrt |\n\t\t\t\t\t\tsubstr |\n\t\t\t\t\t\tstrftime |\n\t\t\t\t\t\tstrptime |\n\t\t\t\t\t\tsystem |\n\t\t\t\t\t\tword |\n\t\t\t\t\t\twords\n\t\t\t\t\t)\\b"
},
{
"name": "support.function.other.gnuplot",
"match": "\\b(?x:\n\t\t\t\t\t\tcolumn |\n\t\t\t\t\t\tcolumnhead |\n\t\t\t\t\t\texists |\n\t\t\t\t\t\thsv2rgb |\n\t\t\t\t\t\tstringcolumn |\n\t\t\t\t\t\ttimecolumn |\n\t\t\t\t\t\ttm_hour |\n\t\t\t\t\t\ttm_mday |\n\t\t\t\t\t\ttm_min |\n\t\t\t\t\t\ttm_mon |\n\t\t\t\t\t\ttm_sec |\n\t\t\t\t\t\ttm_wday |\n\t\t\t\t\t\ttm_yday |\n\t\t\t\t\t\ttm_year |\n\t\t\t\t\t\ttime |\n\t\t\t\t\t\tvalid |\n\t\t\t\t\t\tvalue\n\t\t\t\t\t)\\b"
}
]
},
"Literal": {
"patterns": [
{
"include": "#NumberLiteral"
},
{
"include": "#DeprecatedScriptArgsLiteral"
},
{
"include": "#SingleQuotedStringLiteral"
},
{
"include": "#DoubleQuotedStringLiteral"
},
{
"include": "#InterpolatedStringLiteral"
}
]
},
"NumberLiteral": {
"patterns": [
{
"name": "constant.numeric.float.gnuplot",
"match": "(?x:\n\t\t\t\t\t\t# .5e2 and 0.5e2\n\t\t\t\t\t\t( ((\\b[0-9]+)|(?<!\\d)) ) # number or not a preceding digit\n\t\t\t\t\t\t( [.][0-9]+ ) # non-optional fractional\n\t\t\t\t\t\t( [Ee][+-]?[0-9]+ )? # optional exponent\n\t\t\t\t\t)(cm|in)?\\b"
},
{
"name": "constant.numeric.float.gnuplot",
"match": "(?x:\n\t\t\t\t\t\t# 5e2 and 5.e2\n\t\t\t\t\t\t( \\b[0-9]+ ) # non-optional number\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t( ( [Ee][+-]?[0-9]+\\b ) ) | # non-optional exponent\n\t\t\t\t\t\t\t( [.] ( [Ee][+-]?[0-9]+\\b )? ) # point and optional exponent\n\t\t\t\t\t\t)\n\t\t\t\t\t)(cm\\b|in\\b)?"
},
{
"name": "constant.numeric.hex.gnuplot",
"match": "\\b(0[Xx][0-9a-fA-F]+)(cm|in)?\\b"
},
{
"name": "constant.numeric.dec.gnuplot",
"match": "\\b(0+)(cm|in)?\\b"
},
{
"name": "constant.numeric.oct.gnuplot",
"match": "\\b(0[0-7]+)(cm|in)?\\b"
},
{
"name": "invalid.illegal.oct.gnuplot",
"match": "\\b(0[0-9]+)(cm|in)?\\b"
},
{
"name": "constant.numeric.dec.gnuplot",
"match": "\\b([0-9]+)(cm|in)?\\b"
}
]
},
"ColumnIndexLiteral": {
"name": "support.constant.columnindex.gnuplot",
"match": "([$][0-9]+)\\b"
},
"DeprecatedScriptArgsLiteral": {
"name": "invalid.illegal.scriptargs.gnuplot",
"match": "([$][0-9#])"
},
"SingleQuotedStringLiteral": {
"name": "string.quoted.single.gnuplot",
"begin": "(')",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.gnuplot"
}
},
"end": "((')(?!')|(?=(?<!\\\\)\\n$))",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.gnuplot"
}
},
"patterns": [
{
"include": "#RGBColorSpec"
},
{
"name": "constant.character.escape.gnuplot",
"match": "('')"
}
]
},
"DoubleQuotedStringLiteral": {
"name": "string.quoted.double.gnuplot",
"begin": "(\")",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.gnuplot"
}
},
"end": "((\")|(?=(?<!\\\\)\\n$))",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.gnuplot"
}
},
"patterns": [
{
"include": "#EscapedChar"
},
{
"include": "#RGBColorSpec"
},
{
"include": "#DeprecatedScriptArgsLiteral"
},
{
"include": "#InterpolatedStringLiteral"
}
]
},
"InterpolatedStringLiteral": {
"name": "string.interpolated.gnuplot",
"begin": "(`)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.gnuplot"
}
},
"end": "((`)|(?=(?<!\\\\)\\n$))",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.gnuplot"
}
},
"patterns": [
{
"include": "#EscapedChar"
}
]
},
"RGBColorSpec": {
"name": "constant.other.placeholder.gnuplot",
"match": "\\G(0x|#)(([0-9a-fA-F]{6})|([0-9a-fA-F]{8}))\\b"
},
"EscapedChar": {
"name": "constant.character.escape.gnuplot",
"match": "(\\\\.)"
},
"LineComment": {
"name": "comment.line.number-sign.gnuplot",
"begin": "(#)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.begin.gnuplot"
}
},
"end": "(?=(?<!\\\\)\\n$)",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.gnuplot"
}
}
}
}
}

1017
node_modules/shiki/languages/go.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

1289
node_modules/shiki/languages/graphql.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

1383
node_modules/shiki/languages/groovy.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

2645
node_modules/shiki/languages/hack.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

596
node_modules/shiki/languages/haml.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,596 @@
{
"fileTypes": ["haml", "html.haml"],
"foldingStartMarker": "^\\s*([-%#\\:\\.\\w\\=].*)\\s$",
"foldingStopMarker": "^\\s*$",
"keyEquivalent": "^~H",
"name": "haml",
"patterns": [
{
"begin": "^(\\s*)==",
"contentName": "string.quoted.double.ruby",
"end": "$\\n*",
"patterns": [
{
"include": "#interpolated_ruby"
}
]
},
{
"begin": "^(\\s*):ruby",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.ruby.embedded.filter.haml",
"patterns": [
{
"include": "source.ruby"
}
]
},
{
"captures": {
"1": {
"name": "punctuation.definition.prolog.haml"
}
},
"match": "^(!!!)($|\\s.*)",
"name": "meta.prolog.haml"
},
{
"begin": "^(\\s*):javascript",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "js.haml",
"patterns": [
{
"include": "source.js"
}
]
},
{
"begin": "^(\\s*)%script",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "js.inline.haml",
"patterns": [
{
"include": "source.js"
}
]
},
{
"begin": "^(\\s*):ruby$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.ruby.embedded.filter.haml",
"patterns": [
{
"include": "source.ruby"
}
]
},
{
"captures": {
"1": {
"name": "punctuation.section.comment.haml"
}
},
"match": "^(\\s*)(\\/\\[[^\\]].*?$\\n?)",
"name": "comment.line.slash.haml"
},
{
"begin": "^(\\s*)(\\-\\#|\\/|\\-\\s*\\/\\*+)",
"beginCaptures": {
"2": {
"name": "punctuation.section.comment.haml"
}
},
"end": "^(?!\\1\\s+|\\n)",
"name": "comment.block.haml",
"patterns": [
{
"include": "text.haml"
}
]
},
{
"begin": "^\\s*(?:((%)([-\\w:]+))|(?=\\.|#))",
"end": "$|(?!\\.|#|\\{|\\(|\\[|&amp;|=|-|~|!=|&=|/)",
"captures": {
"1": {
"name": "meta.tag.haml"
},
"2": {
"name": "punctuation.definition.tag.haml"
},
"3": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"begin": "==",
"contentName": "string.quoted.double.ruby",
"end": "$\\n?",
"patterns": [
{
"include": "#interpolated_ruby"
}
]
},
{
"captures": {
"1": {
"name": "entity.other.attribute-name.class"
}
},
"match": "(\\.[\\w\\-\\:]+)",
"name": "meta.selector.css"
},
{
"captures": {
"1": {
"name": "entity.other.attribute-name.id"
}
},
"match": "(#[\\w-]+)",
"name": "meta.selector.css"
},
{
"begin": "(?<!\\#)\\{(?=.*(,|(do)|\\{|\\}|\\||(\\#.*)|\\R)\\s*)",
"end": "\\s*\\}(?!\\s*\\,)(?!\\s*\\|)(?!\\#\\{.*\\})",
"name": "meta.section.attributes.haml",
"patterns": [
{
"include": "source.ruby"
},
{
"include": "#continuation"
},
{
"include": "#rubyline"
}
]
},
{
"begin": "\\(",
"end": "\\)",
"name": "meta.section.attributes.plain.haml",
"patterns": [
{
"match": "([\\w-]+)",
"name": "constant.other.symbol.ruby"
},
{
"match": "\\=",
"name": "punctuation"
},
{
"include": "#variables"
},
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.ruby",
"patterns": [
{
"match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
"name": "constant.character.escape.ruby"
},
{
"include": "#interpolated_ruby"
}
]
},
{
"include": "#interpolated_ruby"
}
]
},
{
"begin": "\\[(?=.+(,|\\[|\\]|\\||(\\#.*))\\s*)",
"end": "\\s*\\](?!.*(?!\\#\\[)\\])",
"name": "meta.section.object.haml",
"patterns": [
{
"include": "source.ruby"
},
{
"include": "#continuation"
},
{
"include": "#rubyline"
}
]
},
{
"include": "#interpolated_ruby_line"
},
{
"include": "#rubyline"
},
{
"match": "/",
"name": "punctuation.terminator.tag.haml"
}
]
},
{
"begin": "^(\\s*):(ruby|opal)$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.ruby.embedded.filter.haml",
"patterns": [
{
"include": "source.ruby"
}
]
},
{
"begin": "^(\\s*):ruby$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.ruby.embedded.filter.haml",
"patterns": [
{
"include": "source.ruby"
}
]
},
{
"begin": "^(\\s*):(style|sass)$",
"end": "^(?=\\1\\s+|$\\n*)",
"name": "source.sass.embedded.filter.haml",
"patterns": [
{
"include": "source.sass"
}
]
},
{
"begin": "^(\\s*):coffee(script)?",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.coffee.embedded.filter.haml",
"patterns": [
{
"include": "source.coffee"
}
]
},
{
"begin": "^(\\s*):plain$",
"end": "^(?=\\1\\s+|$\\n*)",
"name": "text.plain.embedded.filter.haml",
"patterns": [
{
"include": "text.plain"
}
]
},
{
"begin": "^(\\s*)(:ruby)",
"beginCaptures": {
"2": {
"name": "keyword.control.filter.haml"
}
},
"end": "(?m:(?<=\\n)(?!\\1\\s+|$\\n*))",
"name": "source.ruby.embedded.filter.haml",
"patterns": [
{
"include": "source.ruby"
}
]
},
{
"begin": "^(\\s*)(:sass)",
"beginCaptures": {
"2": {
"name": "keyword.control.filter.haml"
}
},
"end": "^(?!\\1\\s+|$\\n*)",
"name": "source.embedded.filter.sass",
"patterns": [
{
"include": "source.sass"
}
]
},
{
"begin": "^(\\s*):(styles|sass)$",
"end": "^(?=\\1\\s+|$\\n*)",
"name": "source.sass.embedded.filter.haml",
"patterns": [
{
"include": "source.sass"
}
]
},
{
"begin": "^(\\s*):plain$",
"end": "^(?=\\1\\s+|$\\n*)",
"name": "text.plain.embedded.filter.haml",
"patterns": [
{
"include": "text.plain"
}
]
},
{
"captures": {
"1": {
"name": "meta.escape.haml"
}
},
"match": "^\\s*(\\.)"
},
{
"begin": "^\\s*(?==|-|~|!=|&=)",
"end": "$",
"patterns": [
{
"include": "#interpolated_ruby_line"
},
{
"include": "#rubyline"
}
]
},
{
"begin": "^(\\s*)(:php)",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "meta.embedded.php",
"captures": {
"2": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"include": "text.html.php#language"
}
]
},
{
"begin": "^(\\s*)(:markdown)",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "meta.embedded.markdown",
"captures": {
"2": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"include": "text.html.markdown"
}
]
},
{
"begin": "^(\\s*)(:(css|styles?))$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "meta.embedded.css",
"captures": {
"2": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"include": "source.css"
}
]
},
{
"begin": "^(\\s*)(:sass)$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "meta.embedded.sass",
"captures": {
"2": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"include": "source.sass"
}
]
},
{
"begin": "^(\\s*)(:scss)$",
"end": "^(?!\\1\\s+|$\\n*)",
"name": "meta.embedded.scss",
"captures": {
"2": {
"name": "entity.name.tag.haml"
}
},
"patterns": [
{
"include": "source.scss"
}
]
}
],
"repository": {
"continuation": {
"captures": {
"1": {
"name": "punctuation.separator.continuation.haml"
}
},
"match": "(\\|)\\s*\\n"
},
"interpolated_ruby": {
"patterns": [
{
"captures": {
"0": {
"name": "punctuation.section.embedded.ruby"
},
"1": {
"name": "source.ruby.embedded.source.empty"
}
},
"match": "#\\{(\\})",
"name": "source.ruby.embedded.source"
},
{
"begin": "#\\{",
"captures": {
"0": {
"name": "punctuation.section.embedded.ruby"
}
},
"end": "(\\})",
"name": "source.ruby.embedded.source",
"patterns": [
{
"include": "#nest_curly_and_self"
},
{
"include": "source.ruby"
}
]
},
{
"include": "#variables"
}
]
},
"interpolated_ruby_line": {
"begin": "!?==",
"contentName": "string.source.ruby.embedded.haml",
"end": "$",
"name": "meta.line.ruby.interpolated.haml",
"patterns": [
{
"include": "#interpolated_ruby"
},
{
"include": "source.ruby#escaped_char"
}
]
},
"nest_curly_and_self": {
"patterns": [
{
"begin": "\\{",
"captures": {
"0": {
"name": "punctuation.section.scope.ruby"
}
},
"end": "\\}",
"patterns": [
{
"include": "#nest_curly_and_self"
},
{
"include": "source.ruby"
}
]
}
]
},
"variables": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.variable.ruby"
}
},
"match": "(#@)[a-zA-Z_]\\w*",
"name": "variable.other.readwrite.instance.ruby"
},
{
"captures": {
"1": {
"name": "punctuation.definition.variable.ruby"
}
},
"match": "(#@@)[a-zA-Z_]\\w*",
"name": "variable.other.readwrite.class.ruby"
},
{
"captures": {
"1": {
"name": "punctuation.definition.variable.ruby"
}
},
"match": "(#\\$)[a-zA-Z_]\\w*",
"name": "variable.other.readwrite.global.ruby"
}
]
},
"rubyline": {
"begin": "(&amp|!)?(=|-|~)",
"contentName": "source.ruby.embedded.haml",
"end": "((do|\\{)( \\|[.*]+\\|)?)$|$|^(?!.*\\|\\s*)$\\n?",
"endCaptures": {
"1": {
"name": "source.ruby.embedded.html"
},
"2": {
"name": "keyword.control.ruby.start-block"
}
},
"name": "meta.line.ruby.haml",
"patterns": [
{
"match": "\\s+((elseif|foreach|switch|declare|default|use))(?=\\s|\\()",
"captures": {
"1": {
"name": "keyword.control.php"
}
}
},
{
"match": "\\s+(require_once|include_once)(?=\\s|\\()",
"captures": {
"1": {
"name": "keyword.control.import.include.php"
}
}
},
{
"match": "\\s+(catch|try|throw|exception|finally|die)(?=\\s|\\(|\\n*)",
"name": "keyword.control.exception.php"
},
{
"match": "\\s+(function\\s*)((?=\\())",
"captures": {
"1": {
"name": "storage.type.function.php"
}
}
},
{
"match": "\\s+(use\\s*)((?=\\())",
"captures": {
"1": {
"name": "keyword.control.php"
}
}
},
{
"match": "(\\||,|<|do|\\{)\\s*(\\#.*)?$\\n*",
"name": "source.ruby",
"patterns": [
{
"include": "#rubyline"
}
]
},
{
"comment": "Hack to let ruby comments work in this context properly",
"match": "#.*$",
"name": "comment.line.number-sign.ruby"
},
{
"include": "source.ruby"
},
{
"include": "#continuation"
}
]
}
},
"scopeName": "text.haml",
"uuid": "3D727049-DD05-45DF-92A5-D50EA36FD035"
}

852
node_modules/shiki/languages/handlebars.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,852 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/daaain/Handlebars/blob/master/grammars/Handlebars.json",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/daaain/Handlebars/commit/85a153a6f759df4e8da7533e1b3651f007867c51",
"name": "handlebars",
"scopeName": "text.html.handlebars",
"patterns": [
{
"include": "#yfm"
},
{
"include": "#extends"
},
{
"include": "#block_comments"
},
{
"include": "#comments"
},
{
"include": "#block_helper"
},
{
"include": "#end_block"
},
{
"include": "#else_token"
},
{
"include": "#partial_and_var"
},
{
"include": "#inline_script"
},
{
"include": "#html_tags"
},
{
"include": "text.html.basic"
}
],
"repository": {
"html_tags": {
"patterns": [
{
"begin": "(<)([a-zA-Z0-9:-]+)(?=[^>]*></\\2>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.html"
}
},
"end": "(>(<)/)(\\2)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "meta.scope.between-tag-pair.html"
},
"3": {
"name": "entity.name.tag.html"
},
"4": {
"name": "punctuation.definition.tag.html"
}
},
"name": "meta.tag.any.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "(<\\?)(xml)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.xml.html"
}
},
"end": "(\\?>)",
"name": "meta.tag.preprocessor.xml.html",
"patterns": [
{
"include": "#tag_generic_attribute"
},
{
"include": "#string"
}
]
},
{
"begin": "<!--",
"captures": {
"0": {
"name": "punctuation.definition.comment.html"
}
},
"end": "--\\s*>",
"name": "comment.block.html",
"patterns": [
{
"match": "--",
"name": "invalid.illegal.bad-comments-or-CDATA.html"
}
]
},
{
"begin": "<!",
"captures": {
"0": {
"name": "punctuation.definition.tag.html"
}
},
"end": ">",
"name": "meta.tag.sgml.html",
"patterns": [
{
"begin": "(DOCTYPE|doctype)",
"captures": {
"1": {
"name": "entity.name.tag.doctype.html"
}
},
"end": "(?=>)",
"name": "meta.tag.sgml.doctype.html",
"patterns": [
{
"match": "\"[^\">]*\"",
"name": "string.quoted.double.doctype.identifiers-and-DTDs.html"
}
]
},
{
"begin": "\\[CDATA\\[",
"end": "]](?=>)",
"name": "constant.other.inline-data.html"
},
{
"match": "(\\s*)(?!--|>)\\S(\\s*)",
"name": "invalid.illegal.bad-comments-or-CDATA.html"
}
]
},
{
"begin": "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.style.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"end": "(</)((?i:style))(>)(?:\\s*\\n)?",
"name": "source.css.embedded.html",
"patterns": [
{
"include": "#tag-stuff"
},
{
"begin": "(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
}
},
"end": "(?=</(?i:style))",
"patterns": [
{
"include": "source.css"
}
]
}
]
},
{
"begin": "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.script.html"
}
},
"end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
"endCaptures": {
"2": {
"name": "punctuation.definition.tag.html"
}
},
"name": "source.js.embedded.html",
"patterns": [
{
"include": "#tag-stuff"
},
{
"begin": "(?<!</(?:script|SCRIPT))(>)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.script.html"
}
},
"end": "(</)((?i:script))",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.js"
}
},
"match": "(//).*?((?=</script)|$\\n?)",
"name": "comment.line.double-slash.js"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.js"
}
},
"end": "\\*/|(?=</script)",
"name": "comment.block.js"
},
{
"include": "source.js"
}
]
}
]
},
{
"begin": "(</?)((?i:body|head|html)\\b)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.structure.any.html"
}
},
"end": "(>)",
"name": "meta.tag.structure.any.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "(</?)((?i:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.block.any.html"
}
},
"end": "(>)",
"name": "meta.tag.block.any.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.inline.any.html"
}
},
"end": "((?: ?/)?>)",
"name": "meta.tag.inline.any.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "(</?)([a-zA-Z0-9:-]+)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
}
},
"end": "(>)",
"name": "meta.tag.other.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "(</?)([a-zA-Z0-9{}:-]+)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.tokenised.html"
}
},
"end": "(>)",
"name": "meta.tag.tokenised.html",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"include": "#entities"
},
{
"match": "<>",
"name": "invalid.illegal.incomplete.html"
},
{
"match": "<",
"name": "invalid.illegal.bad-angle-bracket.html"
}
]
},
"entities": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.entity.html"
},
"3": {
"name": "punctuation.definition.entity.html"
}
},
"name": "constant.character.entity.html",
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)"
},
{
"name": "invalid.illegal.bad-ampersand.html",
"match": "&"
}
]
},
"end_block": {
"begin": "(\\{\\{)(~?/)([a-zA-Z0-9/_\\.-]+)\\s*",
"end": "(~?\\}\\})",
"name": "meta.function.block.end.handlebars",
"endCaptures": {
"1": {
"name": "support.constant.handlebars"
}
},
"beginCaptures": {
"1": {
"name": "support.constant.handlebars"
},
"2": {
"name": "support.constant.handlebars keyword.control"
},
"3": {
"name": "support.constant.handlebars keyword.control"
}
},
"patterns": []
},
"yfm": {
"patterns": [
{
"patterns": [
{
"include": "source.yaml"
}
],
"begin": "(?<!\\s)---\\n$",
"end": "^---\\s",
"name": "markup.raw.yaml.front-matter"
}
]
},
"comments": {
"patterns": [
{
"patterns": [
{
"name": "keyword.annotation.handlebars",
"match": "@\\w*"
},
{
"include": "#comments"
}
],
"begin": "\\{\\{!",
"end": "\\}\\}",
"name": "comment.block.handlebars"
},
{
"captures": {
"0": {
"name": "punctuation.definition.comment.html"
}
},
"begin": "<!--",
"end": "-{2,3}\\s*>",
"name": "comment.block.html",
"patterns": [
{
"name": "invalid.illegal.bad-comments-or-CDATA.html",
"match": "--"
}
]
}
]
},
"block_comments": {
"patterns": [
{
"patterns": [
{
"name": "keyword.annotation.handlebars",
"match": "@\\w*"
},
{
"include": "#comments"
}
],
"begin": "\\{\\{!--",
"end": "--\\}\\}",
"name": "comment.block.handlebars"
},
{
"captures": {
"0": {
"name": "punctuation.definition.comment.html"
}
},
"begin": "<!--",
"end": "-{2,3}\\s*>",
"name": "comment.block.html",
"patterns": [
{
"name": "invalid.illegal.bad-comments-or-CDATA.html",
"match": "--"
}
]
}
]
},
"block_helper": {
"begin": "(\\{\\{)(~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
"end": "(~?\\}\\})",
"name": "meta.function.block.start.handlebars",
"endCaptures": {
"1": {
"name": "support.constant.handlebars"
}
},
"beginCaptures": {
"1": {
"name": "support.constant.handlebars"
},
"2": {
"name": "support.constant.handlebars keyword.control"
},
"3": {
"name": "support.constant.handlebars keyword.control"
},
"4": {
"name": "variable.parameter.handlebars"
},
"5": {
"name": "support.constant.handlebars"
},
"6": {
"name": "variable.parameter.handlebars"
},
"7": {
"name": "support.constant.handlebars"
}
},
"patterns": [
{
"include": "#string"
},
{
"include": "#handlebars_attribute"
}
]
},
"string-single-quoted": {
"begin": "'",
"end": "'",
"name": "string.quoted.single.handlebars",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
},
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
},
"patterns": [
{
"include": "#escaped-single-quote"
},
{
"include": "#block_comments"
},
{
"include": "#comments"
},
{
"include": "#block_helper"
},
{
"include": "#else_token"
},
{
"include": "#end_block"
},
{
"include": "#partial_and_var"
}
]
},
"string": {
"patterns": [
{
"include": "#string-single-quoted"
},
{
"include": "#string-double-quoted"
}
]
},
"escaped-single-quote": {
"name": "constant.character.escape.js",
"match": "\\\\'"
},
"escaped-double-quote": {
"name": "constant.character.escape.js",
"match": "\\\\\""
},
"partial_and_var": {
"begin": "(\\{\\{~?\\{*(>|!<)*)\\s*(@?[-a-zA-Z0-9$_\\./]+)*",
"end": "(~?\\}\\}\\}*)",
"name": "meta.function.inline.other.handlebars",
"beginCaptures": {
"1": {
"name": "support.constant.handlebars"
},
"3": {
"name": "variable.parameter.handlebars"
}
},
"endCaptures": {
"1": {
"name": "support.constant.handlebars"
}
},
"patterns": [
{
"include": "#string"
},
{
"include": "#handlebars_attribute"
}
]
},
"handlebars_attribute_name": {
"begin": "\\b([-a-zA-Z0-9_\\.]+)\\b=",
"captures": {
"1": {
"name": "variable.parameter.handlebars"
}
},
"end": "(?='|\"|)",
"name": "entity.other.attribute-name.handlebars"
},
"handlebars_attribute_value": {
"begin": "([-a-zA-Z0-9_\\./]+)\\b",
"captures": {
"1": {
"name": "variable.parameter.handlebars"
}
},
"end": "('|\"|)",
"name": "entity.other.attribute-value.handlebars",
"patterns": [
{
"include": "#string"
}
]
},
"handlebars_attribute": {
"patterns": [
{
"include": "#handlebars_attribute_name"
},
{
"include": "#handlebars_attribute_value"
}
]
},
"extends": {
"patterns": [
{
"end": "(\\}\\})",
"begin": "(\\{\\{!<)\\s([-a-zA-Z0-9_\\./]+)",
"beginCaptures": {
"1": {
"name": "support.function.handlebars"
},
"2": {
"name": "support.class.handlebars"
}
},
"endCaptures": {
"1": {
"name": "support.function.handlebars"
}
},
"name": "meta.preprocessor.handlebars"
}
]
},
"else_token": {
"begin": "(\\{\\{)(~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\.\\(\\s\\)/]+))?",
"end": "(~?\\}\\}\\}*)",
"name": "meta.function.inline.else.handlebars",
"beginCaptures": {
"1": {
"name": "support.constant.handlebars"
},
"2": {
"name": "support.constant.handlebars keyword.control"
},
"3": {
"name": "support.constant.handlebars"
},
"4": {
"name": "variable.parameter.handlebars"
}
},
"endCaptures": {
"1": {
"name": "support.constant.handlebars"
}
}
},
"string-double-quoted": {
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.handlebars",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
},
"patterns": [
{
"include": "#escaped-double-quote"
},
{
"include": "#block_comments"
},
{
"include": "#comments"
},
{
"include": "#block_helper"
},
{
"include": "#else_token"
},
{
"include": "#end_block"
},
{
"include": "#partial_and_var"
}
]
},
"inline_script": {
"begin": "(?:^\\s+)?(<)((?i:script))\\b(?:.*(type)=([\"'](?:text/x-handlebars-template|text/x-handlebars|text/template|x-tmpl-handlebars)[\"']))(?![^>]*/>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.script.html"
},
"3": {
"name": "entity.other.attribute-name.html"
},
"4": {
"name": "string.quoted.double.html"
}
},
"end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
"endCaptures": {
"2": {
"name": "punctuation.definition.tag.html"
}
},
"name": "source.handlebars.embedded.html",
"patterns": [
{
"include": "#tag-stuff"
},
{
"begin": "(?<!</(?:script|SCRIPT))(>)",
"captures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.script.html"
}
},
"end": "(</)((?i:script))",
"patterns": [
{
"include": "#block_comments"
},
{
"include": "#comments"
},
{
"include": "#block_helper"
},
{
"include": "#end_block"
},
{
"include": "#else_token"
},
{
"include": "#partial_and_var"
},
{
"include": "#html_tags"
},
{
"include": "text.html.basic"
}
]
}
]
},
"tag_generic_attribute": {
"begin": "\\b([a-zA-Z0-9_-]+)\\b\\s*(=)",
"captures": {
"1": {
"name": "entity.other.attribute-name.generic.html"
},
"2": {
"name": "punctuation.separator.key-value.html"
}
},
"patterns": [
{
"include": "#string"
}
],
"name": "entity.other.attribute-name.html",
"end": "(?<='|\"|)"
},
"tag_id_attribute": {
"begin": "\\b(id)\\b\\s*(=)",
"captures": {
"1": {
"name": "entity.other.attribute-name.id.html"
},
"2": {
"name": "punctuation.separator.key-value.html"
}
},
"end": "(?<='|\"|)",
"name": "meta.attribute-with-value.id.html",
"patterns": [
{
"include": "#string"
}
]
},
"tag-stuff": {
"patterns": [
{
"include": "#tag_id_attribute"
},
{
"include": "#tag_generic_attribute"
},
{
"include": "#string"
},
{
"include": "#block_comments"
},
{
"include": "#comments"
},
{
"include": "#block_helper"
},
{
"include": "#end_block"
},
{
"include": "#else_token"
},
{
"include": "#partial_and_var"
}
]
}
}
}

2428
node_modules/shiki/languages/haskell.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

780
node_modules/shiki/languages/hcl.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,780 @@
{
"scopeName": "source.hcl",
"name": "hcl",
"uuid": "a14187be-98d8-42c1-ac89-bb5eaccf911e",
"fileTypes": ["hcl"],
"patterns": [
{
"include": "#comments"
},
{
"include": "#attribute_definition"
},
{
"include": "#block"
},
{
"include": "#expressions"
}
],
"repository": {
"attribute_access": {
"begin": "\\.(?!\\*)",
"end": "[[:alpha:]][\\w-]*|\\d*",
"comment": "Matches traversal attribute access such as .attr",
"beginCaptures": {
"0": {
"name": "keyword.operator.accessor.hcl"
}
},
"endCaptures": {
"0": {
"patterns": [
{
"match": "(?!null|false|true)[[:alpha:]][\\w-]*",
"comment": "Attribute name",
"name": "variable.other.member.hcl"
},
{
"match": "\\d+",
"comment": "Optional attribute index",
"name": "constant.numeric.integer.hcl"
}
]
}
}
},
"attribute_definition": {
"name": "variable.declaration.hcl",
"match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)[[:alpha:]][[:alnum:]_-]*)(\\))?\\s*(\\=(?!\\=|\\>))\\s*",
"comment": "Identifier \"=\" with optional parens",
"captures": {
"1": {
"name": "punctuation.section.parens.begin.hcl"
},
"2": {
"name": "variable.other.readwrite.hcl"
},
"3": {
"name": "punctuation.section.parens.end.hcl"
},
"4": {
"name": "keyword.operator.assignment.hcl"
}
}
},
"attribute_splat": {
"begin": "\\.",
"end": "\\*",
"comment": "Legacy attribute-only splat",
"beginCaptures": {
"0": {
"name": "keyword.operator.accessor.hcl"
}
},
"endCaptures": {
"0": {
"name": "keyword.operator.splat.hcl"
}
}
},
"block": {
"name": "meta.block.hcl",
"begin": "([\\w][\\-\\w]*)([\\s\\\"\\-\\w]*)(\\{)",
"end": "\\}",
"comment": "This will match HCL blocks like `thing1 \"one\" \"two\" {` or `thing2 {`",
"beginCaptures": {
"1": {
"patterns": [
{
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
"comment": "Block type",
"name": "entity.name.type.hcl"
}
]
},
"2": {
"patterns": [
{
"match": "[\\\"\\-\\w]+",
"comment": "Block label",
"name": "variable.other.enummember.hcl"
}
]
},
"3": {
"name": "punctuation.section.block.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.block.end.hcl"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#attribute_definition"
},
{
"include": "#block"
},
{
"include": "#expressions"
}
]
},
"block_inline_comments": {
"name": "comment.block.hcl",
"begin": "/\\*",
"end": "\\*/",
"comment": "Inline comments start with the /* sequence and end with the */ sequence, and may have any characters within except the ending sequence. An inline comment is considered equivalent to a whitespace sequence",
"captures": {
"0": {
"name": "punctuation.definition.comment.hcl"
}
}
},
"brackets": {
"begin": "\\[",
"end": "\\]",
"beginCaptures": {
"0": {
"name": "punctuation.section.brackets.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.brackets.end.hcl"
}
},
"patterns": [
{
"name": "keyword.operator.splat.hcl",
"match": "\\*",
"comment": "Splat operator"
},
{
"include": "#comma"
},
{
"include": "#comments"
},
{
"include": "#inline_for_expression"
},
{
"include": "#inline_if_expression"
},
{
"include": "#expressions"
},
{
"include": "#local_identifiers"
}
]
},
"char_escapes": {
"name": "constant.character.escape.hcl",
"match": "\\\\[nrt\"\\\\]|\\\\u(\\h{8}|\\h{4})",
"comment": "Character Escapes"
},
"comma": {
"name": "punctuation.separator.hcl",
"match": "\\,",
"comment": "Commas - used in certain expressions"
},
"comments": {
"patterns": [
{
"include": "#hash_line_comments"
},
{
"include": "#double_slash_line_comments"
},
{
"include": "#block_inline_comments"
}
]
},
"double_slash_line_comments": {
"name": "comment.line.double-slash.hcl",
"begin": "//",
"end": "$\\n?",
"comment": "Line comments start with // sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",
"captures": {
"0": {
"name": "punctuation.definition.comment.hcl"
}
}
},
"expressions": {
"patterns": [
{
"include": "#literal_values"
},
{
"include": "#operators"
},
{
"include": "#tuple_for_expression"
},
{
"include": "#object_for_expression"
},
{
"include": "#brackets"
},
{
"include": "#objects"
},
{
"include": "#attribute_access"
},
{
"include": "#attribute_splat"
},
{
"include": "#functions"
},
{
"include": "#parens"
}
]
},
"for_expression_body": {
"patterns": [
{
"name": "keyword.operator.word.hcl",
"match": "\\bin\\b",
"comment": "in keyword"
},
{
"name": "keyword.control.conditional.hcl",
"match": "\\bif\\b",
"comment": "if keyword"
},
{
"name": "keyword.operator.hcl",
"match": "\\:"
},
{
"include": "#expressions"
},
{
"include": "#comments"
},
{
"include": "#comma"
},
{
"include": "#local_identifiers"
}
]
},
"functions": {
"name": "meta.function-call.hcl",
"begin": "(\\w+)(\\()",
"end": "\\)",
"comment": "Built-in function calls",
"beginCaptures": {
"1": {
"patterns": [
{
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
"name": "support.function.builtin.hcl"
}
]
},
"2": {
"name": "punctuation.section.parens.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.parens.end.hcl"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#expressions"
},
{
"include": "#comma"
}
]
},
"hash_line_comments": {
"name": "comment.line.number-sign.hcl",
"begin": "#",
"end": "$\\n?",
"comment": "Line comments start with # sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",
"captures": {
"0": {
"name": "punctuation.definition.comment.hcl"
}
}
},
"hcl_type_keywords": {
"name": "storage.type.hcl",
"match": "\\b(any|string|number|bool|list|set|map|tuple|object)\\b",
"comment": "Type keywords known to HCL."
},
"heredoc": {
"name": "string.unquoted.heredoc.hcl",
"begin": "(\\<\\<\\-?)\\s*(\\w+)\\s*$",
"end": "^\\s*\\2\\s*$",
"comment": "String Heredoc",
"beginCaptures": {
"1": {
"name": "keyword.operator.heredoc.hcl"
},
"2": {
"name": "keyword.control.heredoc.hcl"
}
},
"endCaptures": {
"0": {
"name": "keyword.control.heredoc.hcl"
}
},
"patterns": [
{
"include": "#string_interpolation"
}
]
},
"inline_for_expression": {
"begin": "(for)\\b",
"end": "\\n",
"beginCaptures": {
"1": {
"name": "keyword.control.hcl"
}
},
"patterns": [
{
"name": "storage.type.function.hcl",
"match": "\\=\\>"
},
{
"include": "#for_expression_body"
}
]
},
"inline_if_expression": {
"begin": "(if)\\b",
"end": "\\n",
"beginCaptures": {
"1": {
"name": "keyword.control.conditional.hcl"
}
},
"patterns": [
{
"include": "#expressions"
},
{
"include": "#comments"
},
{
"include": "#comma"
},
{
"include": "#local_identifiers"
}
]
},
"language_constants": {
"name": "constant.language.hcl",
"match": "\\b(true|false|null)\\b",
"comment": "Language Constants"
},
"literal_values": {
"patterns": [
{
"include": "#numeric_literals"
},
{
"include": "#language_constants"
},
{
"include": "#string_literals"
},
{
"include": "#heredoc"
},
{
"include": "#hcl_type_keywords"
}
]
},
"local_identifiers": {
"name": "variable.other.readwrite.hcl",
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
"comment": "Local Identifiers"
},
"numeric_literals": {
"patterns": [
{
"name": "constant.numeric.float.hcl",
"match": "\\b\\d+([Ee][+-]?)\\d+\\b",
"comment": "Integer, no fraction, optional exponent",
"captures": {
"1": {
"name": "punctuation.separator.exponent.hcl"
}
}
},
{
"name": "constant.numeric.float.hcl",
"match": "\\b\\d+(\\.)\\d+(?:([Ee][+-]?)\\d+)?\\b",
"comment": "Integer, fraction, optional exponent",
"captures": {
"1": {
"name": "punctuation.separator.decimal.hcl"
},
"2": {
"name": "punctuation.separator.exponent.hcl"
}
}
},
{
"name": "constant.numeric.integer.hcl",
"match": "\\b\\d+\\b",
"comment": "Integers"
}
]
},
"object_for_expression": {
"begin": "(\\{)\\s?(for)\\b",
"end": "\\}",
"beginCaptures": {
"1": {
"name": "punctuation.section.braces.begin.hcl"
},
"2": {
"name": "keyword.control.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.braces.end.hcl"
}
},
"patterns": [
{
"name": "storage.type.function.hcl",
"match": "\\=\\>"
},
{
"include": "#for_expression_body"
}
]
},
"object_key_values": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#literal_values"
},
{
"include": "#operators"
},
{
"include": "#tuple_for_expression"
},
{
"include": "#object_for_expression"
},
{
"include": "#heredoc"
},
{
"include": "#functions"
}
]
},
"objects": {
"name": "meta.braces.hcl",
"begin": "\\{",
"end": "\\}",
"beginCaptures": {
"0": {
"name": "punctuation.section.braces.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.braces.end.hcl"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#objects"
},
{
"include": "#inline_for_expression"
},
{
"include": "#inline_if_expression"
},
{
"match": "\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\s*(\\=\\>?)\\s*",
"comment": "Literal, named object key",
"captures": {
"1": {
"name": "meta.mapping.key.hcl variable.other.readwrite.hcl"
},
"2": {
"name": "keyword.operator.assignment.hcl",
"patterns": [
{
"match": "\\=\\>",
"name": "storage.type.function.hcl"
}
]
}
}
},
{
"match": "\\b((\").*(\"))\\s*(\\=)\\s*",
"comment": "String object key",
"captures": {
"1": {
"name": "meta.mapping.key.hcl string.quoted.double.hcl"
},
"2": {
"name": "punctuation.definition.string.begin.hcl"
},
"3": {
"name": "punctuation.definition.string.end.hcl"
},
"4": {
"name": "keyword.operator.hcl"
}
}
},
{
"name": "meta.mapping.key.hcl",
"begin": "^\\s*\\(",
"end": "(\\))\\s*(=|:)\\s*",
"comment": "Computed object key (any expression between parens)",
"beginCaptures": {
"0": {
"name": "punctuation.section.parens.begin.hcl"
}
},
"endCaptures": {
"1": {
"name": "punctuation.section.parens.end.hcl"
},
"2": {
"name": "keyword.operator.hcl"
}
},
"patterns": [
{
"include": "#attribute_access"
},
{
"include": "#attribute_splat"
}
]
},
{
"include": "#object_key_values"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.hcl",
"match": "\\>\\="
},
{
"name": "keyword.operator.hcl",
"match": "\\<\\="
},
{
"name": "keyword.operator.hcl",
"match": "\\=\\="
},
{
"name": "keyword.operator.hcl",
"match": "\\!\\="
},
{
"name": "keyword.operator.arithmetic.hcl",
"match": "\\+"
},
{
"name": "keyword.operator.arithmetic.hcl",
"match": "\\-"
},
{
"name": "keyword.operator.arithmetic.hcl",
"match": "\\*"
},
{
"name": "keyword.operator.arithmetic.hcl",
"match": "\\/"
},
{
"name": "keyword.operator.arithmetic.hcl",
"match": "\\%"
},
{
"name": "keyword.operator.logical.hcl",
"match": "\\&\\&"
},
{
"name": "keyword.operator.logical.hcl",
"match": "\\|\\|"
},
{
"name": "keyword.operator.logical.hcl",
"match": "\\!"
},
{
"name": "keyword.operator.hcl",
"match": "\\>"
},
{
"name": "keyword.operator.hcl",
"match": "\\<"
},
{
"name": "keyword.operator.hcl",
"match": "\\?"
},
{
"name": "keyword.operator.hcl",
"match": "\\.\\.\\."
},
{
"match": "\\:"
}
]
},
"parens": {
"begin": "\\(",
"end": "\\)",
"comment": "Parens - matched *after* function syntax",
"beginCaptures": {
"0": {
"name": "punctuation.section.parens.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.parens.end.hcl"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#expressions"
}
]
},
"string_interpolation": {
"name": "meta.interpolation.hcl",
"begin": "(?<![%$])([%$]{)",
"end": "\\}",
"comment": "String interpolation",
"beginCaptures": {
"1": {
"name": "keyword.other.interpolation.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "keyword.other.interpolation.end.hcl"
}
},
"patterns": [
{
"name": "keyword.operator.template.left.trim.hcl",
"match": "\\~\\s",
"comment": "Trim left whitespace"
},
{
"name": "keyword.operator.template.right.trim.hcl",
"match": "\\s\\~",
"comment": "Trim right whitespace"
},
{
"name": "keyword.control.hcl",
"match": "\\b(if|else|endif|for|in|endfor)\\b",
"comment": "if/else/endif and for/in/endfor directives"
},
{
"include": "#expressions"
},
{
"include": "#local_identifiers"
}
]
},
"string_literals": {
"name": "string.quoted.double.hcl",
"begin": "\"",
"end": "\"",
"comment": "Strings",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.hcl"
}
},
"patterns": [
{
"include": "#string_interpolation"
},
{
"include": "#char_escapes"
}
]
},
"tuple_for_expression": {
"begin": "(\\[)\\s?(for)\\b",
"end": "\\]",
"beginCaptures": {
"1": {
"name": "punctuation.section.brackets.begin.hcl"
},
"2": {
"name": "keyword.control.hcl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.brackets.end.hcl"
}
},
"patterns": [
{
"include": "#for_expression_body"
}
]
}
}
}

819
node_modules/shiki/languages/hjson.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,819 @@
{
"fileTypes": ["hjson"],
"foldingStartMarker": "(?x: # turn on extended mode\n ^ # a line beginning with\n \\s* # some optional space\n [{\\[] # the start of an object or array\n (?! # but not followed by\n .* # whatever\n [}\\]] # and the close of an object or array\n ,? # an optional comma\n \\s* # some optional space\n $ # at the end of the line\n )\n | # ...or...\n [{\\[] # the start of an object or array\n \\s* # some optional space\n $ # at the end of the line\n )",
"foldingStopMarker": "(?x: # turn on extended mode\n ^ # a line beginning with\n \\s* # some optional space\n [}\\]] # and the close of an object or array\n )",
"keyEquivalent": "^~J",
"name": "hjson",
"patterns": [
{
"include": "#comments"
},
{
"include": "#value"
},
{
"match": "[^\\s]",
"name": "invalid.illegal.excess-characters.hjson"
}
],
"repository": {
"array": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.hjson"
}
},
"end": "(\\])(?:\\s*([^,\\s]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.array.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.array.hjson",
"patterns": [
{
"include": "#arrayContent"
}
]
},
"arrayArray": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.hjson"
}
},
"end": "(\\])(?:\\s*([^,\\s\\]]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.array.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.array.hjson",
"patterns": [
{
"include": "#arrayContent"
}
]
},
"arrayConstant": {
"captures": {
"1": {
"name": "constant.language.hjson"
},
"2": {
"name": "punctuation.separator.array.after-const.hjson"
}
},
"match": "\\b(true|false|null)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|\\]))"
},
"arrayContent": {
"name": "meta.structure.array.hjson",
"patterns": [
{
"include": "#comments"
},
{
"include": "#arrayValue"
},
{
"begin": "(?<=\\[)|,",
"beginCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.hjson"
}
},
"end": "(?=[^\\s,/#])|(?=/[^/*])",
"patterns": [
{
"include": "#comments"
},
{
"match": ",",
"name": "invalid.illegal.extra-comma.hjson"
}
]
},
{
"match": ",",
"name": "punctuation.separator.array.hjson"
},
{
"match": "[^\\s\\]]",
"name": "invalid.illegal.expected-array-separator.hjson"
}
]
},
"arrayJstring": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(\")(?:\\s*((?:[^,\\s\\]#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.double.hjson",
"patterns": [
{
"include": "#jstringDoubleContent"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(')(?:\\s*((?:[^,\\s\\]#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.single.hjson",
"patterns": [
{
"include": "#jstringSingleContent"
}
]
}
]
},
"arrayMstring": {
"begin": "'''",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(''')(?:\\s*((?:[^,\\s\\]#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.multiline.hjson"
},
"arrayNumber": {
"captures": {
"1": {
"name": "constant.numeric.hjson"
},
"2": {
"name": "punctuation.separator.array.after-num.hjson"
}
},
"match": "(-?(?:0|(?:[1-9]\\d*))(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|\\]))"
},
"arrayObject": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.hjson"
}
},
"end": "(\\}|(?<=\\}))(?:\\s*([^,\\s\\]]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.dictionary.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.dictionary.hjson",
"patterns": [
{
"include": "#objectContent"
}
]
},
"arrayString": {
"patterns": [
{
"include": "#arrayMstring"
},
{
"include": "#arrayJstring"
},
{
"include": "#ustring"
}
]
},
"arrayValue": {
"patterns": [
{
"include": "#arrayNumber"
},
{
"include": "#arrayConstant"
},
{
"include": "#arrayString"
},
{
"include": "#arrayObject"
},
{
"include": "#arrayArray"
}
]
},
"comments": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "^\\s*(#).*(?:\\n)?",
"name": "comment.line.hash"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "^\\s*(//).*(?:\\n)?",
"name": "comment.line.double-slash"
},
{
"begin": "^\\s*/\\*",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"end": "\\*/(?:\\s*\\n)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"name": "comment.block.double-slash"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "(#)[^\\n]*",
"name": "comment.line.hash"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "(//)[^\\n]*",
"name": "comment.line.double-slash"
},
{
"begin": "/\\*",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"end": "\\*/",
"endCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"name": "comment.block.double-slash"
}
]
},
"commentsNewline": {
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "(#).*\\n",
"name": "comment.line.hash"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"match": "(//).*\\n",
"name": "comment.line.double-slash"
},
{
"begin": "/\\*",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"end": "\\*/(\\s*\\n)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.comment.hjson"
}
},
"name": "comment.block.double-slash"
}
]
},
"constant": {
"captures": {
"1": {
"name": "constant.language.hjson"
}
},
"match": "\\b(true|false|null)[\\t ]*(?=$|#|/\\*|//|\\])"
},
"jstring": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(\")(?:\\s*((?:[^\\s#/]|/[^/*]).*)$)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.double.hjson",
"patterns": [
{
"include": "#jstringDoubleContent"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(')(?:\\s*((?:[^\\s#/]|/[^/*]).*)$)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.single.hjson",
"patterns": [
{
"include": "#jstringSingleContent"
}
]
}
]
},
"jstringDoubleContent": {
"patterns": [
{
"match": "\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4})",
"name": "constant.character.escape.hjson"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.hjson"
},
{
"match": "[^\"]*[^\\n\\r\"\\\\]$",
"name": "invalid.illegal.string.hjson"
}
]
},
"jstringSingleContent": {
"patterns": [
{
"match": "\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4})",
"name": "constant.character.escape.hjson"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.hjson"
},
{
"match": "[^']*[^\\n\\r'\\\\]$",
"name": "invalid.illegal.string.hjson"
}
]
},
"key": {
"begin": "(?x:\n (\n (?:[^:,\\{\\}\\[\\]\\s\"'][^:,\\{\\}\\[\\]\\s]*) |\n (?: # json string w/ '\n '\n (?:\n [^\\\\'] | # anything but an escape character or quote\n (\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4})) | # escape characters\n (\\\\.) # bad escape characters\n )*\n '\n ) |\n (?: # json string w/ \"\n \"\n (?:\n [^\\\\\"] | # anything but an escape character or quote\n (\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4})) | # escape characters\n (\\\\.) # bad escape characters\n )*\n \"\n )\n )\n \\s*\n (?!\\n)\n ([,\\{\\}\\[\\]]*)\n )",
"beginCaptures": {
"0": {
"name": "meta.structure.key-value.begin.hjson"
},
"1": {
"name": "support.type.property-name.hjson"
},
"2": {
"name": "constant.character.escape.hjson"
},
"3": {
"name": "invalid.illegal.unrecognized-string-escape.hjson"
},
"4": {
"name": "constant.character.escape.hjson"
},
"5": {
"name": "invalid.illegal.unrecognized-string-escape.hjson"
},
"6": {
"name": "invalid.illegal.separator.hjson"
},
"7": {
"name": "invalid.illegal.property-name.hjson"
}
},
"end": "(?<!^|:)\\s*\\n|(?=})|(,)",
"endCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.hjson"
}
},
"patterns": [
{
"include": "#commentsNewline"
},
{
"include": "#keyValue"
},
{
"match": "[^\\s]",
"name": "invalid.illegal.object-property.hjson"
}
]
},
"keyValue": {
"begin": "(?x:\n \\s*\n (:)\n \\s* # capture the line ending if there is no value on the same line\n ([,\\}\\]]*)\n )",
"beginCaptures": {
"1": {
"name": "punctuation.separator.dictionary.key-value.hjson"
},
"2": {
"name": "invalid.illegal.object-property.hjson"
}
},
"end": "(?<!^)\\s*(?=\\n)|(?=[},])",
"name": "meta.structure.key-value.hjson",
"patterns": [
{
"include": "#comments"
},
{
"match": "^\\s+"
},
{
"include": "#objectValue"
},
{
"captures": {
"1": {
"name": "invalid.illegal.object-property.closing-bracket.hjson"
}
},
"match": "^\\s*(\\})"
},
{
"match": "[^\\s]",
"name": "invalid.illegal.object-property.hjson"
}
]
},
"mstring": {
"begin": "'''",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(''')(?:\\s*((?:[^\\s#/]|/[^/*]).*)$)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.multiline.hjson"
},
"number": {
"captures": {
"1": {
"name": "constant.numeric.hjson"
}
},
"match": "(-?(?:0|(?:[1-9]\\d*))(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)[\\t ]*(?=$|#|/\\*|//|\\])"
},
"object": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.hjson"
}
},
"end": "(\\}|(?<=\\}))(?:\\s*([^,\\s]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.dictionary.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.dictionary.hjson",
"patterns": [
{
"include": "#objectContent"
}
]
},
"objectArray": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.hjson"
}
},
"end": "(\\])(?:\\s*([^,\\s\\}]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.array.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.array.hjson",
"patterns": [
{
"include": "#arrayContent"
}
]
},
"objectConstant": {
"captures": {
"1": {
"name": "constant.language.hjson"
},
"2": {
"name": "punctuation.separator.dictionary.pair.after-const.hjson"
}
},
"match": "\\b(true|false|null)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|\\}))"
},
"objectContent": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#key"
},
{
"match": ":[.|\\s]",
"name": "invalid.illegal.object-property.hjson"
},
{
"begin": "(?<=\\{|,)|,",
"beginCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.hjson"
}
},
"end": "(?=[^\\s,/#])|(?=/[^/*])",
"patterns": [
{
"include": "#comments"
},
{
"match": ",",
"name": "invalid.illegal.extra-comma.hjson"
}
]
},
{
"match": "[^\\s]",
"name": "invalid.illegal.object-property.hjson"
}
]
},
"objectJstring": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(\")(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.double.hjson",
"patterns": [
{
"include": "#jstringDoubleContent"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(')(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.single.hjson",
"patterns": [
{
"include": "#jstringSingleContent"
}
]
}
]
},
"objectMstring": {
"begin": "'''",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.hjson"
}
},
"end": "(''')(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "string.quoted.multiline.hjson"
},
"objectNumber": {
"captures": {
"1": {
"name": "constant.numeric.hjson"
},
"2": {
"name": "punctuation.separator.dictionary.pair.after-num.hjson"
}
},
"match": "(-?(?:0|(?:[1-9]\\d*))(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)(?:[\\t ]*(?=,)|[\\t ]*(?:(,)[\\t ]*)?(?=$|#|/\\*|//|\\}))"
},
"objectObject": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.hjson"
}
},
"end": "(\\}|(?<=\\})\\}?)(?:\\s*([^,\\s}]+))?",
"endCaptures": {
"1": {
"name": "punctuation.definition.dictionary.end.hjson"
},
"2": {
"name": "invalid.illegal.value.hjson"
}
},
"name": "meta.structure.dictionary.hjson",
"patterns": [
{
"include": "#objectContent"
}
]
},
"objectString": {
"patterns": [
{
"include": "#objectMstring"
},
{
"include": "#objectJstring"
},
{
"include": "#ustring"
}
]
},
"objectValue": {
"patterns": [
{
"include": "#objectNumber"
},
{
"include": "#objectConstant"
},
{
"include": "#objectString"
},
{
"include": "#objectObject"
},
{
"include": "#objectArray"
}
]
},
"string": {
"patterns": [
{
"include": "#mstring"
},
{
"include": "#jstring"
},
{
"include": "#ustring"
}
]
},
"ustring": {
"match": "([^:,\\{\\[\\}\\]\\s].*)$",
"name": "string.quoted.none.hjson"
},
"value": {
"patterns": [
{
"include": "#number"
},
{
"include": "#constant"
},
{
"include": "#string"
},
{
"include": "#object"
},
{
"include": "#array"
}
]
}
},
"scopeName": "source.hjson"
}

217
node_modules/shiki/languages/hlsl.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,217 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/tgjones/shaders-tmLanguage/blob/master/grammars/hlsl.json",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/87c0dca3a39170dbd7ee7e277db4f915fb2de14a",
"name": "hlsl",
"scopeName": "source.hlsl",
"patterns": [
{
"name": "comment.line.block.hlsl",
"begin": "/\\*",
"end": "\\*/"
},
{
"name": "comment.line.double-slash.hlsl",
"begin": "//",
"end": "$"
},
{
"name": "constant.numeric.decimal.hlsl",
"match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b"
},
{
"name": "constant.numeric.decimal.hlsl",
"match": "(\\.([0-9]+)(F|f)?)\\b"
},
{
"name": "constant.numeric.decimal.hlsl",
"match": "\\b([0-9]+(F|f)?)\\b"
},
{
"name": "constant.numeric.hex.hlsl",
"match": "\\b(0(x|X)[0-9a-fA-F]+)\\b"
},
{
"name": "constant.language.hlsl",
"match": "\\b(false|true)\\b"
},
{
"name": "keyword.preprocessor.hlsl",
"match": "^\\s*#\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)"
},
{
"name": "keyword.control.hlsl",
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b"
},
{
"name": "keyword.control.fx.hlsl",
"match": "\\b(compile)\\b"
},
{
"name": "keyword.typealias.hlsl",
"match": "\\b(typedef)\\b"
},
{
"name": "storage.type.basic.hlsl",
"match": "\\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\\b"
},
{
"name": "support.function.hlsl",
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()"
},
{
"name": "support.variable.semantic.hlsl",
"match": "(?<=\\:\\s|\\:)(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\b"
},
{
"name": "support.variable.semantic.sm4.hlsl",
"match": "(?<=\\:\\s|\\:)(?i:SV_ClipDistance[0-9]*|SV_CullDistance[0-9]*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual[0-9]*|SV_DepthLessEqual[0-9]*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b"
},
{
"name": "support.variable.semantic.sm5.hlsl",
"match": "(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b"
},
{
"name": "support.variable.semantic.sm5_1.hlsl",
"match": "(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b"
},
{
"name": "storage.modifier.hlsl",
"match": "\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\b"
},
{
"name": "storage.modifier.float.hlsl",
"match": "\\b(snorm|unorm)\\b"
},
{
"name": "storage.modifier.postfix.hlsl",
"match": "\\b(packoffset|register)\\b"
},
{
"name": "storage.modifier.interpolation.hlsl",
"match": "\\b(centroid|linear|nointerpolation|noperspective|sample)\\b"
},
{
"name": "storage.modifier.geometryshader.hlsl",
"match": "\\b(lineadj|line|point|triangle|triangleadj)\\b"
},
{
"name": "support.type.other.hlsl",
"match": "\\b(string)\\b"
},
{
"name": "support.type.object.hlsl",
"match": "\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\b"
},
{
"name": "support.type.object.rasterizerordered.hlsl",
"match": "\\b(RasterizerOrderedBuffer|RasterizerOrderedByteAddressBuffer|RasterizerOrderedStructuredBuffer|RasterizerOrderedTexture1D|RasterizerOrderedTexture1DArray|RasterizerOrderedTexture2D|RasterizerOrderedTexture2DArray|RasterizerOrderedTexture3D)\\b"
},
{
"name": "support.type.object.rw.hlsl",
"match": "\\b(RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture1D|RWTexture1DArray|RWTexture2D|RWTexture2DArray|RWTexture3D)\\b"
},
{
"name": "support.type.object.geometryshader.hlsl",
"match": "\\b(LineStream|PointStream|TriangleStream)\\b"
},
{
"name": "support.type.sampler.legacy.hlsl",
"match": "\\b(sampler|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler_state)\\b"
},
{
"name": "support.type.sampler.hlsl",
"match": "\\b(SamplerState|SamplerComparisonState)\\b"
},
{
"name": "support.type.texture.legacy.hlsl",
"match": "\\b(texture2D|textureCUBE)\\b"
},
{
"name": "support.type.texture.hlsl",
"match": "\\b(Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture2DMS|Texture2DMSArray|Texture3D|TextureCube|TextureCubeArray)\\b"
},
{
"name": "storage.type.structured.hlsl",
"match": "\\b(cbuffer|class|interface|namespace|struct|tbuffer)\\b"
},
{
"name": "support.constant.property-value.fx.hlsl",
"match": "\\b(FALSE|TRUE|NULL)\\b"
},
{
"name": "support.type.fx.hlsl",
"match": "\\b(BlendState|DepthStencilState|RasterizerState)\\b"
},
{
"name": "storage.type.fx.technique.hlsl",
"match": "\\b(technique|Technique|technique10|technique11|pass)\\b"
},
{
"name": "meta.object-literal.key.fx.blendstate.hlsl",
"match": "\\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\\b"
},
{
"name": "meta.object-literal.key.fx.depthstencilstate.hlsl",
"match": "\\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\\b"
},
{
"name": "meta.object-literal.key.fx.rasterizerstate.hlsl",
"match": "\\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\\b"
},
{
"name": "meta.object-literal.key.fx.samplerstate.hlsl",
"match": "\\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\\b"
},
{
"name": "support.constant.property-value.fx.blend.hlsl",
"match": "\\b(?i:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\\b"
},
{
"name": "support.constant.property-value.fx.blendop.hlsl",
"match": "\\b(?i:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\\b"
},
{
"name": "support.constant.property-value.fx.depthwritemask.hlsl",
"match": "\\b(?i:ALL)\\b"
},
{
"name": "support.constant.property-value.fx.comparisonfunc.hlsl",
"match": "\\b(?i:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\\b"
},
{
"name": "support.constant.property-value.fx.stencilop.hlsl",
"match": "\\b(?i:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\\b"
},
{
"name": "support.constant.property-value.fx.fillmode.hlsl",
"match": "\\b(?i:WIREFRAME|SOLID)\\b"
},
{
"name": "support.constant.property-value.fx.cullmode.hlsl",
"match": "\\b(?i:NONE|FRONT|BACK)\\b"
},
{
"name": "support.constant.property-value.fx.filter.hlsl",
"match": "\\b(?i:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\\b"
},
{
"name": "support.constant.property-value.fx.textureaddressmode.hlsl",
"match": "\\b(?i:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\\b"
},
{
"name": "string.quoted.double.hlsl",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.hlsl",
"match": "\\\\."
}
]
}
]
}

2643
node_modules/shiki/languages/html.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

297
node_modules/shiki/languages/http.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,297 @@
{
"scopeName": "source.http",
"fileTypes": ["http", "rest"],
"keyEquivalent": "^~H",
"name": "http",
"patterns": [
{
"begin": "^\\s*(?=curl)",
"name": "http.request.curl",
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
"endCaptures": {
"0": {
"name": "comment.line.sharp.http"
}
},
"patterns": [
{
"include": "source.shell"
}
]
},
{
"begin": "\\s*(?=(\\[|{[^{]))",
"name": "http.request.body.json",
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
"endCaptures": {
"0": {
"name": "comment.line.sharp.http"
}
},
"patterns": [
{
"include": "source.json"
}
]
},
{
"begin": "^\\s*(?=<\\S)",
"name": "http.request.body.xml",
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
"endCaptures": {
"0": {
"name": "comment.line.sharp.http"
}
},
"patterns": [
{
"include": "text.xml"
}
]
},
{
"begin": "\\s*(?=(query|mutation))",
"name": "http.request.body.graphql",
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
"endCaptures": {
"0": {
"name": "comment.line.sharp.http"
}
},
"patterns": [
{
"include": "source.graphql"
}
]
},
{
"begin": "\\s*(?=(query|mutation))",
"name": "http.request.body.graphql",
"end": "^\\{\\s*$",
"patterns": [
{
"include": "source.graphql"
}
]
},
{
"include": "#metadata"
},
{
"include": "#comments"
},
{
"captures": {
"1": {
"name": "keyword.other.http"
},
"2": {
"name": "variable.other.http"
},
"3": {
"name": "string.other.http"
}
},
"match": "^\\s*(@)([^\\s=]+)\\s*=\\s*(.*?)\\s*$",
"name": "http.filevariable"
},
{
"captures": {
"1": {
"name": "keyword.operator.http"
},
"2": {
"name": "variable.other.http"
},
"3": {
"name": "string.other.http"
}
},
"match": "^\\s*(\\?|&)([^=\\s]+)=(.*)$",
"name": "http.query"
},
{
"captures": {
"1": {
"name": "entity.name.tag.http"
},
"2": {
"name": "keyword.other.http"
},
"3": {
"name": "string.other.http"
}
},
"match": "^([\\w\\-]+)\\s*(\\:)\\s*([^/].*?)\\s*$",
"name": "http.headers"
},
{
"include": "#request-line"
},
{
"include": "#response-line"
}
],
"repository": {
"metadata": {
"patterns": [
{
"match": "^\\s*\\#{1,}\\s+(?:((@)name)\\s+([^\\s\\.]+))$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
},
"3": {
"name": "entity.name.type.http"
}
},
"name": "comment.line.sharp.http"
},
{
"match": "^\\s*\\/{2,}\\s+(?:((@)name)\\s+([^\\s\\.]+))$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
},
"3": {
"name": "entity.name.type.http"
}
},
"name": "comment.line.double-slash.http"
},
{
"match": "^\\s*\\#{1,}\\s+((@)note)\\s*$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
}
},
"name": "comment.line.sharp.http"
},
{
"match": "^\\s*\\/{2,}\\s+((@)note)\\s*$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
}
},
"name": "comment.line.double-slash.http"
},
{
"match": "^\\s*\\#{1,}\\s+(?:((@)prompt)\\s+([^\\s]+)(?:\\s+(.*))?\\s*)$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
},
"3": {
"name": "variable.other.http"
},
"4": {
"name": "string.other.http"
}
},
"name": "comment.line.sharp.http"
},
{
"match": "^\\s*\\/{2,}\\s+(?:((@)prompt)\\s+([^\\s]+)(?:\\s+(.*))?\\s*)$",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "punctuation.definition.block.tag.metadata"
},
"3": {
"name": "variable.other.http"
},
"4": {
"name": "string.other.http"
}
},
"name": "comment.line.double-slash.http"
}
]
},
"comments": {
"patterns": [
{
"match": "^\\s*\\#{1,}.*$",
"name": "comment.line.sharp.http"
},
{
"match": "^\\s*\\/{2,}.*$",
"name": "comment.line.double-slash.http"
}
]
},
"request-line": {
"captures": {
"1": {
"name": "keyword.control.http"
},
"2": {
"name": "const.language.http"
},
"3": {
"patterns": [
{
"include": "#protocol"
}
]
}
},
"match": "(?i)^(?:(get|post|put|delete|patch|head|options|connect|trace)\\s+)?\\s*(.+?)(?:\\s+(HTTP\\/\\S+))?$",
"name": "http.requestline"
},
"response-line": {
"captures": {
"1": {
"patterns": [
{
"include": "#protocol"
}
]
},
"2": {
"name": "constant.numeric.http"
},
"3": {
"name": "string.other.http"
}
},
"match": "(?i)^\\s*(HTTP\\/\\S+)\\s([1-5][0-9][0-9])\\s(.*)$",
"name": "http.responseLine"
},
"protocol": {
"patterns": [
{
"captures": {
"1": {
"name": "keyword.other.http"
},
"2": {
"name": "constant.numeric.http"
}
},
"name": "http.version",
"match": "(HTTP)/(\\d+.\\d+)"
}
]
}
}
}

2693
node_modules/shiki/languages/imba.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

113
node_modules/shiki/languages/ini.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,113 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/textmate/ini.tmbundle/blob/master/Syntaxes/Ini.plist",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/textmate/ini.tmbundle/commit/2af0cbb0704940f967152616f2f1ff0aae6287a6",
"name": "ini",
"scopeName": "source.ini",
"patterns": [
{
"begin": "(^[ \\t]+)?(?=#)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.ini"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "#",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.ini"
}
},
"end": "\\n",
"name": "comment.line.number-sign.ini"
}
]
},
{
"begin": "(^[ \\t]+)?(?=;)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.ini"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": ";",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.ini"
}
},
"end": "\\n",
"name": "comment.line.semicolon.ini"
}
]
},
{
"captures": {
"1": {
"name": "keyword.other.definition.ini"
},
"2": {
"name": "punctuation.separator.key-value.ini"
}
},
"match": "\\b([a-zA-Z0-9_.-]+)\\b\\s*(=)"
},
{
"captures": {
"1": {
"name": "punctuation.definition.entity.ini"
},
"3": {
"name": "punctuation.definition.entity.ini"
}
},
"match": "^(\\[)(.*?)(\\])",
"name": "entity.name.section.group-title.ini"
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.ini"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.ini"
}
},
"name": "string.quoted.single.ini",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.ini"
}
]
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.ini"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.ini"
}
},
"name": "string.quoted.double.ini"
}
]
}

1855
node_modules/shiki/languages/java.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

5921
node_modules/shiki/languages/javascript.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,16 @@
{
"name": "jinja-html",
"scopeName": "text.html.jinja",
"comment": "Jinja HTML Templates",
"firstLineMatch": "^{% extends [\"'][^\"']+[\"'] %}",
"foldingStartMarker": "(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%\\s*(block|filter|for|if|macro|raw))",
"foldingStopMarker": "(</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
"patterns": [
{
"include": "source.jinja"
},
{
"include": "text.html.basic"
}
]
}

345
node_modules/shiki/languages/jinja.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,345 @@
{
"name": "jinja",
"scopeName": "source.jinja",
"comment": "Jinja Templates",
"foldingStartMarker": "({%\\s*(block|filter|for|if|macro|raw))",
"foldingStopMarker": "({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
"patterns": [
{
"begin": "({%)\\s*(raw)\\s*(%})",
"captures": {
"1": {
"name": "entity.other.jinja.delimiter.tag"
},
"2": {
"name": "keyword.control.jinja"
},
"3": {
"name": "entity.other.jinja.delimiter.tag"
}
},
"end": "({%)\\s*(endraw)\\s*(%})",
"name": "comment.block.jinja.raw"
},
{
"include": "#comments"
},
{
"begin": "{{-?",
"captures": [
{
"name": "variable.entity.other.jinja.delimiter"
}
],
"end": "-?}}",
"name": "variable.meta.scope.jinja",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "{%-?",
"captures": [
{
"name": "entity.other.jinja.delimiter.tag"
}
],
"end": "-?%}",
"name": "meta.scope.jinja.tag",
"patterns": [
{
"include": "#expression"
}
]
}
],
"repository": {
"comments": {
"begin": "{#-?",
"captures": [
{
"name": "entity.other.jinja.delimiter.comment"
}
],
"end": "-?#}",
"name": "comment.block.jinja",
"patterns": [
{
"include": "#comments"
}
]
},
"escaped_char": {
"match": "\\\\x[0-9A-F]{2}",
"name": "constant.character.escape.hex.jinja"
},
"escaped_unicode_char": {
"captures": {
"1": {
"name": "constant.character.escape.unicode.16-bit-hex.jinja"
},
"2": {
"name": "constant.character.escape.unicode.32-bit-hex.jinja"
},
"3": {
"name": "constant.character.escape.unicode.name.jinja"
}
},
"match": "(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"
},
"expression": {
"patterns": [
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.block"
}
},
"match": "\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.filter"
}
},
"match": "\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
},
"2": {
"name": "variable.other.jinja.test"
}
},
"match": "\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
"1": {
"name": "keyword.control.jinja"
}
},
"match": "(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"
},
{
"match": "\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",
"name": "keyword.control.jinja"
},
{
"match": "\\b(true|false|none)\\b",
"name": "constant.language.jinja"
},
{
"match": "\\b(loop|super|self|varargs|kwargs)\\b",
"name": "variable.language.jinja"
},
{
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
"name": "variable.other.jinja"
},
{
"match": "(\\+|\\-|\\*\\*|\\*|//|/|%)",
"name": "keyword.operator.arithmetic.jinja"
},
{
"captures": {
"1": {
"name": "punctuation.other.jinja"
},
"2": {
"name": "variable.other.jinja.filter"
}
},
"match": "(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"
},
{
"captures": {
"1": {
"name": "punctuation.other.jinja"
},
"2": {
"name": "variable.other.jinja.attribute"
}
},
"match": "(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"
},
{
"begin": "\\[",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\]",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "\\(",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\)",
"patterns": [
{
"include": "#expression"
}
]
},
{
"begin": "\\{",
"captures": [
{
"name": "punctuation.other.jinja"
}
],
"end": "\\}",
"patterns": [
{
"include": "#expression"
}
]
},
{
"match": "(\\.|:|\\||,)",
"name": "punctuation.other.jinja"
},
{
"match": "(==|<=|=>|<|>|!=)",
"name": "keyword.operator.comparison.jinja"
},
{
"match": "=",
"name": "keyword.operator.assignment.jinja"
},
{
"begin": "\"",
"beginCaptures": [
{
"name": "punctuation.definition.string.begin.jinja"
}
],
"end": "\"",
"endCaptures": [
{
"name": "punctuation.definition.string.end.jinja"
}
],
"name": "string.quoted.double.jinja",
"patterns": [
{
"include": "#string"
}
]
},
{
"begin": "'",
"beginCaptures": [
{
"name": "punctuation.definition.string.begin.jinja"
}
],
"end": "'",
"endCaptures": [
{
"name": "punctuation.definition.string.end.jinja"
}
],
"name": "string.quoted.single.jinja",
"patterns": [
{
"include": "#string"
}
]
},
{
"begin": "@/",
"beginCaptures": [
{
"name": "punctuation.definition.regexp.begin.jinja"
}
],
"end": "/",
"endCaptures": [
{
"name": "punctuation.definition.regexp.end.jinja"
}
],
"name": "string.regexp.jinja",
"patterns": [
{
"include": "#simple_escapes"
}
]
}
]
},
"simple_escapes": {
"captures": {
"1": {
"name": "constant.character.escape.newline.jinja"
},
"2": {
"name": "constant.character.escape.backlash.jinja"
},
"3": {
"name": "constant.character.escape.double-quote.jinja"
},
"4": {
"name": "constant.character.escape.single-quote.jinja"
},
"5": {
"name": "constant.character.escape.bell.jinja"
},
"6": {
"name": "constant.character.escape.backspace.jinja"
},
"7": {
"name": "constant.character.escape.formfeed.jinja"
},
"8": {
"name": "constant.character.escape.linefeed.jinja"
},
"9": {
"name": "constant.character.escape.return.jinja"
},
"10": {
"name": "constant.character.escape.tab.jinja"
},
"11": {
"name": "constant.character.escape.vertical-tab.jinja"
}
},
"match": "(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)"
},
"string": {
"patterns": [
{
"include": "#simple_escapes"
},
{
"include": "#escaped_char"
},
{
"include": "#escaped_unicode_char"
}
]
}
}
}

712
node_modules/shiki/languages/jison.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,712 @@
{
"name": "jison",
"scopeName": "source.jison",
"fileTypes": ["jison"],
"patterns": [
{
"begin": "%%",
"end": "\\z",
"beginCaptures": {
"0": {
"name": "meta.separator.section.jison"
}
},
"patterns": [
{
"begin": "%%",
"end": "\\z",
"beginCaptures": {
"0": {
"name": "meta.separator.section.jison"
}
},
"patterns": [
{
"name": "meta.section.epilogue.jison",
"begin": "\\G",
"end": "\\z",
"contentName": "source.js.embedded.jison",
"patterns": [
{
"include": "#epilogue_section"
}
]
}
]
},
{
"name": "meta.section.rules.jison",
"begin": "\\G",
"end": "(?=%%)",
"patterns": [
{
"include": "#rules_section"
}
]
}
]
},
{
"name": "meta.section.declarations.jison",
"begin": "^",
"end": "(?=%%)",
"patterns": [
{
"include": "#declarations_section"
}
]
}
],
"repository": {
"declarations_section": {
"patterns": [
{
"include": "#comments"
},
{
"begin": "^\\s*(%lex)\\s*$",
"end": "^\\s*(/lex)\\b",
"beginCaptures": {
"1": {
"name": "entity.name.tag.lexer.begin.jison"
}
},
"endCaptures": {
"1": {
"name": "entity.name.tag.lexer.end.jison"
}
},
"patterns": [
{
"begin": "%%",
"end": "(?=/lex)",
"beginCaptures": {
"0": {
"name": "meta.separator.section.jisonlex"
}
},
"patterns": [
{
"begin": "^%%",
"end": "(?=/lex)",
"beginCaptures": {
"0": {
"name": "meta.separator.section.jisonlex"
}
},
"patterns": [
{
"name": "meta.section.user-code.jisonlex",
"begin": "\\G",
"end": "(?=/lex)",
"contentName": "source.js.embedded.jisonlex",
"patterns": [
{
"include": "source.jisonlex#user_code_section"
}
]
}
]
},
{
"name": "meta.section.rules.jisonlex",
"begin": "\\G",
"end": "^(?=%%|/lex)",
"patterns": [
{
"include": "source.jisonlex#rules_section"
}
]
}
]
},
{
"name": "meta.section.definitions.jisonlex",
"begin": "^",
"end": "(?=%%|/lex)",
"patterns": [
{
"include": "source.jisonlex#definitions_section"
}
]
}
]
},
{
"name": "meta.section.prologue.jison",
"begin": "(?=%\\{)",
"end": "(?<=%\\})",
"patterns": [
{
"include": "#user_code_blocks"
}
]
},
{
"include": "#options_declarations"
},
{
"name": "keyword.other.declaration.$1.jison",
"match": "%(ebnf|left|nonassoc|parse-param|right|start)\\b"
},
{
"include": "#include_declarations"
},
{
"name": "meta.code.jison",
"begin": "%(code)\\b",
"end": "$",
"beginCaptures": {
"0": {
"name": "keyword.other.declaration.$1.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#rule_actions"
},
{
"name": "keyword.other.code-qualifier.$1.jison",
"match": "(init|required)"
},
{
"include": "#quoted_strings"
},
{
"name": "string.unquoted.jison",
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
}
]
},
{
"name": "meta.parser-type.jison",
"begin": "%(parser-type)\\b",
"end": "$",
"beginCaptures": {
"0": {
"name": "keyword.other.declaration.$1.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#quoted_strings"
},
{
"name": "string.unquoted.jison",
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
}
]
},
{
"name": "meta.token.jison",
"begin": "%(token)\\b",
"end": "$|(%%|;)",
"beginCaptures": {
"0": {
"name": "keyword.other.declaration.$1.jison"
}
},
"endCaptures": {
"1": {
"name": "punctuation.terminator.declaration.token.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#numbers"
},
{
"include": "#quoted_strings"
},
{
"name": "invalid.unimplemented.jison",
"match": "<[[:alpha:]_](?:[\\w-]*\\w)?>"
},
{
"name": "entity.other.token.jison",
"match": "\\S+"
}
]
},
{
"name": "keyword.other.declaration.$1.jison",
"match": "%(debug|import)\\b"
},
{
"name": "invalid.illegal.jison",
"match": "%prec\\b"
},
{
"name": "invalid.unimplemented.jison",
"match": "%[[:alpha:]_](?:[\\w-]*\\w)?\\b"
},
{
"include": "#numbers"
},
{
"include": "#quoted_strings"
}
]
},
"rules_section": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#actions"
},
{
"include": "#include_declarations"
},
{
"name": "meta.rule.jison",
"begin": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b",
"end": ";",
"beginCaptures": {
"0": {
"name": "entity.name.constant.rule-result.jison"
}
},
"endCaptures": {
"0": {
"name": "punctuation.terminator.rule.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"name": "meta.rule-components.jison",
"begin": ":",
"end": "(?=;)",
"beginCaptures": {
"0": {
"name": "keyword.operator.rule-components.assignment.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#quoted_strings"
},
{
"match": "(\\[)([[:alpha:]_](?:[\\w-]*\\w)?)(\\])",
"captures": {
"1": {
"name": "punctuation.definition.named-reference.begin.jison"
},
"2": {
"name": "entity.name.other.reference.jison"
},
"3": {
"name": "punctuation.definition.named-reference.end.jison"
}
}
},
{
"name": "meta.prec.jison",
"begin": "(%(prec))\\s*",
"end": "(?<=['\"])|(?=\\s)",
"beginCaptures": {
"1": {
"name": "keyword.other.$2.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#quoted_strings"
},
{
"name": "constant.other.token.jison",
"begin": "(?=\\S)",
"end": "(?=\\s)"
}
]
},
{
"name": "keyword.operator.rule-components.separator.jison",
"match": "\\|"
},
{
"name": "keyword.other.$0.jison",
"match": "\\b(?:EOF|error)\\b"
},
{
"name": "keyword.other.empty.jison",
"match": "(?:%(?:e(?:mpty|psilon))|\\b[Ɛɛεϵ])\\b"
},
{
"include": "#rule_actions"
}
]
}
]
}
]
},
"epilogue_section": {
"patterns": [
{
"include": "#user_code_include_declarations"
},
{
"include": "source.js"
}
]
},
"actions": {
"patterns": [
{
"name": "meta.action.jison",
"begin": "\\{\\{",
"end": "\\}\\}",
"beginCaptures": {
"0": {
"name": "punctuation.definition.action.begin.jison"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.action.end.jison"
}
},
"contentName": "source.js.embedded.jison",
"patterns": [
{
"include": "source.js"
}
]
},
{
"name": "meta.action.jison",
"begin": "(?=%\\{)",
"end": "(?<=%\\})",
"patterns": [
{
"include": "#user_code_blocks"
}
]
}
]
},
"rule_actions": {
"patterns": [
{
"include": "#actions"
},
{
"name": "meta.action.jison",
"begin": "\\{",
"end": "\\}",
"beginCaptures": {
"0": {
"name": "punctuation.definition.action.begin.jison"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.action.end.jison"
}
},
"contentName": "source.js.embedded.jison",
"patterns": [
{
"include": "source.js"
}
]
},
{
"include": "#include_declarations"
},
{
"name": "meta.action.jison",
"begin": "->|→",
"end": "$",
"beginCaptures": {
"0": {
"name": "punctuation.definition.action.arrow.jison"
}
},
"contentName": "source.js.embedded.jison",
"patterns": [
{
"include": "source.js"
}
]
}
]
},
"comments": {
"patterns": [
{
"name": "comment.line.double-slash.jison",
"begin": "//",
"end": "$",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.jison"
}
}
},
{
"name": "comment.block.jison",
"begin": "/\\*",
"end": "\\*/",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.jison"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.jison"
}
}
}
]
},
"include_declarations": {
"patterns": [
{
"name": "meta.include.jison",
"begin": "(%(include))\\s*",
"end": "(?<=['\"])|(?=\\s)",
"beginCaptures": {
"1": {
"name": "keyword.other.declaration.$2.jison"
}
},
"patterns": [
{
"include": "#include_paths"
}
]
}
]
},
"user_code_include_declarations": {
"patterns": [
{
"name": "meta.include.jison",
"begin": "^(%(include))\\s*",
"end": "(?<=['\"])|(?=\\s)",
"beginCaptures": {
"1": {
"name": "keyword.other.declaration.$2.jison"
}
},
"patterns": [
{
"include": "#include_paths"
}
]
}
]
},
"include_paths": {
"patterns": [
{
"include": "#quoted_strings"
},
{
"name": "string.unquoted.jison",
"begin": "(?=\\S)",
"end": "(?=\\s)",
"patterns": [
{
"include": "source.js#string_escapes"
}
]
}
]
},
"numbers": {
"patterns": [
{
"match": "(0[Xx])([0-9A-Fa-f]+)",
"captures": {
"1": {
"name": "storage.type.number.jison"
},
"2": {
"name": "constant.numeric.integer.hexadecimal.jison"
}
}
},
{
"name": "constant.numeric.integer.decimal.jison",
"match": "\\d+"
}
]
},
"options_declarations": {
"patterns": [
{
"name": "meta.options.jison",
"begin": "%options\\b",
"end": "^(?=\\S|\\s*$)",
"beginCaptures": {
"0": {
"name": "keyword.other.options.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"name": "entity.name.constant.jison",
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
},
{
"begin": "(=)\\s*",
"end": "(?<=['\"])|(?=\\s)",
"beginCaptures": {
"1": {
"name": "keyword.operator.option.assignment.jison"
}
},
"patterns": [
{
"include": "#comments"
},
{
"name": "constant.language.boolean.$1.jison",
"match": "\\b(true|false)\\b"
},
{
"include": "#numbers"
},
{
"include": "#quoted_strings"
},
{
"name": "string.unquoted.jison",
"match": "\\S+"
}
]
},
{
"include": "#quoted_strings"
}
]
}
]
},
"quoted_strings": {
"patterns": [
{
"name": "string.quoted.double.jison",
"begin": "\"",
"end": "\"",
"patterns": [
{
"include": "source.js#string_escapes"
}
]
},
{
"name": "string.quoted.single.jison",
"begin": "'",
"end": "'",
"patterns": [
{
"include": "source.js#string_escapes"
}
]
}
]
},
"user_code_blocks": {
"patterns": [
{
"name": "meta.user-code-block.jison",
"begin": "%\\{",
"end": "%\\}",
"beginCaptures": {
"0": {
"name": "punctuation.definition.user-code-block.begin.jison"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.user-code-block.end.jison"
}
},
"contentName": "source.js.embedded.jison",
"patterns": [
{
"include": "source.js"
}
]
}
]
}
},
"injections": {
"L:(meta.action.jison - (comment | string)), source.js.embedded.jison - (comment | string), source.js.embedded.source - (comment | string.quoted.double | string.quoted.single)": {
"patterns": [
{
"name": "variable.language.semantic-value.jison",
"match": "\\${2}"
},
{
"name": "variable.language.result-location.jison",
"match": "@\\$"
},
{
"name": "variable.language.stack-index-0.jison",
"match": "##\\$|\\byysp\\b"
},
{
"name": "support.variable.token-reference.jison",
"match": "#\\S+#"
},
{
"name": "variable.language.result-id.jison",
"match": "#\\$"
},
{
"name": "support.variable.token-value.jison",
"match": "\\$(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
},
{
"name": "support.variable.token-location.jison",
"match": "@(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
},
{
"name": "support.variable.stack-index.jison",
"match": "##(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
},
{
"name": "support.variable.token-id.jison",
"match": "#(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
},
{
"name": "variable.language.jison",
"match": "\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\b"
},
{
"name": "keyword.other.jison",
"match": "\\byy(?:clearin|erro[kr])\\b"
}
]
}
}
}

213
node_modules/shiki/languages/json.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,213 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
"name": "json",
"scopeName": "source.json",
"patterns": [
{
"include": "#value"
}
],
"repository": {
"array": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.json"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.array.end.json"
}
},
"name": "meta.structure.array.json",
"patterns": [
{
"include": "#value"
},
{
"match": ",",
"name": "punctuation.separator.array.json"
},
{
"match": "[^\\s\\]]",
"name": "invalid.illegal.expected-array-separator.json"
}
]
},
"comments": {
"patterns": [
{
"begin": "/\\*\\*(?!/)",
"captures": {
"0": {
"name": "punctuation.definition.comment.json"
}
},
"end": "\\*/",
"name": "comment.block.documentation.json"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.json"
}
},
"end": "\\*/",
"name": "comment.block.json"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.json"
}
},
"match": "(//).*$\\n?",
"name": "comment.line.double-slash.js"
}
]
},
"constant": {
"match": "\\b(?:true|false|null)\\b",
"name": "constant.language.json"
},
"number": {
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
"name": "constant.numeric.json"
},
"object": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.json"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.dictionary.end.json"
}
},
"name": "meta.structure.dictionary.json",
"patterns": [
{
"comment": "the JSON object key",
"include": "#objectkey"
},
{
"include": "#comments"
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.dictionary.key-value.json"
}
},
"end": "(,)|(?=\\})",
"endCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.json"
}
},
"name": "meta.structure.dictionary.value.json",
"patterns": [
{
"comment": "the JSON object value",
"include": "#value"
},
{
"match": "[^\\s,]",
"name": "invalid.illegal.expected-dictionary-separator.json"
}
]
},
{
"match": "[^\\s\\}]",
"name": "invalid.illegal.expected-dictionary-separator.json"
}
]
},
"string": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.json"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.json"
}
},
"name": "string.quoted.double.json",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"objectkey": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.support.type.property-name.begin.json"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.support.type.property-name.end.json"
}
},
"name": "string.json support.type.property-name.json",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"stringcontent": {
"patterns": [
{
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
"name": "constant.character.escape.json"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.json"
}
]
},
"value": {
"patterns": [
{
"include": "#constant"
},
{
"include": "#number"
},
{
"include": "#string"
},
{
"include": "#array"
},
{
"include": "#object"
},
{
"include": "#comments"
}
]
}
}
}

241
node_modules/shiki/languages/json5.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,241 @@
{
"scopeName": "source.json5",
"fileTypes": ["json5"],
"name": "json5",
"patterns": [
{
"include": "#comments"
},
{
"include": "#value"
}
],
"repository": {
"array": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.json5"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.array.end.json5"
}
},
"name": "meta.structure.array.json5",
"patterns": [
{
"include": "#comments"
},
{
"include": "#value"
},
{
"match": ",",
"name": "punctuation.separator.array.json5"
},
{
"match": "[^\\s\\]]",
"name": "invalid.illegal.expected-array-separator.json5"
}
]
},
"constant": {
"match": "\\b(?:true|false|null|Infinity|NaN)\\b",
"name": "constant.language.json5"
},
"infinity": {
"match": "(-)*\\b(?:Infinity|NaN)\\b",
"name": "constant.language.json5"
},
"number": {
"patterns": [
{
"comment": "handles hexadecimal numbers",
"match": "(0x)[0-9a-fA-f]*",
"name": "constant.hex.numeric.json5"
},
{
"comment": "handles integer and decimal numbers",
"match": "[+-.]?(?=[1-9]|0(?!\\d))\\d+(\\.\\d+)?([eE][+-]?\\d+)?",
"name": "constant.dec.numeric.json5"
}
]
},
"object": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.json5"
}
},
"comment": "a json5 object",
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.dictionary.end.json5"
}
},
"name": "meta.structure.dictionary.json5",
"patterns": [
{
"include": "#comments"
},
{
"comment": "the json5 object key",
"include": "#key"
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.dictionary.key-value.json5"
}
},
"end": "(,)|(?=\\})",
"endCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.json5"
}
},
"name": "meta.structure.dictionary.value.json5",
"patterns": [
{
"comment": "the json5 object value",
"include": "#value"
},
{
"match": "[^\\s,]",
"name": "invalid.illegal.expected-dictionary-separator.json5"
}
]
},
{
"match": "[^\\s\\}]",
"name": "invalid.illegal.expected-dictionary-separator.json5"
}
]
},
"stringSingle": {
"begin": "[']",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.json5"
}
},
"end": "[']",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.json5"
}
},
"name": "string.quoted.json5",
"patterns": [
{
"match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )",
"name": "constant.character.escape.json5"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.json5"
}
]
},
"stringDouble": {
"begin": "[\"]",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.json5"
}
},
"end": "[\"]",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.json5"
}
},
"name": "string.quoted.json5",
"patterns": [
{
"match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )",
"name": "constant.character.escape.json5"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.json5"
}
]
},
"key": {
"name": "string.key.json5",
"patterns": [
{
"include": "#stringSingle"
},
{
"include": "#stringDouble"
},
{
"match": "[a-zA-Z0-9_-]",
"name": "string.key.json5"
}
]
},
"value": {
"comment": "the 'value' diagram at http://json.org",
"patterns": [
{
"include": "#constant"
},
{
"include": "#infinity"
},
{
"include": "#number"
},
{
"include": "#stringSingle"
},
{
"include": "#stringDouble"
},
{
"include": "#array"
},
{
"include": "#object"
}
]
},
"comments": {
"patterns": [
{
"match": "/{2}.*",
"name": "comment.single.json5"
},
{
"begin": "/\\*\\*(?!/)",
"captures": {
"0": {
"name": "punctuation.definition.comment.json5"
}
},
"end": "\\*/",
"name": "comment.block.documentation.json5"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.json5"
}
},
"end": "\\*/",
"name": "comment.block.json5"
}
]
}
}
}

213
node_modules/shiki/languages/jsonc.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,213 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
"name": "jsonc",
"scopeName": "source.json.comments",
"patterns": [
{
"include": "#value"
}
],
"repository": {
"array": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.json.comments"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.array.end.json.comments"
}
},
"name": "meta.structure.array.json.comments",
"patterns": [
{
"include": "#value"
},
{
"match": ",",
"name": "punctuation.separator.array.json.comments"
},
{
"match": "[^\\s\\]]",
"name": "invalid.illegal.expected-array-separator.json.comments"
}
]
},
"comments": {
"patterns": [
{
"begin": "/\\*\\*(?!/)",
"captures": {
"0": {
"name": "punctuation.definition.comment.json.comments"
}
},
"end": "\\*/",
"name": "comment.block.documentation.json.comments"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.json.comments"
}
},
"end": "\\*/",
"name": "comment.block.json.comments"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.json.comments"
}
},
"match": "(//).*$\\n?",
"name": "comment.line.double-slash.js"
}
]
},
"constant": {
"match": "\\b(?:true|false|null)\\b",
"name": "constant.language.json.comments"
},
"number": {
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
"name": "constant.numeric.json.comments"
},
"object": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.json.comments"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.dictionary.end.json.comments"
}
},
"name": "meta.structure.dictionary.json.comments",
"patterns": [
{
"comment": "the JSON object key",
"include": "#objectkey"
},
{
"include": "#comments"
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.dictionary.key-value.json.comments"
}
},
"end": "(,)|(?=\\})",
"endCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.json.comments"
}
},
"name": "meta.structure.dictionary.value.json.comments",
"patterns": [
{
"comment": "the JSON object value",
"include": "#value"
},
{
"match": "[^\\s,]",
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
}
]
},
{
"match": "[^\\s\\}]",
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
}
]
},
"string": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.json.comments"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.json.comments"
}
},
"name": "string.quoted.double.json.comments",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"objectkey": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.support.type.property-name.begin.json.comments"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.support.type.property-name.end.json.comments"
}
},
"name": "string.json.comments support.type.property-name.json.comments",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"stringcontent": {
"patterns": [
{
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
"name": "constant.character.escape.json.comments"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.json.comments"
}
]
},
"value": {
"patterns": [
{
"include": "#constant"
},
{
"include": "#number"
},
{
"include": "#string"
},
{
"include": "#array"
},
{
"include": "#object"
},
{
"include": "#comments"
}
]
}
}
}

213
node_modules/shiki/languages/jsonl.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,213 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
"name": "jsonl",
"scopeName": "source.json.lines",
"patterns": [
{
"include": "#value"
}
],
"repository": {
"array": {
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.array.begin.json.lines"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.array.end.json.lines"
}
},
"name": "meta.structure.array.json.lines",
"patterns": [
{
"include": "#value"
},
{
"match": ",",
"name": "punctuation.separator.array.json.lines"
},
{
"match": "[^\\s\\]]",
"name": "invalid.illegal.expected-array-separator.json.lines"
}
]
},
"comments": {
"patterns": [
{
"begin": "/\\*\\*(?!/)",
"captures": {
"0": {
"name": "punctuation.definition.comment.json.lines"
}
},
"end": "\\*/",
"name": "comment.block.documentation.json.lines"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.json.lines"
}
},
"end": "\\*/",
"name": "comment.block.json.lines"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.json.lines"
}
},
"match": "(//).*$\\n?",
"name": "comment.line.double-slash.js"
}
]
},
"constant": {
"match": "\\b(?:true|false|null)\\b",
"name": "constant.language.json.lines"
},
"number": {
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
"name": "constant.numeric.json.lines"
},
"object": {
"begin": "\\{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.dictionary.begin.json.lines"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.dictionary.end.json.lines"
}
},
"name": "meta.structure.dictionary.json.lines",
"patterns": [
{
"comment": "the JSON object key",
"include": "#objectkey"
},
{
"include": "#comments"
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.dictionary.key-value.json.lines"
}
},
"end": "(,)|(?=\\})",
"endCaptures": {
"1": {
"name": "punctuation.separator.dictionary.pair.json.lines"
}
},
"name": "meta.structure.dictionary.value.json.lines",
"patterns": [
{
"comment": "the JSON object value",
"include": "#value"
},
{
"match": "[^\\s,]",
"name": "invalid.illegal.expected-dictionary-separator.json.lines"
}
]
},
{
"match": "[^\\s\\}]",
"name": "invalid.illegal.expected-dictionary-separator.json.lines"
}
]
},
"string": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.json.lines"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.json.lines"
}
},
"name": "string.quoted.double.json.lines",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"objectkey": {
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.support.type.property-name.begin.json.lines"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.support.type.property-name.end.json.lines"
}
},
"name": "string.json.lines support.type.property-name.json.lines",
"patterns": [
{
"include": "#stringcontent"
}
]
},
"stringcontent": {
"patterns": [
{
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
"name": "constant.character.escape.json.lines"
},
{
"match": "\\\\.",
"name": "invalid.illegal.unrecognized-string-escape.json.lines"
}
]
},
"value": {
"patterns": [
{
"include": "#constant"
},
{
"include": "#number"
},
{
"include": "#string"
},
{
"include": "#array"
},
{
"include": "#object"
},
{
"include": "#comments"
}
]
}
}
}

211
node_modules/shiki/languages/jsonnet.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,211 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "jsonnet",
"patterns": [
{
"include": "#expression"
},
{
"include": "#keywords"
}
],
"repository": {
"builtin-functions": {
"patterns": [
{
"match": "\\bstd[.](acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](filter|floor|force|length|log|makeArray|mantissa)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](objectFields|objectHas|pow|sin|sqrt|tan|type|thisFile)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](abs|assertEqual|escapeString(Bash|Dollars|Json|Python))\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](filterMap|flattenArrays|foldl|foldr|format|join)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](lines|manifest(Ini|Python(Vars)?)|map|max|min|mod)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](set|set(Diff|Inter|Member|Union)|sort)\\b",
"name": "support.function.jsonnet"
},
{
"match": "\\bstd[.](range|split|stringChars|substr|toString|uniq)\\b",
"name": "support.function.jsonnet"
}
]
},
"comment": {
"patterns": [
{
"begin": "/\\*",
"end": "\\*/",
"name": "comment.block.jsonnet"
},
{
"match": "//.*$",
"name": "comment.line.jsonnet"
},
{
"match": "#.*$",
"name": "comment.block.jsonnet"
}
]
},
"double-quoted-strings": {
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.jsonnet",
"patterns": [
{
"match": "\\\\([\"\\\\/bfnrt]|(u[0-9a-fA-F]{4}))",
"name": "constant.character.escape.jsonnet"
},
{
"match": "\\\\[^\"\\\\/bfnrtu]",
"name": "invalid.illegal.jsonnet"
}
]
},
"expression": {
"patterns": [
{
"include": "#literals"
},
{
"include": "#comment"
},
{
"include": "#single-quoted-strings"
},
{
"include": "#double-quoted-strings"
},
{
"include": "#triple-quoted-strings"
},
{
"include": "#builtin-functions"
},
{
"include": "#functions"
}
]
},
"functions": {
"patterns": [
{
"begin": "\\b([a-zA-Z_][a-z0-9A-Z_]*)\\s*\\(",
"beginCaptures": {
"1": {
"name": "entity.name.function.jsonnet"
}
},
"end": "\\)",
"name": "meta.function",
"patterns": [
{
"include": "#expression"
}
]
}
]
},
"keywords": {
"patterns": [
{
"match": "[!:~\\+\\-&\\|\\^=<>\\*\\/%]",
"name": "keyword.operator.jsonnet"
},
{
"match": "\\$",
"name": "keyword.other.jsonnet"
},
{
"match": "\\b(self|super|import|importstr|local|tailstrict)\\b",
"name": "keyword.other.jsonnet"
},
{
"match": "\\b(if|then|else|for|in|error|assert)\\b",
"name": "keyword.control.jsonnet"
},
{
"match": "\\b(function)\\b",
"name": "storage.type.jsonnet"
},
{
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(:::|\\+:::)",
"name": "variable.parameter.jsonnet"
},
{
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(::|\\+::)",
"name": "entity.name.type"
},
{
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(:|\\+:)",
"name": "variable.parameter.jsonnet"
}
]
},
"literals": {
"patterns": [
{
"match": "\\b(true|false|null)\\b",
"name": "constant.language.jsonnet"
},
{
"match": "\\b(\\d+([Ee][+-]?\\d+)?)\\b",
"name": "constant.numeric.jsonnet"
},
{
"match": "\\b\\d+[.]\\d*([Ee][+-]?\\d+)?\\b",
"name": "constant.numeric.jsonnet"
},
{
"match": "\\b[.]\\d+([Ee][+-]?\\d+)?\\b",
"name": "constant.numeric.jsonnet"
}
]
},
"single-quoted-strings": {
"begin": "'",
"end": "'",
"name": "string.quoted.double.jsonnet",
"patterns": [
{
"match": "\\\\(['\\\\/bfnrt]|(u[0-9a-fA-F]{4}))",
"name": "constant.character.escape.jsonnet"
},
{
"match": "\\\\[^'\\\\/bfnrtu]",
"name": "invalid.illegal.jsonnet"
}
]
},
"triple-quoted-strings": {
"patterns": [
{
"begin": "\\|\\|\\|",
"end": "\\|\\|\\|",
"name": "string.quoted.triple.jsonnet"
}
]
}
},
"scopeName": "source.jsonnet"
}

156
node_modules/shiki/languages/jssm.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,156 @@
{
"fileTypes": ["jssm", "jssm_state"],
"name": "jssm",
"patterns": [
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.mn"
}
},
"comment": "block comment",
"end": "\\*/",
"name": "comment.block.jssm"
},
{
"begin": "//",
"comment": "block comment",
"end": "$",
"name": "comment.line.jssm"
},
{
"begin": "\\${",
"captures": {
"0": {
"name": "entity.name.function"
}
},
"comment": "js outcalls",
"end": "}",
"name": "keyword.other"
},
{
"comment": "semver",
"match": "([0-9]*)(\\.)([0-9]*)(\\.)([0-9]*)",
"name": "constant.numeric"
},
{
"comment": "jssm language tokens",
"match": "graph_layout(\\s*)(:)",
"name": "constant.language.jssmLanguage"
},
{
"comment": "jssm language tokens",
"match": "machine_name(\\s*)(:)",
"name": "constant.language.jssmLanguage"
},
{
"comment": "jssm language tokens",
"match": "machine_version(\\s*)(:)",
"name": "constant.language.jssmLanguage"
},
{
"comment": "jssm language tokens",
"match": "jssm_version(\\s*)(:)",
"name": "constant.language.jssmLanguage"
},
{
"comment": "transitions",
"match": "<->",
"name": "keyword.control.transition.jssmArrow.legal_legal"
},
{
"comment": "transitions",
"match": "<-",
"name": "keyword.control.transition.jssmArrow.legal_none"
},
{
"comment": "transitions",
"match": "->",
"name": "keyword.control.transition.jssmArrow.none_legal"
},
{
"comment": "transitions",
"match": "<=>",
"name": "keyword.control.transition.jssmArrow.main_main"
},
{
"comment": "transitions",
"match": "=>",
"name": "keyword.control.transition.jssmArrow.none_main"
},
{
"comment": "transitions",
"match": "<=",
"name": "keyword.control.transition.jssmArrow.main_none"
},
{
"comment": "transitions",
"match": "<~>",
"name": "keyword.control.transition.jssmArrow.forced_forced"
},
{
"comment": "transitions",
"match": "~>",
"name": "keyword.control.transition.jssmArrow.none_forced"
},
{
"comment": "transitions",
"match": "<~",
"name": "keyword.control.transition.jssmArrow.forced_none"
},
{
"comment": "transitions",
"match": "<-=>",
"name": "keyword.control.transition.jssmArrow.legal_main"
},
{
"comment": "transitions",
"match": "<=->",
"name": "keyword.control.transition.jssmArrow.main_legal"
},
{
"comment": "transitions",
"match": "<-~>",
"name": "keyword.control.transition.jssmArrow.legal_forced"
},
{
"comment": "transitions",
"match": "<~->",
"name": "keyword.control.transition.jssmArrow.forced_legal"
},
{
"comment": "transitions",
"match": "<=~>",
"name": "keyword.control.transition.jssmArrow.main_forced"
},
{
"comment": "transitions",
"match": "<~=>",
"name": "keyword.control.transition.jssmArrow.forced_main"
},
{
"comment": "edge probability annotation",
"match": "([0-9]+)%",
"name": "constant.numeric.jssmProbability"
},
{
"comment": "action annotation",
"match": "\\'[^']*\\'",
"name": "constant.character.jssmAction"
},
{
"comment": "jssm label annotation",
"match": "\\\"[^\"]*\\\"",
"name": "entity.name.tag.jssmLabel.doublequoted"
},
{
"comment": "jssm label annotation",
"match": "([a-zA-Z0-9_.+&()#@!?,])",
"name": "entity.name.tag.jssmLabel.atom"
}
],
"scopeName": "source.jssm",
"uuid": "2bb22b55-e811-4383-9929-ae6d0ab92aca"
}

5921
node_modules/shiki/languages/jsx.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

945
node_modules/shiki/languages/julia.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,945 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/JuliaEditorSupport/atom-language-julia/blob/master/grammars/julia_vscode.json",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/7b7801f41ce4ac1303bd17e057dbe677e24f597f",
"name": "julia",
"scopeName": "source.julia",
"comment": "This grammar is used by Atom (Oniguruma), GitHub (PCRE), and VSCode (Oniguruma),\nso all regexps must be compatible with both engines.\n\nSpecs:\n- https://github.com/kkos/oniguruma/blob/master/doc/RE\n- https://www.pcre.org/current/doc/html/",
"patterns": [
{
"include": "#operator"
},
{
"include": "#array"
},
{
"include": "#string"
},
{
"include": "#parentheses"
},
{
"include": "#bracket"
},
{
"include": "#function_decl"
},
{
"include": "#function_call"
},
{
"include": "#keyword"
},
{
"include": "#number"
},
{
"include": "#comment"
},
{
"include": "#type_decl"
},
{
"include": "#symbol"
}
],
"repository": {
"array": {
"patterns": [
{
"begin": "\\[",
"beginCaptures": {
"0": {
"name": "meta.bracket.julia"
}
},
"end": "(\\])((?:\\.)?'*)",
"endCaptures": {
"1": {
"name": "meta.bracket.julia"
},
"2": {
"name": "keyword.operator.transpose.julia"
}
},
"name": "meta.array.julia",
"patterns": [
{
"match": "\\bbegin\\b",
"name": "constant.numeric.julia"
},
{
"match": "\\bend\\b",
"name": "constant.numeric.julia"
},
{
"match": "\\bfor\\b",
"name": "keyword.control.julia"
},
{
"include": "$self"
}
]
}
]
},
"parentheses": {
"patterns": [
{
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "meta.bracket.julia"
}
},
"end": "(\\))((?:\\.)?'*)",
"endCaptures": {
"1": {
"name": "meta.bracket.julia"
},
"2": {
"name": "keyword.operator.transpose.julia"
}
},
"patterns": [
{
"include": "$self"
}
]
}
]
},
"bracket": {
"patterns": [
{
"match": "(?:\\(|\\)|\\[|\\]|\\{|\\}|,|;)(?!('|(?:\\.'))*\\.?')",
"name": "meta.bracket.julia"
}
]
},
"comment": {
"patterns": [
{
"include": "#comment_block"
},
{
"begin": "#",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.julia"
}
},
"end": "\\n",
"name": "comment.line.number-sign.julia"
}
]
},
"comment_block": {
"patterns": [
{
"begin": "#=",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.julia"
}
},
"end": "=#",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.julia"
}
},
"name": "comment.block.number-sign-equals.julia",
"patterns": [
{
"include": "#comment_block"
}
]
}
]
},
"function_call": {
"patterns": [
{
"begin": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?\\.?(\\()",
"beginCaptures": {
"1": {
"name": "support.function.julia"
},
"2": {
"name": "support.type.julia"
},
"3": {
"name": "meta.bracket.julia"
}
},
"end": "\\)(('|(\\.'))*\\.?')?",
"endCaptures": {
"0": {
"name": "meta.bracket.julia"
},
"1": {
"name": "keyword.operator.transposed-func.julia"
}
},
"patterns": [
{
"match": "\\bfor\\b",
"name": "keyword.control.julia"
},
{
"include": "$self"
}
]
}
]
},
"function_decl": {
"patterns": [
{
"captures": {
"1": {
"name": "entity.name.function.julia"
},
"2": {
"name": "support.type.julia"
}
},
"match": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?(?=\\([^#]*\\)(::[^\\s]+)?(\\s*\\bwhere\\b\\s+.+?)?\\s*?=(?![=>]))",
"comment": "first group is function name\nSecond group is type parameters (e.g. {T<:Number, S})\nThen open parens\nThen a lookahead ensures that we are followed by:\n - anything (function argumnets)\n - 0 or more spaces\n - Finally an equal sign\nNegative lookahead ensures we don't have another equal sign (not `==`)"
},
{
"captures": {
"1": {
"name": "keyword.other.julia"
},
"2": {
"name": "keyword.operator.dots.julia"
},
"3": {
"name": "entity.name.function.julia"
},
"4": {
"name": "support.type.julia"
}
},
"match": "\\b(function|macro)(?:\\s+(?:(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*(\\.))?((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?|\\s*)(?=\\()",
"comment": "similar regex to previous, but with keyword not 1-line syntax"
}
]
},
"keyword": {
"patterns": [
{
"match": "\\b(?<![:_\\.])(?:function|mutable\\s+struct|struct|macro|quote|abstract\\s+type|primitive\\s+type|module|baremodule|where)\\b",
"name": "keyword.other.julia"
},
{
"comment": "special case for blocks to support tokenizing outer properly",
"begin": "\\b(for)\\b",
"beginCaptures": {
"0": {
"name": "keyword.control.julia"
}
},
"end": "(?<!,|\\s)(\\s*\\n)",
"patterns": [
{
"match": "\\bouter\\b",
"name": "keyword.other.julia"
},
{
"include": "$self"
}
]
},
{
"match": "\\b(?<![:_])(?:if|else|elseif|while|begin|let|do|try|catch|finally|return|break|continue)\\b",
"name": "keyword.control.julia"
},
{
"match": "\\b(?<![:_])end\\b",
"name": "keyword.control.end.julia"
},
{
"match": "\\b(?<![:_])(?:global|local|const)\\b",
"name": "keyword.storage.modifier.julia"
},
{
"match": "\\b(?<![:_])(?:export)\\b",
"name": "keyword.control.export.julia"
},
{
"match": "\\b(?<![:_])(?:import)\\b",
"name": "keyword.control.import.julia"
},
{
"match": "\\b(?<![:_])(?:using)\\b",
"name": "keyword.control.using.julia"
},
{
"match": "(?<=\\w\\s)\\b(as)\\b(?=\\s\\w)",
"name": "keyword.control.as.julia"
},
{
"match": "(@(\\.|(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*))",
"name": "support.function.macro.julia"
}
]
},
"number": {
"patterns": [
{
"match": "((?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿]))(?:(?:\\b0(?:x|X)[0-9a-fA-F](?:_?[0-9a-fA-F])*)|(?:\\b0o[0-7](?:_?[0-7])*)|(?:\\b0b[0-1](?:_?[0-1])*)|(?:(?:\\b[0-9](?:_?[0-9])*\\.?(?!\\.)(?:[_0-9]*))|(?:\\b\\.[0-9](?:_?[0-9])*))(?:[efE][+-]?[0-9](?:_?[0-9])*)?(?:im\\b|Inf(?:16|32|64)?\\b|NaN(?:16|32|64)?\\b|π\\b|pi\\b|\\b)?|\\b[0-9]+|\\bInf(?:16|32|64)?\\b|\\bNaN(?:16|32|64)?\\b|\\bπ\\b|\\bpi\\b|\\b\\b))('*)",
"captures": {
"1": {
"name": "constant.numeric.julia"
},
"2": {
"name": "keyword.operator.conjugate-number.julia"
}
}
},
{
"match": "\\bARGS\\b|\\bC_NULL\\b|\\bDEPOT_PATH\\b|\\bENDIAN_BOM\\b|\\bENV\\b|\\bLOAD_PATH\\b|\\bPROGRAM_FILE\\b|\\bstdin\\b|\\bstdout\\b|\\bstderr\\b|\\bVERSION\\b|\\bdevnull\\b",
"name": "constant.global.julia"
},
{
"match": "\\btrue\\b|\\bfalse\\b|\\bnothing\\b|\\bmissing\\b",
"name": "constant.language.julia"
}
]
},
"operator": {
"patterns": [
{
"match": "(?:->|<-|-->|=>)",
"name": "keyword.operator.arrow.julia"
},
{
"match": "(?::=|\\+=|-=|\\*=|//=|/=|\\.//=|\\./=|\\.\\*=|\\\\=|\\.\\\\=|\\^=|\\.\\^=|%=|\\.%=|÷=|\\.÷=|\\|=|&=|\\.&=|⊻=|\\.⊻=|\\$=|<<=|>>=|>>>=|=(?!=))",
"name": "keyword.operator.update.julia"
},
{
"match": "(?:<<|>>>|>>|\\.>>>|\\.>>|\\.<<)",
"name": "keyword.operator.shift.julia"
},
{
"match": "(?:\\s*(::|>:|<:)\\s*((?:(?:Union)?\\([^)]*\\)|[[:alpha:]_$∇][[:word:]⁺-ₜ!\\.]*(?:(?:{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})|(?:\".+?(?<!\\\\)\"))?)))(?:\\.\\.\\.)?",
"captures": {
"1": {
"name": "keyword.operator.relation.types.julia"
},
"2": {
"name": "support.type.julia"
}
}
},
{
"match": "(?:===|∈|\\.∈|∉|\\.∉|∋|\\.∋|∌|\\.∌|≈|\\.≈|≉|\\.≉|≠|\\.≠|≡|\\.≡|≢|\\.≢|⊆|\\.⊆|⊇|\\.⊇|⊈|\\.⊈|⊉|\\.⊉|⊊|\\.⊊|⊋|\\.⊋|\\.==|!==|!=|\\.>=|\\.>|\\.<=|\\.<|\\.≤|\\.≥|==|\\.!=|\\.=|\\.!|<:|>:|:>|(?<!>)>=|(?<!<)<=|>|<|≥|≤)",
"name": "keyword.operator.relation.julia"
},
{
"match": "(?<=\\s)(?:\\?)(?=\\s)",
"name": "keyword.operator.ternary.julia"
},
{
"match": "(?<=\\s)(?:\\:)(?=\\s)",
"name": "keyword.operator.ternary.julia"
},
{
"match": "(?:\\|\\||&&|(?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿]))!)",
"name": "keyword.operator.boolean.julia"
},
{
"match": "(?<=[[:word:]⁺-ₜ!′∇\\)\\]\\}])(?::)",
"name": "keyword.operator.range.julia"
},
{
"match": "(?:\\|>)",
"name": "keyword.operator.applies.julia"
},
{
"match": "(?:\\||\\.\\||\\&|\\.\\&|~|\\.~|⊻|\\.⊻)",
"name": "keyword.operator.bitwise.julia"
},
{
"match": "(?:\\+\\+|--|\\+|\\.\\+|-|\\.\\-|\\*|\\.\\*|//(?!=)|\\.//(?!=)|/|\\./|%|\\.%|\\\\|\\.\\\\|\\^|\\.\\^|÷|\\.÷|⋅|\\.⋅|∩|\\.∩||\\.|×|√|∛)",
"name": "keyword.operator.arithmetic.julia"
},
{
"match": "(?:∘)",
"name": "keyword.operator.compose.julia"
},
{
"match": "(?:::|(?<=\\s)isa(?=\\s))",
"name": "keyword.operator.isa.julia"
},
{
"match": "(?:(?<=\\s)in(?=\\s))",
"name": "keyword.operator.relation.in.julia"
},
{
"match": "(?:\\.(?=(?:@|_|\\p{L}))|\\.\\.+)",
"name": "keyword.operator.dots.julia"
},
{
"match": "(?:\\$)(?=.+)",
"name": "keyword.operator.interpolation.julia"
},
{
"captures": {
"2": {
"name": "keyword.operator.transposed-variable.julia"
}
},
"match": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)(('|(\\.'))*\\.?')"
},
{
"captures": {
"1": {
"name": "bracket.end.julia"
},
"2": {
"name": "keyword.operator.transposed-matrix.julia"
}
},
"match": "(\\])((?:'|(?:\\.'))*\\.?')"
},
{
"captures": {
"1": {
"name": "bracket.end.julia"
},
"2": {
"name": "keyword.operator.transposed-parens.julia"
}
},
"match": "(\\))((?:'|(?:\\.'))*\\.?')"
}
]
},
"string": {
"patterns": [
{
"begin": "(?:(@doc)\\s((?:doc)?\"\"\")|(doc\"\"\"))",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "(\"\"\") ?(->)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "keyword.operator.arrow.julia"
}
},
"name": "string.docstring.julia",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(i?cxx)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.cxx.julia",
"contentName": "meta.embedded.inline.cpp",
"patterns": [
{
"include": "source.cpp#root_context"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(py)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "([\\s\\w]*)(\"\"\")",
"endCaptures": {
"2": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.python.julia",
"contentName": "meta.embedded.inline.python",
"patterns": [
{
"include": "source.python"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(js)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.js.julia",
"contentName": "meta.embedded.inline.javascript",
"patterns": [
{
"include": "source.js"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(R)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.R.julia",
"contentName": "meta.embedded.inline.r",
"patterns": [
{
"include": "source.r"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(raw)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"name": "string.quoted.other.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
}
},
{
"begin": "(raw)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"name": "string.quoted.other.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
}
},
{
"begin": "(sql)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.sql.julia",
"contentName": "meta.embedded.inline.sql",
"patterns": [
{
"include": "source.sql"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "var\"\"\"",
"end": "\"\"\"",
"name": "constant.other.symbol.julia"
},
{
"begin": "var\"",
"end": "\"",
"name": "constant.other.symbol.julia"
},
{
"begin": "^\\s?(doc)?(\"\"\")\\s?$",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "(\"\"\")",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "string.docstring.julia",
"comment": "This only matches docstrings that start and end with triple quotes on\ntheir own line in the void",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "'(?!')",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "string.quoted.single.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "\"\"\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.multiline.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.multiline.end.julia"
}
},
"name": "string.quoted.triple.double.julia",
"comment": "multi-line string with triple double quotes",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"name": "string.quoted.double.julia",
"begin": "\"(?!\"\")",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"comment": "String with single pair of double quotes. Regex matches isolated double quote",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "r\"\"\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.regexp.begin.julia"
}
},
"end": "(\"\"\")([imsx]{0,4})?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.regexp.end.julia"
},
"2": {
"comment": "I took this scope name from python regex grammar",
"name": "keyword.other.option-toggle.regexp.julia"
}
},
"name": "string.regexp.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "r\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.regexp.begin.julia"
}
},
"end": "(\")([imsx]{0,4})?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.regexp.end.julia"
},
"2": {
"comment": "I took this scope name from python regex grammar",
"name": "keyword.other.option-toggle.regexp.julia"
}
},
"name": "string.regexp.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?<!\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)\"\"\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
},
"1": {
"name": "support.function.macro.julia"
}
},
"end": "(\"\"\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?<!\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
},
"1": {
"name": "support.function.macro.julia"
}
},
"end": "(?<![^\\\\]\\\\)(\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?<!`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?```",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
},
"1": {
"name": "support.function.macro.julia"
}
},
"end": "(```)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?<!`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?`",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.julia"
},
"1": {
"name": "support.function.macro.julia"
}
},
"end": "(?<![^\\\\]\\\\)(`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)?",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
"patterns": [
{
"include": "#string_escaped_char"
}
]
}
]
},
"string_escaped_char": {
"patterns": [
{
"match": "\\\\(\\\\|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8}|.)",
"name": "constant.character.escape.julia"
}
]
},
"string_dollar_sign_interpolate": {
"patterns": [
{
"match": "\\$(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*",
"name": "variable.interpolation.julia"
},
{
"begin": "\\$\\(",
"end": "\\)",
"name": "variable.interpolation.julia",
"comment": "`punctuation.section.embedded`, `constant.escape`,\n& `meta.embedded.line` were considered but appear to have even spottier\nsupport among popular syntaxes.",
"patterns": [
{
"include": "#parentheses"
},
{
"include": "$self"
}
]
}
]
},
"symbol": {
"patterns": [
{
"match": "(?<![[:word:]⁺-ₜ!′∇\\)\\]\\}]):(?:(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)(?!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿]))(?![\"`])",
"name": "constant.other.symbol.julia",
"comment": "This is string.quoted.symbol.julia in tpoisot's package"
}
]
},
"type_decl": {
"patterns": [
{
"captures": {
"1": {
"name": "entity.name.type.julia"
},
"2": {
"name": "entity.other.inherited-class.julia"
},
"3": {
"name": "punctuation.separator.inheritance.julia"
}
},
"match": "(?>!:_)(?:struct|mutable\\s+struct|abstract\\s+type|primitive\\s+type)\\s+((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)(\\s*(<:)\\s*(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*(?:{.*})?)?",
"name": "meta.type.julia"
}
]
}
}
}

531
node_modules/shiki/languages/kotlin.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,531 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "kotlin",
"scopeName": "source.kotlin",
"patterns": [
{
"include": "#import"
},
{
"include": "#package"
},
{
"include": "#code"
}
],
"fileTypes": ["kt", "kts"],
"repository": {
"import": {
"begin": "\\b(import)\\b\\s*",
"beginCaptures": {
"1": {
"name": "storage.type.import.kotlin"
}
},
"end": ";|$",
"name": "meta.import.kotlin",
"contentName": "entity.name.package.kotlin",
"patterns": [
{
"include": "#comments"
},
{
"include": "#hard-keywords"
},
{
"match": "\\*",
"name": "variable.language.wildcard.kotlin"
}
]
},
"package": {
"begin": "\\b(package)\\b\\s*",
"beginCaptures": {
"1": {
"name": "storage.type.package.kotlin"
}
},
"end": ";|$",
"name": "meta.package.kotlin",
"contentName": "entity.name.package.kotlin",
"patterns": [
{
"include": "#comments"
}
]
},
"code": {
"patterns": [
{
"include": "#comments"
},
{
"include": "#keywords"
},
{
"include": "#annotation-simple"
},
{
"include": "#annotation-site-list"
},
{
"include": "#annotation-site"
},
{
"include": "#class-declaration"
},
{
"include": "#object-declaration"
},
{
"include": "#type-alias"
},
{
"include": "#function-declaration"
},
{
"include": "#variable-declaration"
},
{
"include": "#type-constraint"
},
{
"include": "#type-annotation"
},
{
"include": "#function-call"
},
{
"include": "#method-reference"
},
{
"include": "#key"
},
{
"include": "#string"
},
{
"include": "#string-empty"
},
{
"include": "#string-multiline"
},
{
"include": "#character"
},
{
"include": "#operators"
},
{
"include": "#self-reference"
},
{
"include": "#decimal-literal"
},
{
"include": "#hex-literal"
},
{
"include": "#binary-literal"
},
{
"include": "#boolean-literal"
},
{
"include": "#null-literal"
}
]
},
"comments": {
"patterns": [
{
"include": "#comment-line"
},
{
"include": "#comment-block"
},
{
"include": "#comment-javadoc"
}
]
},
"comment-line": {
"begin": "//",
"end": "$",
"name": "comment.line.double-slash.kotlin"
},
"comment-block": {
"begin": "/\\*(?!\\*)",
"end": "\\*/",
"name": "comment.block.kotlin"
},
"comment-javadoc": {
"patterns": [
{
"begin": "/\\*\\*",
"end": "\\*/",
"name": "comment.block.javadoc.kotlin",
"patterns": [
{
"match": "@(author|deprecated|return|see|serial|since|version)\\b",
"name": "keyword.other.documentation.javadoc.kotlin"
},
{
"match": "(@param)\\s+(\\S+)",
"captures": {
"1": {
"name": "keyword.other.documentation.javadoc.kotlin"
},
"2": {
"name": "variable.parameter.kotlin"
}
}
},
{
"match": "(@(?:exception|throws))\\s+(\\S+)",
"captures": {
"1": {
"name": "keyword.other.documentation.javadoc.kotlin"
},
"2": {
"name": "entity.name.type.class.kotlin"
}
}
},
{
"match": "{(@link)\\s+(\\S+)?#([\\w$]+\\s*\\([^\\(\\)]*\\)).*}",
"captures": {
"1": {
"name": "keyword.other.documentation.javadoc.kotlin"
},
"2": {
"name": "entity.name.type.class.kotlin"
},
"3": {
"name": "variable.parameter.kotlin"
}
}
}
]
}
]
},
"keywords": {
"patterns": [
{
"include": "#prefix-modifiers"
},
{
"include": "#postfix-modifiers"
},
{
"include": "#soft-keywords"
},
{
"include": "#hard-keywords"
},
{
"include": "#control-keywords"
}
]
},
"prefix-modifiers": {
"match": "\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\b",
"name": "storage.modifier.other.kotlin"
},
"postfix-modifiers": {
"match": "\\b(where|by|get|set)\\b",
"name": "storage.modifier.other.kotlin"
},
"soft-keywords": {
"match": "\\b(catch|finally|field)\\b",
"name": "keyword.soft.kotlin"
},
"hard-keywords": {
"match": "\\b(as|typeof|is|in)\\b",
"name": "keyword.hard.kotlin"
},
"control-keywords": {
"match": "\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\b",
"name": "keyword.control.kotlin"
},
"annotation-simple": {
"match": "(?<!\\w)@[\\w\\.]+\\b(?!:)",
"name": "entity.name.type.annotation.kotlin"
},
"annotation-site-list": {
"begin": "(?<!\\w)(@\\w+):\\s*\\[",
"end": "\\]",
"beginCaptures": {
"1": {
"name": "entity.name.type.annotation-site.kotlin"
}
},
"patterns": [
{
"include": "#unescaped-annotation"
}
]
},
"annotation-site": {
"begin": "(?<!\\w)(@\\w+):\\s*(?!\\[)",
"end": "$",
"beginCaptures": {
"1": {
"name": "entity.name.type.annotation-site.kotlin"
}
},
"patterns": [
{
"include": "#unescaped-annotation"
}
]
},
"unescaped-annotation": {
"match": "\\b[\\w\\.]+\\b",
"name": "entity.name.type.annotation.kotlin"
},
"class-declaration": {
"match": "\\b(class|interface)\\s+(\\b\\w+\\b|`[^`]+`)\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?",
"captures": {
"1": {
"name": "storage.type.class.kotlin"
},
"2": {
"name": "entity.name.type.class.kotlin"
},
"3": {
"patterns": [
{
"include": "#type-parameter"
}
]
}
}
},
"object-declaration": {
"match": "\\b(object)\\s+(\\b\\w+\\b|`[^`]+`)",
"captures": {
"1": {
"name": "storage.type.object.kotlin"
},
"2": {
"name": "entity.name.type.object.kotlin"
}
}
},
"type-alias": {
"match": "\\b(typealias)\\s+(\\b\\w+\\b|`[^`]+`)\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?",
"captures": {
"1": {
"name": "storage.type.alias.kotlin"
},
"2": {
"name": "entity.name.type.kotlin"
},
"3": {
"patterns": [
{
"include": "#type-parameter"
}
]
}
}
},
"function-declaration": {
"match": "\\b(fun)\\b\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?\\s*(?:(\\w+)\\.)?(\\b\\w+\\b|`[^`]+`)",
"captures": {
"1": {
"name": "storage.type.function.kotlin"
},
"2": {
"patterns": [
{
"include": "#type-parameter"
}
]
},
"4": {
"name": "entity.name.type.class.extension.kotlin"
},
"5": {
"name": "entity.name.function.declaration.kotlin"
}
}
},
"variable-declaration": {
"match": "\\b(val|var)\\b\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?",
"captures": {
"1": {
"name": "storage.type.variable.kotlin"
},
"2": {
"patterns": [
{
"include": "#type-parameter"
}
]
}
}
},
"type-parameter": {
"patterns": [
{
"match": "\\b\\w+\\b",
"name": "entity.name.type.kotlin"
},
{
"match": "\\b(in|out)\\b",
"name": "storage.modifier.kotlin"
}
]
},
"type-annotation": {
"match": "(?<![:?]):\\s*(\\w|\\?|\\s|->|(?<GROUP>[<(]([^<>()\"']|\\g<GROUP>)+[)>]))+",
"captures": {
"0": {
"patterns": [
{
"include": "#type-parameter"
}
]
}
}
},
"function-call": {
"match": "\\??\\.?(\\b\\w+\\b|`[^`]+`)\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?\\s*(?=[({])",
"captures": {
"1": {
"name": "entity.name.function.call.kotlin"
},
"2": {
"patterns": [
{
"include": "#type-parameter"
}
]
}
}
},
"method-reference": {
"match": "\\??::(\\b\\w+\\b|`[^`]+`)",
"captures": {
"1": {
"name": "entity.name.function.reference.kotlin"
}
}
},
"key": {
"match": "\\b(\\w=)\\s*(=)",
"captures": {
"1": {
"name": "variable.parameter.kotlin"
},
"2": {
"name": "keyword.operator.assignment.kotlin"
}
}
},
"string-empty": {
"match": "(?<!\")\"\"(?!\")",
"name": "string.quoted.double.kotlin"
},
"string": {
"begin": "(?<!\")\"(?!\")",
"end": "\"",
"name": "string.quoted.double.kotlin",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.kotlin"
},
{
"include": "#string-escape-simple"
},
{
"include": "#string-escape-bracketed"
}
]
},
"string-multiline": {
"begin": "\"\"\"",
"end": "\"\"\"",
"name": "string.quoted.double.kotlin",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.kotlin"
},
{
"include": "#string-escape-simple"
},
{
"include": "#string-escape-bracketed"
}
]
},
"string-escape-simple": {
"match": "(?<!\\\\)\\$\\w+\\b",
"name": "variable.string-escape.kotlin"
},
"string-escape-bracketed": {
"begin": "(?<!\\\\)(\\$\\{)",
"end": "(\\})",
"name": "meta.template.expression.kotlin",
"beginCaptures": {
"1": {
"name": "punctuation.definition.template-expression.begin"
}
},
"endCaptures": {
"1": {
"name": "punctuation.definition.template-expression.end"
}
},
"patterns": [
{
"include": "#code"
}
]
},
"character": {
"begin": "'",
"end": "'",
"name": "string.quoted.single.kotlin",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.kotlin"
}
]
},
"decimal-literal": {
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(u|U)?(L|F|f)?\\b",
"name": "constant.numeric.decimal.kotlin"
},
"hex-literal": {
"match": "0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*(u|U)?",
"name": "constant.numeric.hex.kotlin"
},
"binary-literal": {
"match": "0(b|B)[01][01_]*",
"name": "constant.numeric.binary.kotlin"
},
"boolean-literal": {
"match": "\\b(true|false)\\b",
"name": "constant.language.boolean.kotlin"
},
"null-literal": {
"match": "\\bnull\\b",
"name": "constant.language.null.kotlin"
},
"operators": {
"match": "<=|>=|===|==|=>|=|\\!==|\\!=|\\+=|\\+\\+|\\+|-=|--|-|\\*=|\\*|/=|/|%=|%|!|\\&\\&|\\&|\\|\\||\\|..",
"name": "keyword.operator.kotlin"
},
"self-reference": {
"match": "\\b(this|super)(@\\w+)?\\b",
"name": "variable.language.this.kotlin"
}
}
}

684
node_modules/shiki/languages/kusto.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,684 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"scopeName": "source.kusto",
"fileTypes": ["csl", "kusto", "kql"],
"name": "kusto",
"patterns": [
{
"match": "\\b(by|from|of|to|step|with)\\b",
"name": "keyword.other.operator.kusto",
"comment": "Tabular operators: common helper operators"
},
{
"match": "\\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\\b",
"name": "keyword.control.kusto",
"comment": "Query statements: https://docs.microsoft.com/en-us/azure/kusto/query/statements"
},
{
"match": "\\b(and|or|has_all|has_any|matches|regex)\\b",
"name": "keyword.other.operator.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators"
},
{
"match": "\\b(cluster|database)(?:\\s*\\(\\s*(.+?)\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#Strings"
}
]
}
},
"name": "meta.special.database.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/clusterfunction"
},
{
"match": "\\b(external_table|materialized_view|materialize|table|toscalar)\\b",
"name": "support.function.kusto",
"comment": "Special functions: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tablefunction"
},
{
"match": "(?<!\\w)(!?between)\\b",
"name": "keyword.other.operator.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/betweenoperator"
},
{
"match": "\\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\\s*\\(\\s*(\\w+)\\s*,\\s*(\\w+)\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
},
"3": {
"patterns": [
{
"include": "#Numeric"
}
]
}
},
"name": "meta.scalar.bitwise.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binoperators"
},
{
"match": "\\b(binary_not|bitset_count_ones)(?:\\s*\\(\\s*(\\w+)\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
}
},
"name": "meta.scalar.bitwise.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binary-notfunction"
},
{
"match": "(?<!\\w)(!?in~?)(?!\\w)",
"name": "keyword.other.operator.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/in-cs-operator"
},
{
"match": "(?<!\\w)(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?!\\w)",
"name": "keyword.other.operator.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators"
},
{
"match": "\\b(range)\\s*\\((?:\\s*(\\w+(?:\\(.*?\\))?)\\s*,\\s*(\\w+(?:\\(.*?\\))?)\\s*,?(?:\\s*)?(\\w+(?:\\(.*?\\))?)?\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#DateTimeTimeSpanDataTypes"
},
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
},
"3": {
"patterns": [
{
"include": "#DateTimeTimeSpanDataTypes"
},
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
},
"4": {
"patterns": [
{
"include": "#DateTimeTimeSpanDataTypes"
},
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
}
},
"name": "meta.scalar.function.range.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangefunction"
},
{
"match": "\\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\\b",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalarfunctions"
},
{
"match": "\\b(bin)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(.+?)\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#DateTimeTimeSpanDataTypes"
},
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
},
"3": {
"patterns": [
{
"include": "#TimeSpanLiterals"
},
{
"include": "#Numeric"
}
]
}
},
"name": "meta.scalar.function.bin.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binfunction"
},
{
"match": "\\b(count)\\s*\\(\\s*\\)(?!\\w)",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/count-aggfunction"
},
{
"match": "\\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles|percentile|stdevif|stdevp|stdev|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep|variance)\\b",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/aggregation-functions"
},
{
"match": "\\b(geo_distance_2points|geo_distance_point_to_line|geo_distance_point_to_polygon|geo_intersects_2lines|geo_intersects_2polygons|geo_intersects_line_with_polygon|geo_intersection_2lines|geo_intersection_2polygons|geo_intersection_line_with_polygon|geo_line_centroid|geo_line_densify|geo_line_length|geo_line_simplify|geo_polygon_area|geo_polygon_centroid|geo_polygon_densify|geo_polygon_perimeter|geo_polygon_simplify|geo_polygon_to_s2cells|geo_point_in_circle|geo_point_in_polygon|geo_point_to_geohash|geo_point_to_h3cell|geo_point_to_s2cell|geo_geohash_to_central_point|geo_geohash_neighbors|geo_geohash_to_polygon|geo_s2cell_to_central_point|geo_s2cell_neighbors|geo_s2cell_to_polygon|geo_h3cell_to_central_point|geo_h3cell_neighbors|geo_h3cell_to_polygon|geo_h3cell_parent|geo_h3cell_children|geo_h3cell_level|geo_h3cell_rings|geo_simplify_polygons_array|geo_union_lines_array|geo_union_polygons_array)\\b",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/geospatial-grid-systems"
},
{
"match": "\\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\\b",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/windowsfunctions"
},
{
"match": "\\.(create-or-alter|replace)",
"name": "keyword.control.kusto",
"comment": "User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions"
},
{
"match": "(?<=let ).+(?=\\W*=)",
"name": "entity.function.name.lambda.kusto",
"comment": "User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions"
},
{
"match": "\\b(folder|docstring|skipvalidation)\\b",
"name": "keyword.other.operator.kusto",
"comment": "User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions"
},
{
"match": "\\b(function)\\b",
"name": "storage.type.kusto"
},
{
"match": "\\b(bool|decimal|dynamic|guid|int|long|real|string)\\b",
"name": "storage.type.kusto",
"comment": "Data types: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types"
},
{
"match": "\\b(as)\\s+(\\w+)\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "variable.other.kusto"
}
},
"name": "meta.query.as.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/asoperator"
},
{
"match": "\\b(datatable)(?=\\W*\\()",
"name": "keyword.other.query.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatableoperator"
},
{
"match": "\\b(facet)(?:\\s+(by))?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "keyword.other.operator.kusto"
}
},
"name": "meta.query.facet.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/facetoperator"
},
{
"match": "\\b(invoke)(?:\\s+(\\w+))?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "entity.name.function.kusto"
}
},
"name": "meta.query.invoke.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/invokeoperator"
},
{
"match": "\\b(order)(?:\\s+(by)\\s+(\\w+))?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "keyword.other.operator.kusto"
},
"3": {
"name": "variable.other.column.kusto"
}
},
"name": "meta.query.order.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/orderoperator"
},
{
"match": "\\b(range)\\s+(\\w+)\\s+(from)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(to)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(step)\\s+(\\w+(?:\\(\\w*\\))?)\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "variable.other.column.kusto"
},
"3": {
"name": "keyword.other.operator.kusto"
},
"4": {
"patterns": [
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
},
"5": {
"name": "keyword.other.operator.kusto"
},
"6": {
"patterns": [
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
},
"7": {
"name": "keyword.other.operator.kusto"
},
"8": {
"patterns": [
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#Numeric"
}
]
}
},
"name": "meta.query.range.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangeoperator"
},
{
"match": "\\b(sample)(?:\\s+(\\d+))?(?![\\w-])",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
}
},
"name": "meta.query.sample.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampleoperator"
},
{
"match": "\\b(sample-distinct)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+))?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
},
"3": {
"name": "keyword.other.operator.kusto"
},
"4": {
"name": "variable.other.column.kusto"
}
},
"name": "meta.query.sample-distinct.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampledistinctoperator"
},
{
"match": "\\b(sort)(?:\\s+(by))?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"name": "keyword.other.operator.kusto"
}
},
"name": "meta.query.sort.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sortoperator"
},
{
"match": "\\b(take|limit)(?:\\s+(\\d+))\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
}
},
"name": "meta.query.take.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/takeoperator"
},
{
"match": "\\b(top)(?:\\s+(\\d+)\\s+(by)\\s+(\\w+))?(?![\\w-])\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
},
"3": {
"name": "keyword.other.operator.kusto"
},
"4": {
"name": "variable.other.column.kusto"
}
},
"name": "meta.query.top.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/topoperator"
},
{
"match": "\\b(top-hitters)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+)(?:\\s+(by)\\s+(\\w+))?)?\\b",
"captures": {
"1": {
"name": "keyword.other.query.kusto"
},
"2": {
"patterns": [
{
"include": "#Numeric"
}
]
},
"3": {
"name": "keyword.other.operator.kusto"
},
"4": {
"name": "variable.other.column.kusto"
},
"5": {
"name": "keyword.other.operator.kusto"
},
"6": {
"name": "variable.other.column.kusto"
}
},
"name": "meta.query.top-hitters.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tophittersoperator"
},
{
"match": "\\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\\b",
"name": "keyword.other.query.kusto",
"comment": "Tabular operators: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/queries"
},
{
"match": "\\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\\b",
"name": "support.function.kusto",
"comment": "Tabular operators: evalute (plugins): https://docs.microsoft.com/en-us/azure/kusto/query/evaluateoperator"
},
{
"match": "\\b(on|kind|hint\\.remote|hint\\.strategy)\\b",
"name": "keyword.other.operator.kusto",
"comment": "Tabular operators: join: https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator"
},
{
"match": "(\\$left|\\$right)\\b",
"name": "keyword.other.kusto",
"comment": "Tabular operators: join ($left, $right): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator"
},
{
"match": "\\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\\b",
"name": "keyword.other.kusto",
"comment": "Tabular operators: join (kinds, strategies): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator"
},
{
"match": "\\b(series_abs|series_acos|series_add|series_asin|series_atan|series_cos|series_decompose|series_decompose_anomalies|series_decompose_forecast|series_divide|series_equals|series_exp|series_fft|series_fill_backward|series_fill_const|series_fill_forward|series_fill_linear|series_fir|series_fit_2lines_dynamic|series_fit_2lines|series_fit_line_dynamic|series_fit_line|series_fit_poly|series_greater_equals|series_greater|series_ifft|series_iir|series_less_equals|series_less|series_multiply|series_not_equals|series_outliers|series_pearson_correlation|series_periods_detect|series_periods_validate|series_pow|series_seasonal|series_sign|series_sin|series_stats|series_stats_dynamic|series_subtract|series_tan)\\b",
"name": "support.function.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/machine-learning-and-tsa"
},
{
"match": "\\b(bag|array)\\b",
"name": "keyword.other.operator.kusto",
"comment": "Tabular operators: mv-expand (bagexpand options): https://docs.microsoft.com/en-us/azure/kusto/query/mvexpandoperator"
},
{
"match": "\\b(asc|desc|nulls first|nulls last)\\b",
"name": "keyword.other.kusto",
"comment": "Tabular operators: order: https://docs.microsoft.com/en-us/azure/kusto/query/orderoperator"
},
{
"match": "\\b(regex|simple|relaxed)\\b",
"name": "keyword.other.kusto",
"comment": "Tabular operators: parse: https://docs.microsoft.com/en-us/azure/kusto/query/parseoperator"
},
{
"match": "\\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\\b",
"name": "support.function.kusto"
},
{
"include": "#Strings"
},
{
"match": "\\{.*?\\}",
"name": "string.other.kusto"
},
{
"match": "//.*",
"name": "comment.line.kusto",
"comment": "Comments"
},
{
"include": "#TimeSpanLiterals"
},
{
"include": "#DateTimeTimeSpanFunctions"
},
{
"include": "#DateTimeTimeSpanDataTypes"
},
{
"include": "#Numeric"
},
{
"match": "\\b(true|false|null)\\b",
"name": "constant.language.kusto"
},
{
"match": "\\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=\\W*\\(|\\b)",
"name": "invalid.deprecated.kusto",
"comment": "Deprecated functions"
}
],
"repository": {
"Strings": {
"patterns": [
{
"begin": "([@h]?\")",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.kusto"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.kusto"
}
},
"patterns": [
{
"include": "#Escapes"
}
],
"name": "string.quoted.double.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string"
},
{
"begin": "([@h]?')",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.kusto"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.kusto"
}
},
"patterns": [
{
"include": "#Escapes"
}
],
"name": "string.quoted.single.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string"
}
]
},
"Escapes": {
"patterns": [
{
"match": "\\\\['\"]",
"name": "constant.character.escape.kusto"
}
]
},
"Numeric": {
"patterns": [
{
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*+)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?(?=\\b|\\w)",
"name": "constant.numeric.kusto"
}
]
},
"TimeSpanLiterals": {
"patterns": [
{
"match": "[+-]?(?:\\d*\\.)?\\d+(?:microseconds?|ticks?|seconds?|ms|d|h|m|s)\\b",
"name": "constant.numeric.kusto",
"comment": "timespan literals: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/timespan#timespan-literals"
}
]
},
"DateTimeTimeSpanFunctions": {
"patterns": [
{
"match": "\\b(format_datetime)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(['\"].*?['\"])\\s*\\))?(?!\\w)",
"captures": {
"1": {
"name": "support.function.kusto"
},
"2": {
"patterns": [
{
"include": "#DateTimeTimeSpanDataTypes"
}
]
},
"3": {
"patterns": [
{
"include": "#Strings"
}
]
}
},
"name": "meta.scalar.function.format_datetime.kusto",
"comment": "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/format-datetimefunction"
},
{
"match": "\\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=\\W*\\()",
"name": "support.function.kusto",
"comment": "Scalar function: DateTime/Timespan Functions: https://docs.microsoft.com/en-us/azure/kusto/query/scalarfunctions#datetimetimespan-functions"
}
]
},
"DateTimeTimeSpanDataTypes": {
"patterns": [
{
"match": "\\b(datetime|timespan|time)\\b",
"name": "storage.type.kusto"
}
]
}
},
"uuid": "FF0550E0-3A29-11E3-AA6E-0800200C9B77"
}

2374
node_modules/shiki/languages/latex.tmLanguage.json generated vendored Normal file

File diff suppressed because it is too large Load diff

542
node_modules/shiki/languages/less.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,542 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/atom/language-less/blob/master/grammars/less.cson",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/atom/language-less/commit/87d4d59e8de6796b506b81a16e1dc1fafc99d30f",
"name": "less",
"scopeName": "source.css.less",
"patterns": [
{
"include": "#strings"
},
{
"captures": {
"1": {
"name": "entity.other.attribute-name.class.mixin.css"
}
},
"match": "(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"
},
{
"captures": {
"1": {
"name": "entity.other.attribute-name.class.css"
},
"2": {
"name": "punctuation.definition.entity.css"
},
"4": {
"name": "variable.other.interpolation.less"
}
},
"match": "((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"
},
{
"captures": {
"0": {
"name": "entity.other.attribute-name.parent-selector.css"
},
"1": {
"name": "punctuation.definition.entity.css"
}
},
"match": "(&)[a-zA-Z0-9_-]*"
},
{
"begin": "(format|local|url|attr|counter|counters)\\s*(\\()",
"beginCaptures": {
"1": {
"name": "support.function.misc.css"
},
"2": {
"name": "punctuation.section.function.css"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.function.css"
}
},
"patterns": [
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.css"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.css"
}
},
"name": "string.quoted.single.css",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escape.css"
}
]
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.css"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.css"
}
},
"name": "string.quoted.double.css",
"patterns": [
{
"match": "\\\\(\\d{1,6}|.)",
"name": "constant.character.escape.css"
}
]
},
{
"match": "[^'\") \\t]+",
"name": "variable.parameter.misc.css"
}
]
},
{
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)",
"name": "constant.other.rgb-value.css"
},
{
"captures": {
"1": {
"name": "entity.other.attribute-name.id"
},
"2": {
"name": "punctuation.definition.entity.css"
},
"4": {
"name": "variable.other.interpolation.less"
}
},
"match": "((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)",
"name": "meta.selector.css"
},
{
"begin": "/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.css"
}
},
"end": "\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.css"
}
},
"name": "comment.block.css"
},
{
"include": "source.css#numeric-values"
},
{
"captures": {
"1": {
"name": "punctuation.definition.begin.entity.css"
},
"2": {
"name": "entity.other.attribute-name.attribute.css"
},
"3": {
"name": "punctuation.separator.operator.css"
},
"4": {
"name": "string.unquoted.attribute-value.css"
},
"5": {
"name": "string.quoted.double.attribute-value.css"
},
"6": {
"name": "punctuation.definition.string.begin.css"
},
"7": {
"name": "punctuation.definition.string.end.css"
},
"8": {
"name": "punctuation.definition.end.entity.css"
}
},
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])",
"name": "meta.attribute-selector.css"
},
{
"begin": "((@)import\\b)",
"beginCaptures": {
"1": {
"name": "keyword.control.at-rule.import.less"
},
"2": {
"name": "punctuation.definition.keyword.less"
}
},
"end": ";",
"endCaptures": {
"0": {
"name": "punctuation.terminator.rule.css"
}
},
"name": "meta.at-rule.import.css",
"patterns": [
{
"match": "(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)",
"name": "keyword.control.import.option.less"
},
{
"include": "#brace_round"
},
{
"include": "source.css#commas"
},
{
"include": "#strings"
}
]
},
{
"captures": {
"1": {
"name": "keyword.control.at-rule.fontface.css"
},
"2": {
"name": "punctuation.definition.keyword.css"
}
},
"match": "^\\s*((@)font-face\\b)",
"name": "meta.at-rule.fontface.css"
},
{
"captures": {
"1": {
"name": "keyword.control.at-rule.media.css"
},
"2": {
"name": "punctuation.definition.keyword.css"
}
},
"match": "^\\s*((@)media\\b)",
"name": "meta.at-rule.media.css"
},
{
"include": "source.css#media-features"
},
{
"match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b",
"name": "support.constant.media-type.media.css"
},
{
"match": "\\b(portrait|landscape)\\b",
"name": "support.constant.property-value.media-property.media.css"
},
{
"captures": {
"1": {
"name": "support.function.less"
}
},
"match": "(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()"
},
{
"begin": "(^[ \\t]+)?(?=//)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.less"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.less"
}
},
"end": "\\n",
"name": "comment.line.double-slash.less"
}
]
},
{
"match": "(@|\\-\\-)[\\w-]+(?=\\s*)",
"name": "variable.other.less",
"captures": {
"1": {
"name": "punctuation.definition.variable.less"
}
}
},
{
"include": "#variable_interpolation"
},
{
"begin": "{",
"beginCaptures": {
"0": {
"name": "punctuation.section.property-list.begin.bracket.curly.css"
}
},
"end": "}",
"endCaptures": {
"0": {
"name": "punctuation.section.property-list.end.bracket.curly.css"
}
},
"name": "meta.property-list.css",
"patterns": [
{
"include": "source.css#pseudo-elements"
},
{
"include": "source.css#pseudo-classes"
},
{
"include": "source.css#tag-names"
},
{
"include": "source.css#commas"
},
{
"include": "#variable_interpolation"
},
{
"include": "source.css#property-names"
},
{
"include": "#property_values"
},
{
"include": "$self"
}
]
},
{
"match": "\\!\\s*important",
"name": "keyword.other.important.css"
},
{
"match": "\\*|\\/|\\-|\\+|~|=|<=|>=|<|>",
"name": "keyword.operator.less"
},
{
"match": "\\b(not|and|when)\\b",
"name": "keyword.control.logical.operator.less"
},
{
"include": "source.css#tag-names"
},
{
"match": "(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+",
"name": "entity.name.tag.custom.css"
},
{
"include": "source.css#pseudo-elements"
},
{
"include": "source.css#pseudo-classes"
},
{
"captures": {
"1": {
"name": "punctuation.section.property-list.begin.css"
},
"2": {
"name": "punctuation.section.property-list.end.css"
}
},
"match": "(\\{)(\\})",
"name": "meta.brace.curly.css"
},
{
"match": "\\{|\\}",
"name": "meta.brace.curly.css"
},
{
"include": "#brace_round"
},
{
"match": "\\[|\\]",
"name": "meta.brace.square.less"
},
{
"match": ";",
"name": "punctuation.terminator.rule.css"
},
{
"match": ":",
"name": "punctuation.separator.key-value.css"
},
{
"match": "\\btrue\\b",
"name": "constant.language.boolean.less"
},
{
"match": "\\bdefault\\b",
"name": "support.function.default.less"
},
{
"match": "\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b",
"name": "support.function.type-checking.less"
},
{
"match": "\\b(isunit|ispixel|ispercentage|isem)\\b",
"name": "support.function.unit-checking.less"
},
{
"include": "source.css#property-keywords"
},
{
"include": "source.css#color-keywords"
},
{
"include": "source.css#commas"
},
{
"include": "#less_builtin_functions"
},
{
"include": "source.css#functions"
}
],
"repository": {
"variable_interpolation": {
"match": "@{[a-zA-Z0-9_-]+}",
"name": "variable.other.interpolation.less"
},
"strings": {
"patterns": [
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.css"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.css"
}
},
"name": "string.quoted.double.css",
"patterns": [
{
"match": "\\\\([0-9A-Fa-f]{1,6}|.)",
"name": "constant.character.escape.css"
},
{
"include": "#variable_interpolation"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.css"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.css"
}
},
"name": "string.quoted.single.css",
"patterns": [
{
"match": "\\\\([0-9A-Fa-f]{1,6}|.)",
"name": "constant.character.escape.css"
},
{
"include": "#variable_interpolation"
}
]
}
]
},
"brace_round": {
"match": "\\(|\\)",
"name": "meta.brace.round.css"
},
"property_values": {
"begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)",
"beginCaptures": {
"1": {
"name": "punctuation.separator.key-value.css"
}
},
"end": "\\s*(;)|\\s*(?=})",
"endCaptures": {
"1": {
"name": "punctuation.terminator.rule.css"
}
},
"contentName": "meta.property-value.css",
"patterns": [
{
"begin": "url(\\()",
"beginCaptures": {
"1": {
"name": "meta.brace.round.css"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "meta.brace.round.css"
}
},
"name": "support.function.any-method.builtin.url.css",
"patterns": [
{
"include": "#strings"
},
{
"match": "(\\b|\\.{0,2}/)[^)]*\\b",
"name": "string.url.css"
}
]
},
{
"include": "source.css#property-keywords"
},
{
"include": "source.css#color-keywords"
},
{
"include": "source.css#commas"
},
{
"include": "#less_builtin_functions"
},
{
"include": "source.css#functions"
},
{
"include": "$self"
}
]
},
"less_builtin_functions": {
"match": "\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b",
"name": "support.function.any-method.builtin.less"
}
}
}

987
node_modules/shiki/languages/liquid.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,987 @@
{
"name": "liquid",
"scopeName": "text.html.liquid",
"fileTypes": ["liquid"],
"foldingStartMarker": "(?x)\n{%\n -?\n \\s*\n (capture|case|comment|for|form|if|javascript|paginate|schema|style)\n [^(%})]+\n%}\n",
"foldingStopMarker": "(?x)\n{%\n \\s*\n (endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\n [^(%})]+\n%}\n",
"injections": {
"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted": {
"patterns": [
{
"include": "#injection"
}
]
}
},
"patterns": [
{
"include": "#core"
}
],
"repository": {
"core": {
"patterns": [
{
"include": "#raw_tag"
},
{
"include": "#comment_block"
},
{
"include": "#style_codefence"
},
{
"include": "#stylesheet_codefence"
},
{
"include": "#json_codefence"
},
{
"include": "#javascript_codefence"
},
{
"include": "#object"
},
{
"include": "#tag"
},
{
"include": "text.html.basic"
}
]
},
"injection": {
"patterns": [
{
"include": "#raw_tag"
},
{
"include": "#comment_block"
},
{
"include": "#object"
},
{
"include": "#tag_injection"
}
]
},
"raw_tag": {
"begin": "{%-?\\s*(raw)\\s*-?%}",
"end": "{%-?\\s*(endraw)\\s*-?%}",
"beginCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"endCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"name": "meta.entity.tag.raw.liquid",
"contentName": "string.unquoted.liquid",
"patterns": [
{
"match": "(.(?!{%-?\\s*endraw\\s*-?%}))*."
}
]
},
"comment_block": {
"begin": "{%-?\\s*comment\\s*-?%}",
"end": "{%-?\\s*endcomment\\s*-?%}",
"name": "comment.block.liquid",
"patterns": [
{
"include": "#comment_block"
},
{
"match": "(.(?!{%-?\\s*(comment|endcomment)\\s*-?%}))*."
}
]
},
"style_codefence": {
"begin": "({%-?)\\s*(style)\\s*(-?%})",
"end": "({%-?)\\s*(endstyle)\\s*(-?%})",
"beginCaptures": {
"0": {
"name": "meta.tag.metadata.style.start.liquid"
},
"1": {
"name": "punctuation.definition.tag.begin.liquid"
},
"2": {
"name": "entity.name.tag.style.liquid"
},
"3": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "meta.tag.metadata.style.end.liquid"
},
"1": {
"name": "punctuation.definition.tag.end.liquid"
},
"2": {
"name": "entity.name.tag.style.liquid"
},
"3": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"name": "meta.block.style.liquid",
"contentName": "meta.embedded.block.css",
"patterns": [
{
"include": "source.css"
}
]
},
"stylesheet_codefence": {
"begin": "({%-?)\\s*(stylesheet)\\s*(-?%})",
"end": "({%-?)\\s*(endstylesheet)\\s*(-?%})",
"beginCaptures": {
"0": {
"name": "meta.tag.metadata.style.start.liquid"
},
"1": {
"name": "punctuation.definition.tag.begin.liquid"
},
"2": {
"name": "entity.name.tag.style.liquid"
},
"3": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "meta.tag.metadata.style.end.liquid"
},
"1": {
"name": "punctuation.definition.tag.end.liquid"
},
"2": {
"name": "entity.name.tag.style.liquid"
},
"3": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"name": "meta.block.style.liquid",
"contentName": "meta.embedded.block.css",
"patterns": [
{
"include": "source.css"
}
]
},
"json_codefence": {
"begin": "({%-?)\\s*(schema)\\s*(-?%})",
"end": "({%-?)\\s*(endschema)\\s*(-?%})",
"beginCaptures": {
"0": {
"name": "meta.tag.metadata.schema.start.liquid"
},
"1": {
"name": "punctuation.definition.tag.begin.liquid"
},
"2": {
"name": "entity.name.tag.schema.liquid"
},
"3": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "meta.tag.metadata.schema.end.liquid"
},
"1": {
"name": "punctuation.definition.tag.end.liquid"
},
"2": {
"name": "entity.name.tag.schema.liquid"
},
"3": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"name": "meta.block.schema.liquid",
"contentName": "meta.embedded.block.json",
"patterns": [
{
"include": "source.json"
}
]
},
"javascript_codefence": {
"begin": "({%-?)\\s*(javascript)\\s*(-?%})",
"end": "({%-?)\\s*(endjavascript)\\s*(-?%})",
"beginCaptures": {
"0": {
"name": "meta.tag.metadata.javascript.start.liquid"
},
"1": {
"name": "punctuation.definition.tag.begin.liquid"
},
"2": {
"name": "entity.name.tag.javascript.liquid"
},
"3": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "meta.tag.metadata.javascript.end.liquid"
},
"1": {
"name": "punctuation.definition.tag.end.liquid"
},
"2": {
"name": "entity.name.tag.javascript.liquid"
},
"3": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"name": "meta.block.javascript.liquid",
"contentName": "meta.embedded.block.js",
"patterns": [
{
"include": "source.js"
}
]
},
"tag": {
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?",
"end": "-?%}",
"name": "meta.tag.liquid",
"beginCaptures": {
"0": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"patterns": [
{
"include": "#tag_body"
}
]
},
"tag_injection": {
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))",
"end": "-?%}",
"name": "meta.tag.liquid",
"beginCaptures": {
"0": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"patterns": [
{
"include": "#tag_body"
}
]
},
"tag_body": {
"patterns": [
{
"include": "#tag_liquid"
},
{
"include": "#tag_assign"
},
{
"include": "#tag_comment_inline"
},
{
"include": "#tag_case"
},
{
"include": "#tag_conditional"
},
{
"include": "#tag_for"
},
{
"include": "#tag_paginate"
},
{
"include": "#tag_render"
},
{
"include": "#tag_tablerow"
},
{
"include": "#tag_expression"
}
]
},
"tag_liquid": {
"name": "meta.entity.tag.liquid.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(liquid)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.liquid.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#tag_comment_block_liquid"
},
{
"include": "#tag_comment_inline_liquid"
},
{
"include": "#tag_assign_liquid"
},
{
"include": "#tag_case_liquid"
},
{
"include": "#tag_conditional_liquid"
},
{
"include": "#tag_for_liquid"
},
{
"include": "#tag_paginate_liquid"
},
{
"include": "#tag_render_liquid"
},
{
"include": "#tag_tablerow_liquid"
},
{
"include": "#tag_expression_liquid"
}
]
},
"tag_comment_block_liquid": {
"name": "comment.block.liquid",
"begin": "(?:^\\s*)(comment)\\b",
"end": "(?:^\\s*)(endcomment)\\b",
"patterns": [
{
"include": "#tag_comment_block_liquid"
},
{
"match": "(?:^\\s*)(?!(comment|endcomment)).*"
}
]
},
"tag_comment_inline": {
"name": "comment.line.number-sign.liquid",
"begin": "#",
"end": "(?=%})"
},
"tag_comment_inline_liquid": {
"name": "comment.line.number-sign.liquid",
"begin": "(?:^\\s*)#.*",
"end": "$"
},
"tag_tablerow": {
"name": "meta.entity.tag.tablerow.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.tablerow.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#tag_tablerow_body"
}
]
},
"tag_tablerow_liquid": {
"name": "meta.entity.tag.tablerow.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.tablerow.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#tag_tablerow_body"
}
]
},
"tag_tablerow_body": {
"patterns": [
{
"match": "\\b(in)\\b",
"name": "keyword.control.liquid"
},
{
"match": "\\b(cols|offset|limit):",
"name": "keyword.control.liquid"
},
{
"include": "#value_expression"
}
]
},
"tag_for": {
"name": "meta.entity.tag.for.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.for.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#tag_for_body"
}
]
},
"tag_for_liquid": {
"name": "meta.entity.tag.for.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.for.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#tag_for_body"
}
]
},
"tag_for_body": {
"patterns": [
{
"match": "\\b(in|reversed)\\b",
"name": "keyword.control.liquid"
},
{
"match": "\\b(offset|limit):",
"name": "keyword.control.liquid"
},
{
"include": "#value_expression"
}
]
},
"tag_assign": {
"name": "meta.entity.tag.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",
"beginCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#filter"
},
{
"include": "#attribute"
},
{
"include": "#value_expression"
}
]
},
"tag_assign_liquid": {
"name": "meta.entity.tag.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",
"beginCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#filter"
},
{
"include": "#attribute_liquid"
},
{
"include": "#value_expression"
}
]
},
"tag_render": {
"name": "meta.entity.tag.render.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",
"beginCaptures": {
"1": {
"name": "entity.name.tag.render.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#tag_render_special_keywords"
},
{
"include": "#attribute"
},
{
"include": "#value_expression"
}
]
},
"tag_render_liquid": {
"name": "meta.entity.tag.render.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",
"beginCaptures": {
"1": {
"name": "entity.name.tag.render.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#tag_render_special_keywords"
},
{
"include": "#attribute_liquid"
},
{
"include": "#value_expression"
}
]
},
"tag_render_special_keywords": {
"match": "\\b(with|as|for)\\b",
"name": "keyword.control.other.liquid"
},
"tag_paginate": {
"name": "meta.entity.tag.paginate.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.paginate.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#tag_paginate_body"
}
]
},
"tag_paginate_liquid": {
"name": "meta.entity.tag.paginate.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.paginate.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#tag_paginate_body"
}
]
},
"tag_paginate_body": {
"patterns": [
{
"match": "\\b(by)\\b",
"name": "keyword.control.liquid"
},
{
"include": "#value_expression"
}
]
},
"tag_conditional": {
"name": "meta.entity.tag.conditional.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.conditional.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#value_expression"
}
]
},
"tag_conditional_liquid": {
"name": "meta.entity.tag.conditional.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.conditional.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#value_expression"
}
]
},
"tag_case": {
"name": "meta.entity.tag.case.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.case.liquid"
}
},
"end": "(?=%})",
"patterns": [
{
"include": "#value_expression"
}
]
},
"tag_case_liquid": {
"name": "meta.entity.tag.case.liquid",
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.case.liquid"
}
},
"end": "$",
"patterns": [
{
"include": "#value_expression"
}
]
},
"tag_expression_without_arguments": {
"patterns": [
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endunless|endif)\\b",
"captures": {
"1": {
"name": "keyword.control.conditional.liquid"
}
}
},
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b",
"captures": {
"1": {
"name": "keyword.control.loop.liquid"
}
}
},
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcase)\\b",
"captures": {
"1": {
"name": "keyword.control.case.liquid"
}
}
},
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b",
"captures": {
"1": {
"name": "keyword.control.other.liquid"
}
}
},
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b",
"captures": {
"1": {
"name": "keyword.control.other.liquid"
}
}
},
{
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(else|break|continue)\\b",
"captures": {
"1": {
"name": "keyword.control.other.liquid"
}
}
}
]
},
"tag_expression": {
"patterns": [
{
"include": "#tag_expression_without_arguments"
},
{
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",
"beginCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"end": "(?=%})",
"name": "meta.entity.tag.liquid",
"patterns": [
{
"include": "#value_expression"
}
]
}
]
},
"tag_expression_liquid": {
"patterns": [
{
"include": "#tag_expression_without_arguments"
},
{
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",
"beginCaptures": {
"1": {
"name": "entity.name.tag.liquid"
}
},
"end": "$",
"name": "meta.entity.tag.liquid",
"patterns": [
{
"include": "#value_expression"
}
]
}
]
},
"object": {
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?",
"end": "-?}}",
"name": "meta.object.liquid",
"beginCaptures": {
"0": {
"name": "punctuation.definition.tag.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.liquid"
}
},
"patterns": [
{
"include": "#filter"
},
{
"include": "#attribute"
},
{
"include": "#value_expression"
}
]
},
"invalid_range": {
"match": "\\((.(?!\\.\\.))+\\)",
"name": "invalid.illegal.range.liquid"
},
"range": {
"begin": "\\(",
"end": "\\)",
"name": "meta.range.liquid",
"beginCaptures": {
"0": {
"name": "punctuation.section.parens.begin.liquid"
}
},
"endCaptures": {
"0": {
"name": "punctuation.section.parens.end.liquid"
}
},
"patterns": [
{
"match": "\\.\\.",
"name": "punctuation.range.liquid"
},
{
"include": "#variable_lookup"
},
{
"include": "#number"
}
]
},
"number": {
"match": "((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?",
"name": "constant.numeric.liquid"
},
"string": {
"patterns": [
{
"include": "#string_single"
},
{
"include": "#string_double"
}
]
},
"string_double": {
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.liquid"
},
"string_single": {
"begin": "'",
"end": "'",
"name": "string.quoted.single.liquid"
},
"operator": {
"match": "(?:(?<=\\s)|\\b)(\\=\\=|!\\=|\\>|\\<|\\>\\=|\\<\\=|or|and|contains)(?:(?=\\s)|\\b)",
"captures": {
"1": {
"name": "keyword.operator.expression.liquid"
}
}
},
"language_constant": {
"match": "\\b(false|true|nil|blank)\\b|empty(?!\\?)",
"name": "constant.language.liquid"
},
"attribute": {
"begin": "\\w+:",
"end": "(?=,|%}|}}|\\|)",
"beginCaptures": {
"0": {
"name": "entity.other.attribute-name.liquid"
}
},
"patterns": [
{
"include": "#value_expression"
}
]
},
"attribute_liquid": {
"begin": "\\w+:",
"end": "(?=,|\\|)|$",
"beginCaptures": {
"0": {
"name": "entity.other.attribute-name.liquid"
}
},
"patterns": [
{
"include": "#value_expression"
}
]
},
"filter": {
"match": "\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*",
"captures": {
"1": {
"name": "support.function.liquid"
}
}
},
"value_expression": {
"patterns": [
{
"match": "(\\[)(\\|)(?=[^\\]]*)(?=\\])",
"captures": {
"2": {
"name": "invalid.illegal.filter.liquid"
},
"3": {
"name": "invalid.illegal.filter.liquid"
}
}
},
{
"match": "(?<=\\s)(\\+|\\-|\\/|\\*)(?=\\s)",
"name": "invalid.illegal.filter.liquid"
},
{
"include": "#language_constant"
},
{
"include": "#operator"
},
{
"include": "#invalid_range"
},
{
"include": "#range"
},
{
"include": "#number"
},
{
"include": "#string"
},
{
"include": "#variable_lookup"
}
]
},
"variable_lookup": {
"patterns": [
{
"match": "\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b",
"name": "variable.language.liquid"
},
{
"match": "((?<=\\w\\:\\s)\\w+)",
"name": "variable.parameter.liquid"
},
{
"begin": "(?<=\\w)\\[",
"beginCaptures": {
"0": {
"name": "punctuation.section.brackets.begin.liquid"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "punctuation.section.brackets.end.liquid"
}
},
"name": "meta.brackets.liquid",
"patterns": [
{
"include": "#string"
}
]
},
{
"match": "(?<=(\\w|\\])\\.)([-\\w]+\\??)",
"name": "variable.other.member.liquid"
},
{
"match": "(?<=\\w)\\.(?=\\w)",
"name": "punctuation.accessor.liquid"
},
{
"match": "(?i)[a-z_](\\w|(?:-(?!\\}\\})))*",
"name": "variable.other.liquid"
}
]
}
}
}

117
node_modules/shiki/languages/lisp.tmLanguage.json generated vendored Normal file

File diff suppressed because one or more lines are too long

56
node_modules/shiki/languages/logo.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,56 @@
{
"comment": "Roughed out by Paul Bissex <http://e-scribe.com/news/>",
"fileTypes": [],
"keyEquivalent": "^~L",
"name": "logo",
"patterns": [
{
"match": "^to [\\w.]+",
"name": "entity.name.function.logo"
},
{
"match": "continue|do\\.until|do\\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until",
"name": "keyword.control.logo"
},
{
"match": "\\b(\\.defmacro|\\.eq|\\.macro|\\.maybeoutput|\\.setbf|\\.setfirst|\\.setitem|\\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\\b",
"name": "keyword.other.logo"
},
{
"captures": {
"1": {
"name": "punctuation.definition.variable.logo"
}
},
"match": "(\\:)(?:\\|[^|]*\\||[-\\w.]*)+",
"name": "variable.parameter.logo"
},
{
"match": "\"(?:\\|[^|]*\\||[-\\w.]*)+",
"name": "string.other.word.logo"
},
{
"begin": "(^[ \\t]+)?(?=;)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.logo"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": ";",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.logo"
}
},
"end": "\\n",
"name": "comment.line.semicolon.logo"
}
]
}
],
"scopeName": "source.logo",
"uuid": "7613EC24-B0F9-4D01-8706-1D54098BFFD8"
}

942
node_modules/shiki/languages/lua.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,942 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/sumneko/lua.tmbundle/blob/master/Syntaxes/Lua.plist",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/sumneko/lua.tmbundle/commit/3a18700941737c3ab66ac5964696f141aee61800",
"name": "lua",
"scopeName": "source.lua",
"patterns": [
{
"begin": "\\b(?:(local)\\s+)?(function)\\b(?![,:])",
"beginCaptures": {
"1": {
"name": "keyword.local.lua"
},
"2": {
"name": "keyword.control.lua"
}
},
"end": "(?<=[\\)\\-{}\\[\\]\"'])",
"name": "meta.function.lua",
"patterns": [
{
"include": "#comment"
},
{
"begin": "(\\()",
"beginCaptures": {
"1": {
"name": "punctuation.definition.parameters.begin.lua"
}
},
"end": "(\\))|(?=[\\-\\.{}\\[\\]\"'])",
"endCaptures": {
"1": {
"name": "punctuation.definition.parameters.finish.lua"
}
},
"name": "meta.parameter.lua",
"patterns": [
{
"include": "#comment"
},
{
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
"name": "variable.parameter.function.lua"
},
{
"match": ",",
"name": "punctuation.separator.arguments.lua"
},
{
"begin": ":",
"beginCaptures": {
"0": {
"name": "punctuation.separator.arguments.lua"
}
},
"end": "(?=[\\),])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
}
]
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b\\s*(?=:)",
"name": "entity.name.class.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",
"name": "entity.name.function.lua"
}
]
},
{
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]*)?([eE]-?\\d*)?([pP][-+]\\d+)?",
"name": "constant.numeric.float.hexadecimal.lua"
},
{
"match": "(?<![\\w\\d.])0[xX]\\.[0-9A-Fa-f]+([eE]-?\\d*)?([pP][-+]\\d+)?",
"name": "constant.numeric.float.hexadecimal.lua"
},
{
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
"name": "constant.numeric.integer.hexadecimal.lua"
},
{
"match": "(?<![\\w\\d.])\\d+(\\.\\d*)?([eE]-?\\d*)?",
"name": "constant.numeric.float.lua"
},
{
"match": "(?<![\\w\\d.])\\.\\d+([eE]-?\\d*)?",
"name": "constant.numeric.float.lua"
},
{
"match": "(?<![\\w\\d.])\\d+(?![pPeE.0-9])",
"name": "constant.numeric.integer.lua"
},
{
"include": "#string"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.lua"
}
},
"match": "\\A(#!).*$\\n?",
"name": "comment.line.shebang.lua"
},
{
"include": "#comment"
},
{
"captures": {
"1": {
"name": "keyword.control.goto.lua"
},
"2": {
"name": "string.tag.lua"
}
},
"match": "\\b(goto)\\s+([a-zA-Z_][a-zA-Z0-9_]*)"
},
{
"captures": {
"1": {
"name": "punctuation.section.embedded.begin.lua"
},
"2": {
"name": "punctuation.section.embedded.end.lua"
}
},
"match": "(::)\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*(::)",
"name": "string.tag.lua"
},
{
"match": "<\\s*(const|close)\\s*>",
"captures": {
"1": {
"name": "string.tag.lua"
}
}
},
{
"match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
"name": "storage.type.generic.lua"
},
{
"match": "\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\b",
"name": "keyword.control.lua"
},
{
"match": "\\b(local|global)\\b",
"name": "keyword.local.lua"
},
{
"match": "\\b(function)\\b(?![,:])",
"name": "keyword.control.lua"
},
{
"match": "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)",
"name": "constant.language.lua"
},
{
"match": "(?<![^.]\\.|:)\\b(self)\\b",
"name": "variable.language.self.lua"
},
{
"match": "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?!\\s*=(?!=))",
"name": "support.function.lua"
},
{
"match": "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))",
"name": "entity.name.tag.lua"
},
{
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))",
"name": "support.function.library.lua"
},
{
"match": "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b",
"name": "keyword.operator.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
"name": "support.function.any-method.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",
"name": "entity.name.class.lua"
},
{
"match": "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)",
"name": "entity.other.attribute.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)",
"name": "variable.other.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*=\\s*\\b(function)\\b)",
"name": "entity.name.function.lua"
},
{
"match": "\\+|-|%|#|\\*|\\/|\\^|==?|~=|!=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
"name": "keyword.operator.lua"
}
],
"repository": {
"escaped_char": {
"patterns": [
{
"match": "\\\\[abfnrtv\\\\\"'\\n]",
"name": "constant.character.escape.lua"
},
{
"match": "\\\\z[\\n\\t ]*",
"name": "constant.character.escape.lua"
},
{
"match": "\\\\\\d{1,3}",
"name": "constant.character.escape.byte.lua"
},
{
"match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]",
"name": "constant.character.escape.byte.lua"
},
{
"match": "\\\\u\\{[0-9A-Fa-f]+\\}",
"name": "constant.character.escape.unicode.lua"
},
{
"match": "\\\\.",
"name": "invalid.illegal.character.escape.lua"
}
]
},
"string": {
"patterns": [
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.lua"
}
},
"end": "'[ \\t]*|(?=\\n)",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.lua"
}
},
"name": "string.quoted.single.lua",
"patterns": [
{
"include": "#escaped_char"
}
]
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.lua"
}
},
"end": "\"[ \\t]*|(?=\\n)",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.lua"
}
},
"name": "string.quoted.double.lua",
"patterns": [
{
"include": "#escaped_char"
}
]
},
{
"begin": "`",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.lua"
}
},
"end": "`[ \\t]*|(?=\\n)",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.lua"
}
},
"name": "string.quoted.double.lua"
},
{
"begin": "(?<=\\.cdef)\\s*(\\[(=*)\\[)",
"beginCaptures": {
"0": {
"name": "string.quoted.other.multiline.lua"
},
"1": {
"name": "punctuation.definition.string.begin.lua"
}
},
"contentName": "meta.embedded.lua",
"end": "(\\]\\2\\])[ \\t]*",
"endCaptures": {
"0": {
"name": "string.quoted.other.multiline.lua"
},
"1": {
"name": "punctuation.definition.string.end.lua"
}
},
"patterns": [
{
"include": "source.c"
}
]
},
{
"begin": "(?<!--)\\[(=*)\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.lua"
}
},
"end": "\\]\\1\\][ \\t]*",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.lua"
}
},
"name": "string.quoted.other.multiline.lua"
}
]
},
"comment": {
"patterns": [
{
"begin": "(^[ \\t]+)?(?=--)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.lua"
}
},
"end": "(?!\\G)((?!^)[ \\t]+\\n)?",
"endCaptures": {
"1": {
"name": "punctuation.whitespace.comment.trailing.lua"
}
},
"patterns": [
{
"begin": "--\\[(=*)\\[",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\]\\1\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
}
},
"name": "comment.block.lua",
"patterns": [
{
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
},
{
"begin": "----",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.lua"
}
},
"end": "\\n",
"name": "comment.line.double-dash.lua"
},
{
"begin": "---",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.lua"
}
},
"end": "\\n",
"name": "comment.line.double-dash.documentation.lua",
"patterns": [
{
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
},
{
"begin": "--",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.lua"
}
},
"end": "\\n",
"name": "comment.line.double-dash.lua",
"patterns": [
{
"include": "#ldoc_tag"
}
]
}
]
},
{
"begin": "\\/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\*\\/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
}
},
"name": "comment.block.lua",
"patterns": [
{
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
}
]
},
"emmydoc": {
"patterns": [
{
"begin": "(?<=---[ \\t]*)@class",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
"name": "support.class.lua"
},
{
"match": ":|,",
"name": "keyword.operator.lua"
}
]
},
{
"begin": "(?<=---[ \\t]*)@enum",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
"beginCaptures": {
"0": {
"name": "variable.lua"
}
},
"end": "(?=\\n)"
}
]
},
{
"begin": "(?<=---[ \\t]*)@type",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
},
{
"begin": "(?<=---[ \\t]*)@alias",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
"beginCaptures": {
"0": {
"name": "variable.lua"
}
},
"end": "(?=[\\n#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)(@operator)\\s*(\\b[a-z]+)?",
"beginCaptures": {
"1": {
"name": "storage.type.annotation.lua"
},
"2": {
"name": "support.function.library.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
},
{
"begin": "(?<=---[ \\t]*)@cast",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
"beginCaptures": {
"0": {
"name": "variable.other.lua"
}
},
"end": "(?=\\n)",
"patterns": [
{
"include": "#emmydoc.type"
},
{
"match": "([+-|])",
"name": "keyword.operator.lua"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)@param",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(\\??)",
"beginCaptures": {
"1": {
"name": "entity.name.variable.lua"
},
"2": {
"name": "keyword.operator.lua"
}
},
"end": "(?=[\\n#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)@return",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"match": "\\?",
"name": "keyword.operator.lua"
},
{
"include": "#emmydoc.type"
}
]
},
{
"begin": "(?<=---[ \\t]*)@field",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "(\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b|(\\[))(\\??)",
"beginCaptures": {
"2": {
"name": "entity.name.variable.lua"
},
"3": {
"name": "keyword.operator.lua"
}
},
"end": "(?=[\\n#])",
"patterns": [
{
"include": "#string"
},
{
"include": "#emmydoc.type"
},
{
"match": "\\]",
"name": "keyword.operator.lua"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)@generic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",
"beginCaptures": {
"0": {
"name": "storage.type.generic.lua"
}
},
"end": "(?=\\n)|(,)",
"endCaptures": {
"0": {
"name": "keyword.operator.lua"
}
},
"patterns": [
{
"match": ":",
"name": "keyword.operator.lua"
},
{
"include": "#emmydoc.type"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)@vararg",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
},
{
"begin": "(?<=---[ \\t]*)@overload",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#emmydoc.type"
}
]
},
{
"begin": "(?<=---[ \\t]*)@deprecated",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@meta",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@private",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@protected",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@package",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@version",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"match": "\\b(5\\.1|5\\.2|5\\.3|5\\.4|JIT)\\b",
"name": "support.class.lua"
},
{
"match": ",|\\>|\\<",
"name": "keyword.operator.lua"
}
]
},
{
"begin": "(?<=---[ \\t]*)@see",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
"name": "support.class.lua"
},
{
"match": "#",
"name": "keyword.operator.lua"
}
]
},
{
"begin": "(?<=---[ \\t]*)@diagnostic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"begin": "([a-zA-Z_\\-0-9]+)[ \\t]*(:)?",
"beginCaptures": {
"1": {
"name": "keyword.other.unit"
},
"2": {
"name": "keyword.operator.unit"
}
},
"end": "(?=\\n)",
"patterns": [
{
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\-]*)",
"name": "support.class.lua"
},
{
"match": ",",
"name": "keyword.operator.lua"
}
]
}
]
},
{
"begin": "(?<=---[ \\t]*)@module",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#string"
}
]
},
{
"match": "(?<=---[ \\t]*)@(async|nodiscard)",
"name": "storage.type.annotation.lua"
},
{
"begin": "(?<=---)\\|\\s*[\\>\\+]?",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
}
},
"end": "(?=[\\n@#])",
"patterns": [
{
"include": "#string"
}
]
}
]
},
"emmydoc.type": {
"patterns": [
{
"begin": "\\bfun\\b",
"beginCaptures": {
"0": {
"name": "keyword.control.lua"
}
},
"end": "(?=[\\s#])",
"patterns": [
{
"match": "[\\(\\),:\\?][ \\t]*",
"name": "keyword.operator.lua"
},
{
"match": "([a-zA-Z_][a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]*)(?<!,)[ \\t]*(?=\\??:)",
"name": "entity.name.variable.lua"
},
{
"include": "#emmydoc.type"
},
{
"include": "#string"
}
]
},
{
"match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
"name": "storage.type.generic.lua"
},
{
"match": "\\basync\\b",
"name": "entity.name.tag.lua"
},
{
"match": "[\\{\\}\\:\\,\\?\\|\\`][ \\t]*",
"name": "keyword.operator.lua"
},
{
"begin": "(?=[a-zA-Z_\\.\\*\"'\\[])",
"end": "(?=[\\s\\)\\,\\?\\:\\}\\|#])",
"patterns": [
{
"match": "([a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]+)(?<!,)[ \\t]*",
"name": "support.type.lua"
},
{
"match": "(\\.\\.\\.)[ \\t]*",
"name": "constant.language.lua"
},
{
"include": "#string"
}
]
}
]
},
"ldoc_tag": {
"match": "\\G[ \\t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\b",
"end": "(?!@)\\b",
"captures": {
"1": {
"name": "punctuation.definition.block.tag.ldoc"
},
"2": {
"name": "storage.type.class.ldoc"
}
}
}
}
}

634
node_modules/shiki/languages/make.tmLanguage.json generated vendored Normal file
View file

@ -0,0 +1,634 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/fadeevab/make.tmbundle/blob/master/Syntaxes/Makefile.plist",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/fadeevab/make.tmbundle/commit/1d4c0b541959995db098df751ffc129da39a294b",
"name": "make",
"scopeName": "source.makefile",
"patterns": [
{
"include": "#comment"
},
{
"include": "#variables"
},
{
"include": "#variable-assignment"
},
{
"include": "#directives"
},
{
"include": "#recipe"
},
{
"include": "#target"
}
],
"repository": {
"comma": {
"match": ",",
"name": "punctuation.separator.delimeter.comma.makefile"
},
"comment": {
"begin": "(^[ ]+)?((?<!\\\\)(\\\\\\\\)*)(?=#)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.makefile"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "#",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.makefile"
}
},
"end": "(?=[^\\\\])$",
"name": "comment.line.number-sign.makefile",
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
}
]
}
]
},
"directives": {
"patterns": [
{
"begin": "^[ ]*([s\\-]?include)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.include.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comment"
},
{
"include": "#variables"
},
{
"match": "%",
"name": "constant.other.placeholder.makefile"
}
]
},
{
"begin": "^[ ]*(vpath)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.vpath.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comment"
},
{
"include": "#variables"
},
{
"match": "%",
"name": "constant.other.placeholder.makefile"
}
]
},
{
"begin": "^\\s*(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)",
"captures": {
"1": {
"name": "keyword.control.override.makefile"
},
"2": {
"name": "keyword.control.define.makefile"
},
"3": {
"name": "variable.other.makefile"
},
"4": {
"name": "punctuation.separator.key-value.makefile"
}
},
"end": "^\\s*(endef)\\b",
"name": "meta.scope.conditional.makefile",
"patterns": [
{
"begin": "\\G(?!\\n)",
"end": "^",
"patterns": [
{
"include": "#comment"
}
]
},
{
"include": "#variables"
},
{
"include": "#directives"
}
]
},
{
"begin": "^[ ]*(export)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.$1.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comment"
},
{
"include": "#variable-assignment"
},
{
"match": "[^\\s]+",
"name": "variable.other.makefile"
}
]
},
{
"begin": "^[ ]*(override|private)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.$1.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comment"
},
{
"include": "#variable-assignment"
}
]
},
{
"begin": "^[ ]*(unexport|undefine)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.$1.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comment"
},
{
"match": "[^\\s]+",
"name": "variable.other.makefile"
}
]
},
{
"begin": "^\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\s)",
"captures": {
"1": {
"name": "keyword.control.$1.makefile"
}
},
"end": "^\\s*(endif)\\b",
"name": "meta.scope.conditional.makefile",
"patterns": [
{
"begin": "\\G",
"end": "^",
"name": "meta.scope.condition.makefile",
"patterns": [
{
"include": "#comma"
},
{
"include": "#variables"
},
{
"include": "#comment"
}
]
},
{
"begin": "^\\s*else(?=\\s)\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\s)",
"beginCaptures": {
"0": {
"name": "keyword.control.else.makefile"
}
},
"end": "^",
"patterns": [
{
"include": "#comma"
},
{
"include": "#variables"
},
{
"include": "#comment"
}
]
},
{
"include": "$self"
}
]
}
]
},
"target": {
"begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
"beginCaptures": {
"1": {
"patterns": [
{
"captures": {
"1": {
"name": "support.function.target.$1.makefile"
}
},
"match": "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$"
},
{
"begin": "(?=\\S)",
"end": "(?=\\s|$)",
"name": "entity.name.function.target.makefile",
"patterns": [
{
"include": "#variables"
},
{
"match": "%",
"name": "constant.other.placeholder.makefile"
}
]
}
]
},
"2": {
"name": "punctuation.separator.key-value.makefile"
}
},
"end": "[^\\\\]$",
"name": "meta.scope.target.makefile",
"patterns": [
{
"begin": "\\G",
"end": "(?=[^\\\\])$",
"name": "meta.scope.prerequisites.makefile",
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
},
{
"match": "%|\\*",
"name": "constant.other.placeholder.makefile"
},
{
"include": "#comment"
},
{
"include": "#variables"
}
]
}
]
},
"recipe": {
"begin": "^\\t([+\\-@]*)",
"beginCaptures": {
"1": {
"name": "keyword.control.$1.makefile"
}
},
"end": "[^\\\\]$",
"name": "meta.scope.recipe.makefile",
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
},
{
"include": "#variables"
}
]
},
"variable-assignment": {
"begin": "(^[ ]*|\\G\\s*)([^\\s:#=]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)",
"beginCaptures": {
"2": {
"name": "variable.other.makefile",
"patterns": [
{
"include": "#variables"
}
]
},
"3": {
"name": "punctuation.separator.key-value.makefile"
}
},
"end": "\\n",
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
},
{
"include": "#comment"
},
{
"include": "#variables"
}
]
},
"interpolation": {
"patterns": [
{
"include": "#parentheses-interpolation"
},
{
"include": "#braces-interpolation"
}
]
},
"parentheses-interpolation": {
"begin": "\\(",
"end": "\\)",
"patterns": [
{
"include": "#variables"
},
{
"include": "#interpolation"
}
]
},
"braces-interpolation": {
"begin": "{",
"end": "}",
"patterns": [
{
"include": "#variables"
},
{
"include": "#interpolation"
}
]
},
"variables": {
"patterns": [
{
"include": "#simple-variable"
},
{
"include": "#variable-parentheses"
},
{
"include": "#variable-braces"
}
]
},
"simple-variable": {
"patterns": [
{
"match": "\\$[^(){}]",
"name": "variable.language.makefile"
}
]
},
"variable-parentheses": {
"patterns": [
{
"begin": "\\$\\(",
"captures": {
"0": {
"name": "punctuation.definition.variable.makefile"
}
},
"end": "\\)|((?<!\\\\)\\n)",
"name": "string.interpolated.makefile",
"patterns": [
{
"include": "#variables"
},
{
"include": "#builtin-variable-parentheses"
},
{
"include": "#function-variable-parentheses"
},
{
"include": "#flavor-variable-parentheses"
},
{
"include": "#another-variable-parentheses"
}
]
}
]
},
"variable-braces": {
"patterns": [
{
"begin": "\\${",
"captures": {
"0": {
"name": "punctuation.definition.variable.makefile"
}
},
"end": "}|((?<!\\\\)\\n)",
"name": "string.interpolated.makefile",
"patterns": [
{
"include": "#variables"
},
{
"include": "#builtin-variable-braces"
},
{
"include": "#function-variable-braces"
},
{
"include": "#flavor-variable-braces"
},
{
"include": "#another-variable-braces"
}
]
}
]
},
"builtin-variable-parentheses": {
"patterns": [
{
"match": "(?<=\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))",
"name": "variable.language.makefile"
}
]
},
"builtin-variable-braces": {
"patterns": [
{
"match": "(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*})",
"name": "variable.language.makefile"
}
]
},
"function-variable-parentheses": {
"patterns": [
{
"begin": "(?<=\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
"beginCaptures": {
"1": {
"name": "support.function.$1.makefile"
}
},
"end": "(?=\\)|((?<!\\\\)\\n))",
"name": "meta.scope.function-call.makefile",
"patterns": [
{
"include": "#comma"
},
{
"include": "#variables"
},
{
"include": "#interpolation"
},
{
"match": "%|\\*",
"name": "constant.other.placeholder.makefile"
},
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
}
]
}
]
},
"function-variable-braces": {
"patterns": [
{
"begin": "(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
"beginCaptures": {
"1": {
"name": "support.function.$1.makefile"
}
},
"end": "(?=}|((?<!\\\\)\\n))",
"name": "meta.scope.function-call.makefile",
"patterns": [
{
"include": "#comma"
},
{
"include": "#variables"
},
{
"include": "#interpolation"
},
{
"match": "%|\\*",
"name": "constant.other.placeholder.makefile"
},
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
}
]
}
]
},
"flavor-variable-parentheses": {
"patterns": [
{
"begin": "(?<=\\()(origin|flavor)\\s(?=[^\\s)]+\\s*\\))",
"contentName": "variable.other.makefile",
"beginCaptures": {
"1": {
"name": "support.function.$1.makefile"
}
},
"end": "(?=\\))",
"name": "meta.scope.function-call.makefile",
"patterns": [
{
"include": "#variables"
}
]
}
]
},
"flavor-variable-braces": {
"patterns": [
{
"begin": "(?<={)(origin|flavor)\\s(?=[^\\s}]+\\s*})",
"contentName": "variable.other.makefile",
"beginCaptures": {
"1": {
"name": "support.function.$1.makefile"
}
},
"end": "(?=})",
"name": "meta.scope.function-call.makefile",
"patterns": [
{
"include": "#variables"
}
]
}
]
},
"another-variable-parentheses": {
"patterns": [
{
"begin": "(?<=\\()(?!\\))",
"end": "(?=\\)|((?<!\\\\)\\n))",
"name": "variable.other.makefile",
"patterns": [
{
"include": "#variables"
},
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
}
]
}
]
},
"another-variable-braces": {
"patterns": [
{
"begin": "(?<={)(?!})",
"end": "(?=}|((?<!\\\\)\\n))",
"name": "variable.other.makefile",
"patterns": [
{
"include": "#variables"
},
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
}
]
}
]
}
}
}

Some files were not shown because too many files have changed in this diff Show more