mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Add built-in language grammar extensions for C#, F#, HTML, and Javascript. (#18216)
This commit is contained in:
2
extensions/csharp/.vscodeignore
Normal file
2
extensions/csharp/.vscodeignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
test/**
|
||||||
|
cgmanifest.json
|
||||||
18
extensions/csharp/cgmanifest.json
Normal file
18
extensions/csharp/cgmanifest.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"registrations": [
|
||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"type": "git",
|
||||||
|
"git": {
|
||||||
|
"name": "dotnet/csharp-tmLanguage",
|
||||||
|
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
|
||||||
|
"commitHash": "16612717ccd557383c0c821d7b6ae6662492ffde"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "The file syntaxes/csharp.tmLanguage.json was derived from https://github.com/dotnet/csharp-tmLanguage"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
32
extensions/csharp/language-configuration.json
Normal file
32
extensions/csharp/language-configuration.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"lineComment": "//",
|
||||||
|
"blockComment": ["/*", "*/"]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||||
|
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["<", ">"],
|
||||||
|
["'", "'"],
|
||||||
|
["\"", "\""]
|
||||||
|
],
|
||||||
|
"folding": {
|
||||||
|
"markers": {
|
||||||
|
"start": "^\\s*#region\\b",
|
||||||
|
"end": "^\\s*#endregion\\b"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
extensions/csharp/package.json
Normal file
48
extensions/csharp/package.json
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"name": "csharp",
|
||||||
|
"displayName": "%displayName%",
|
||||||
|
"description": "%description%",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"publisher": "vscode",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"vscode": "0.10.x"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
|
||||||
|
},
|
||||||
|
"contributes": {
|
||||||
|
"languages": [
|
||||||
|
{
|
||||||
|
"id": "csharp",
|
||||||
|
"extensions": [
|
||||||
|
".cs",
|
||||||
|
".csx",
|
||||||
|
".cake"
|
||||||
|
],
|
||||||
|
"aliases": [
|
||||||
|
"C#",
|
||||||
|
"csharp"
|
||||||
|
],
|
||||||
|
"configuration": "./language-configuration.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"language": "csharp",
|
||||||
|
"scopeName": "source.cs",
|
||||||
|
"path": "./syntaxes/csharp.tmLanguage.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"language": "csharp",
|
||||||
|
"path": "./snippets/csharp.code-snippets"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/microsoft/vscode.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
extensions/csharp/package.nls.json
Normal file
4
extensions/csharp/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"displayName": "C# Language Basics",
|
||||||
|
"description": "Provides snippets, syntax highlighting, bracket matching and folding in C# files."
|
||||||
|
}
|
||||||
16
extensions/csharp/snippets/csharp.code-snippets
Normal file
16
extensions/csharp/snippets/csharp.code-snippets
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"Region Start": {
|
||||||
|
"prefix": "#region",
|
||||||
|
"body": [
|
||||||
|
"#region $0"
|
||||||
|
],
|
||||||
|
"description": "Folding Region Start"
|
||||||
|
},
|
||||||
|
"Region End": {
|
||||||
|
"prefix": "#endregion",
|
||||||
|
"body": [
|
||||||
|
"#endregion"
|
||||||
|
],
|
||||||
|
"description": "Folding Region End"
|
||||||
|
}
|
||||||
|
}
|
||||||
4742
extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
4742
extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load Diff
4
extensions/csharp/yarn.lock
Normal file
4
extensions/csharp/yarn.lock
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
2
extensions/fsharp/.vscodeignore
Normal file
2
extensions/fsharp/.vscodeignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
test/**
|
||||||
|
cgmanifest.json
|
||||||
18
extensions/fsharp/cgmanifest.json
Normal file
18
extensions/fsharp/cgmanifest.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"registrations": [
|
||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"type": "git",
|
||||||
|
"git": {
|
||||||
|
"name": "ionide/ionide-fsgrammar",
|
||||||
|
"repositoryUrl": "https://github.com/ionide/ionide-fsgrammar",
|
||||||
|
"commitHash": "3311701c243d6ed5b080a2ee16ada51540a08c50"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"description": "The file syntaxes/fsharp.json was included from https://github.com/ionide/ionide-fsgrammar/blob/master/grammar/fsharp.json.",
|
||||||
|
"version": "0.0.0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
31
extensions/fsharp/language-configuration.json
Normal file
31
extensions/fsharp/language-configuration.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"lineComment": "//",
|
||||||
|
"blockComment": [ "(*", "*)" ]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{ "open": "{", "close": "}" },
|
||||||
|
{ "open": "[", "close": "]" },
|
||||||
|
{ "open": "(", "close": ")" },
|
||||||
|
{ "open": "\"", "close": "\"", "notIn": ["string"] }
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["\"", "\""],
|
||||||
|
["'", "'"]
|
||||||
|
],
|
||||||
|
"folding": {
|
||||||
|
"offSide": true,
|
||||||
|
"markers": {
|
||||||
|
"start": "^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)",
|
||||||
|
"end": "^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
50
extensions/fsharp/package.json
Normal file
50
extensions/fsharp/package.json
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"name": "fsharp",
|
||||||
|
"displayName": "%displayName%",
|
||||||
|
"description": "%description%",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"publisher": "vscode",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"vscode": "*"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin ionide/ionide-fsgrammar grammars/fsharp.json ./syntaxes/fsharp.tmLanguage.json"
|
||||||
|
},
|
||||||
|
"contributes": {
|
||||||
|
"languages": [
|
||||||
|
{
|
||||||
|
"id": "fsharp",
|
||||||
|
"extensions": [
|
||||||
|
".fs",
|
||||||
|
".fsi",
|
||||||
|
".fsx",
|
||||||
|
".fsscript"
|
||||||
|
],
|
||||||
|
"aliases": [
|
||||||
|
"F#",
|
||||||
|
"FSharp",
|
||||||
|
"fsharp"
|
||||||
|
],
|
||||||
|
"configuration": "./language-configuration.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"language": "fsharp",
|
||||||
|
"scopeName": "source.fsharp",
|
||||||
|
"path": "./syntaxes/fsharp.tmLanguage.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"language": "fsharp",
|
||||||
|
"path": "./snippets/fsharp.code-snippets"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/microsoft/vscode.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
extensions/fsharp/package.nls.json
Normal file
4
extensions/fsharp/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"displayName": "F# Language Basics",
|
||||||
|
"description": "Provides snippets, syntax highlighting, bracket matching and folding in F# files."
|
||||||
|
}
|
||||||
16
extensions/fsharp/snippets/fsharp.code-snippets
Normal file
16
extensions/fsharp/snippets/fsharp.code-snippets
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"Region Start": {
|
||||||
|
"prefix": "#region",
|
||||||
|
"body": [
|
||||||
|
"//#region $0"
|
||||||
|
],
|
||||||
|
"description": "Folding Region Start"
|
||||||
|
},
|
||||||
|
"Region End": {
|
||||||
|
"prefix": "#endregion",
|
||||||
|
"body": [
|
||||||
|
"//#endregion"
|
||||||
|
],
|
||||||
|
"description": "Folding Region End"
|
||||||
|
}
|
||||||
|
}
|
||||||
1815
extensions/fsharp/syntaxes/fsharp.tmLanguage.json
Normal file
1815
extensions/fsharp/syntaxes/fsharp.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load Diff
4
extensions/fsharp/yarn.lock
Normal file
4
extensions/fsharp/yarn.lock
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
3
extensions/html/.vscodeignore
Normal file
3
extensions/html/.vscodeignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
build/**
|
||||||
|
test/**
|
||||||
|
cgmanifest.json
|
||||||
44
extensions/html/build/update-grammar.js
Normal file
44
extensions/html/build/update-grammar.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
// @ts-check
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var updateGrammar = require('vscode-grammar-updater');
|
||||||
|
|
||||||
|
function patchGrammar(grammar) {
|
||||||
|
let patchCount = 0;
|
||||||
|
|
||||||
|
let visit = function (rule, parent) {
|
||||||
|
if (rule.name === 'source.js' || rule.name === 'source.css') {
|
||||||
|
if (parent.parent && parent.parent.property === 'endCaptures') {
|
||||||
|
rule.name = rule.name + '-ignored-vscode';
|
||||||
|
patchCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (let property in rule) {
|
||||||
|
let value = rule[property];
|
||||||
|
if (typeof value === 'object') {
|
||||||
|
visit(value, { node: rule, property: property, parent: parent });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
let repository = grammar.repository;
|
||||||
|
for (let key in repository) {
|
||||||
|
visit(repository[key], { node: repository, property: key, parent: undefined });
|
||||||
|
}
|
||||||
|
if (patchCount !== 6) {
|
||||||
|
console.warn(`Expected to patch 6 occurrences of source.js & source.css: Was ${patchCount}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return grammar;
|
||||||
|
}
|
||||||
|
|
||||||
|
const tsGrammarRepo = 'textmate/html.tmbundle';
|
||||||
|
const grammarPath = 'Syntaxes/HTML.plist';
|
||||||
|
updateGrammar.update(tsGrammarRepo, grammarPath, './syntaxes/html.tmLanguage.json', grammar => patchGrammar(grammar));
|
||||||
|
|
||||||
|
|
||||||
32
extensions/html/cgmanifest.json
Normal file
32
extensions/html/cgmanifest.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"registrations": [
|
||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"type": "git",
|
||||||
|
"git": {
|
||||||
|
"name": "textmate/html.tmbundle",
|
||||||
|
"repositoryUrl": "https://github.com/textmate/html.tmbundle",
|
||||||
|
"commitHash": "0c3d5ee54de3a993f747f54186b73a4d2d3c44a2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"licenseDetail": [
|
||||||
|
"Copyright (c) textmate-html.tmbundle project authors",
|
||||||
|
"",
|
||||||
|
"If not otherwise specified (see below), files in this repository fall under the following license:",
|
||||||
|
"",
|
||||||
|
"Permission to copy, use, modify, sell and distribute this",
|
||||||
|
"software is granted. This software is provided \"as is\" without",
|
||||||
|
"express or implied warranty, and with no claim as to its",
|
||||||
|
"suitability for any purpose.",
|
||||||
|
"",
|
||||||
|
"An exception is made for files in readable text which contain their own license information,",
|
||||||
|
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added",
|
||||||
|
"to the base-name name of the original file, and an extension of txt, html, or similar. For example",
|
||||||
|
"\"tidy\" is accompanied by \"tidy-license.txt\"."
|
||||||
|
],
|
||||||
|
"license": "TextMate Bundle License",
|
||||||
|
"version": "0.0.0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
55
extensions/html/language-configuration.json
Normal file
55
extensions/html/language-configuration.json
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"blockComment": [ "<!--", "-->" ]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{ "open": "{", "close": "}"},
|
||||||
|
{ "open": "[", "close": "]"},
|
||||||
|
{ "open": "(", "close": ")" },
|
||||||
|
{ "open": "'", "close": "'" },
|
||||||
|
{ "open": "\"", "close": "\"" },
|
||||||
|
{ "open": "<!--", "close": "-->", "notIn": [ "comment", "string" ]}
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
{ "open": "'", "close": "'" },
|
||||||
|
{ "open": "\"", "close": "\"" },
|
||||||
|
{ "open": "{", "close": "}"},
|
||||||
|
{ "open": "[", "close": "]"},
|
||||||
|
{ "open": "(", "close": ")" },
|
||||||
|
{ "open": "<", "close": ">" }
|
||||||
|
],
|
||||||
|
"colorizedBracketPairs": [
|
||||||
|
],
|
||||||
|
"folding": {
|
||||||
|
"markers": {
|
||||||
|
"start": "^\\s*<!--\\s*#region\\b.*-->",
|
||||||
|
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)",
|
||||||
|
"onEnterRules": [
|
||||||
|
{
|
||||||
|
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$", "flags": "i" },
|
||||||
|
"afterText": { "pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>", "flags": "i" },
|
||||||
|
"action": {
|
||||||
|
"indent": "indentOutdent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$", "flags": "i" },
|
||||||
|
"action": {
|
||||||
|
"indent": "indent"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"indentationRules": {
|
||||||
|
"increaseIndentPattern": "<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|keygen|link|menuitem|meta|param|source|track|wbr)\\b|[^>]*\\/>)([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}\"']*$",
|
||||||
|
"decreaseIndentPattern": "^\\s*(<\\/(?!html)[-_\\.A-Za-z0-9]+\\b[^>]*>|-->|\\})"
|
||||||
|
}
|
||||||
|
}
|
||||||
85
extensions/html/package.json
Normal file
85
extensions/html/package.json
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
{
|
||||||
|
"name": "html",
|
||||||
|
"displayName": "%displayName%",
|
||||||
|
"description": "%description%",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"publisher": "vscode",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"vscode": "0.10.x"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"update-grammar": "node ./build/update-grammar.js"
|
||||||
|
},
|
||||||
|
"contributes": {
|
||||||
|
"languages": [
|
||||||
|
{
|
||||||
|
"id": "html",
|
||||||
|
"extensions": [
|
||||||
|
".html",
|
||||||
|
".htm",
|
||||||
|
".shtml",
|
||||||
|
".xhtml",
|
||||||
|
".xht",
|
||||||
|
".mdoc",
|
||||||
|
".jsp",
|
||||||
|
".asp",
|
||||||
|
".aspx",
|
||||||
|
".jshtm",
|
||||||
|
".volt",
|
||||||
|
".ejs",
|
||||||
|
".rhtml"
|
||||||
|
],
|
||||||
|
"aliases": [
|
||||||
|
"HTML",
|
||||||
|
"htm",
|
||||||
|
"html",
|
||||||
|
"xhtml"
|
||||||
|
],
|
||||||
|
"mimetypes": [
|
||||||
|
"text/html",
|
||||||
|
"text/x-jshtm",
|
||||||
|
"text/template",
|
||||||
|
"text/ng-template",
|
||||||
|
"application/xhtml+xml"
|
||||||
|
],
|
||||||
|
"configuration": "./language-configuration.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"scopeName": "text.html.basic",
|
||||||
|
"path": "./syntaxes/html.tmLanguage.json",
|
||||||
|
"embeddedLanguages": {
|
||||||
|
"text.html": "html",
|
||||||
|
"source.css": "css",
|
||||||
|
"source.js": "javascript",
|
||||||
|
"source.python": "python",
|
||||||
|
"source.smarty": "smarty"
|
||||||
|
},
|
||||||
|
"tokenTypes": {
|
||||||
|
"meta.tag string.quoted": "other"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "html",
|
||||||
|
"scopeName": "text.html.derivative",
|
||||||
|
"path": "./syntaxes/html-derivative.tmLanguage.json",
|
||||||
|
"embeddedLanguages": {
|
||||||
|
"text.html": "html",
|
||||||
|
"source.css": "css",
|
||||||
|
"source.js": "javascript",
|
||||||
|
"source.python": "python",
|
||||||
|
"source.smarty": "smarty"
|
||||||
|
},
|
||||||
|
"tokenTypes": {
|
||||||
|
"meta.tag string.quoted": "other"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/microsoft/vscode.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
extensions/html/package.nls.json
Normal file
4
extensions/html/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"displayName": "HTML Language Basics",
|
||||||
|
"description": "Provides syntax highlighting, bracket matching & snippets in HTML files."
|
||||||
|
}
|
||||||
49
extensions/html/syntaxes/html-derivative.tmLanguage.json
Normal file
49
extensions/html/syntaxes/html-derivative.tmLanguage.json
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"information_for_contributors": [
|
||||||
|
"This file has been converted from https://github.com/textmate/html.tmbundle/blob/master/Syntaxes/HTML%20%28Derivative%29.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/html.tmbundle/commit/390c8870273a2ae80244dae6db6ba064a802f407",
|
||||||
|
"name": "HTML (Derivative)",
|
||||||
|
"scopeName": "text.html.derivative",
|
||||||
|
"injections": {
|
||||||
|
"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)": {
|
||||||
|
"comment": "Uses R: to ensure this matches after any other injections.",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"match": "<",
|
||||||
|
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "text.html.basic#core-minus-invalid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "(</?)(\\w[^\\s>]*)(?<!/)",
|
||||||
|
"beginCaptures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.begin.html"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.name.tag.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "((?: ?/)?>)",
|
||||||
|
"endCaptures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.end.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "meta.tag.other.unrecognized.html.derivative",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "text.html.basic#attribute"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
2643
extensions/html/syntaxes/html.tmLanguage.json
Normal file
2643
extensions/html/syntaxes/html.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
4
extensions/html/yarn.lock
Normal file
4
extensions/html/yarn.lock
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
4
extensions/javascript/.vscodeignore
Normal file
4
extensions/javascript/.vscodeignore
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
test/**
|
||||||
|
src/**/*.ts
|
||||||
|
tsconfig.json
|
||||||
|
cgmanifest.json
|
||||||
45
extensions/javascript/cgmanifest.json
Normal file
45
extensions/javascript/cgmanifest.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"registrations": [
|
||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"type": "git",
|
||||||
|
"git": {
|
||||||
|
"name": "microsoft/TypeScript-TmLanguage",
|
||||||
|
"repositoryUrl": "https://github.com/microsoft/TypeScript-TmLanguage",
|
||||||
|
"commitHash": "3133e3d914db9a2bb8812119f9273727a305f16b"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "The file syntaxes/JavaScript.tmLanguage.json was derived from TypeScriptReact.tmLanguage in https://github.com/microsoft/TypeScript-TmLanguage."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"component": {
|
||||||
|
"type": "git",
|
||||||
|
"git": {
|
||||||
|
"name": "textmate/javascript.tmbundle",
|
||||||
|
"repositoryUrl": "https://github.com/textmate/javascript.tmbundle",
|
||||||
|
"commitHash": "fccf0af0c95430a42e1bf98f0c7a4723a53283e7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"licenseDetail": [
|
||||||
|
"Copyright (c) textmate-javascript.tmbundle project authors",
|
||||||
|
"",
|
||||||
|
"If not otherwise specified (see below), files in this repository fall under the following license:",
|
||||||
|
"",
|
||||||
|
"Permission to copy, use, modify, sell and distribute this",
|
||||||
|
"software is granted. This software is provided \"as is\" without",
|
||||||
|
"express or implied warranty, and with no claim as to its",
|
||||||
|
"suitability for any purpose.",
|
||||||
|
"",
|
||||||
|
"An exception is made for files in readable text which contain their own license information,",
|
||||||
|
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added",
|
||||||
|
"to the base-name name of the original file, and an extension of txt, html, or similar. For example",
|
||||||
|
"\"tidy\" is accompanied by \"tidy-license.txt\"."
|
||||||
|
],
|
||||||
|
"license": "TextMate Bundle License",
|
||||||
|
"version": "0.0.0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
193
extensions/javascript/javascript-language-configuration.json
Normal file
193
extensions/javascript/javascript-language-configuration.json
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
{
|
||||||
|
// Note that this file should stay in sync with 'typescript-language-basics/language-configuration.json'
|
||||||
|
"comments": {
|
||||||
|
"lineComment": "//",
|
||||||
|
"blockComment": [
|
||||||
|
"/*",
|
||||||
|
"*/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
[
|
||||||
|
"${",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"{",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
")"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{
|
||||||
|
"open": "{",
|
||||||
|
"close": "}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "[",
|
||||||
|
"close": "]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "(",
|
||||||
|
"close": ")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "'",
|
||||||
|
"close": "'",
|
||||||
|
"notIn": [
|
||||||
|
"string",
|
||||||
|
"comment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "\"",
|
||||||
|
"close": "\"",
|
||||||
|
"notIn": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "`",
|
||||||
|
"close": "`",
|
||||||
|
"notIn": [
|
||||||
|
"string",
|
||||||
|
"comment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "/**",
|
||||||
|
"close": " */",
|
||||||
|
"notIn": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
[
|
||||||
|
"{",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
")"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"'",
|
||||||
|
"'"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"\"",
|
||||||
|
"\""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"`",
|
||||||
|
"`"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"<",
|
||||||
|
">"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"autoCloseBefore": ";:.,=}])>` \n\t",
|
||||||
|
"folding": {
|
||||||
|
"markers": {
|
||||||
|
"start": "^\\s*//\\s*#?region\\b",
|
||||||
|
"end": "^\\s*//\\s*#?endregion\\b"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wordPattern": {
|
||||||
|
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
|
||||||
|
},
|
||||||
|
"indentationRules": {
|
||||||
|
"decreaseIndentPattern": {
|
||||||
|
"pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]].*$"
|
||||||
|
},
|
||||||
|
"increaseIndentPattern": {
|
||||||
|
"pattern": "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
|
||||||
|
},
|
||||||
|
// e.g. * ...| or */| or *-----*/|
|
||||||
|
"unIndentedLinePattern": {
|
||||||
|
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"onEnterRules": [
|
||||||
|
{
|
||||||
|
// e.g. /** | */
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
||||||
|
},
|
||||||
|
"afterText": {
|
||||||
|
"pattern": "^\\s*\\*/$"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indentOutdent",
|
||||||
|
"appendText": " * "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// e.g. /** ...|
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "none",
|
||||||
|
"appendText": " * "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// e.g. * ...|
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
||||||
|
},
|
||||||
|
"previousLineText": {
|
||||||
|
"pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "none",
|
||||||
|
"appendText": "* "
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// e.g. */|
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^(\\t|[ ])*[ ]\\*/\\s*$"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "none",
|
||||||
|
"removeText": 1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// e.g. *-----*/|
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "none",
|
||||||
|
"removeText": 1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
|
||||||
|
},
|
||||||
|
"afterText": {
|
||||||
|
"pattern": "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indent"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
179
extensions/javascript/package.json
Normal file
179
extensions/javascript/package.json
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"name": "javascript",
|
||||||
|
"displayName": "%displayName%",
|
||||||
|
"description": "%description%",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"publisher": "vscode",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"vscode": "0.10.x"
|
||||||
|
},
|
||||||
|
"contributes": {
|
||||||
|
"configurationDefaults": {
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.maxTokenizationLineLength": 2500
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"languages": [
|
||||||
|
{
|
||||||
|
"id": "javascriptreact",
|
||||||
|
"aliases": [
|
||||||
|
"JavaScript React",
|
||||||
|
"jsx"
|
||||||
|
],
|
||||||
|
"extensions": [
|
||||||
|
".jsx"
|
||||||
|
],
|
||||||
|
"configuration": "./javascript-language-configuration.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "javascript",
|
||||||
|
"aliases": [
|
||||||
|
"JavaScript",
|
||||||
|
"javascript",
|
||||||
|
"js"
|
||||||
|
],
|
||||||
|
"extensions": [
|
||||||
|
".js",
|
||||||
|
".es6",
|
||||||
|
".mjs",
|
||||||
|
".cjs",
|
||||||
|
".pac"
|
||||||
|
],
|
||||||
|
"filenames": [
|
||||||
|
"jakefile"
|
||||||
|
],
|
||||||
|
"firstLine": "^#!.*\\bnode",
|
||||||
|
"mimetypes": [
|
||||||
|
"text/javascript"
|
||||||
|
],
|
||||||
|
"configuration": "./javascript-language-configuration.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "jsx-tags",
|
||||||
|
"aliases": [],
|
||||||
|
"configuration": "./tags-language-configuration.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"language": "javascriptreact",
|
||||||
|
"scopeName": "source.js.jsx",
|
||||||
|
"path": "./syntaxes/JavaScriptReact.tmLanguage.json",
|
||||||
|
"embeddedLanguages": {
|
||||||
|
"meta.tag.js": "jsx-tags",
|
||||||
|
"meta.tag.without-attributes.js": "jsx-tags",
|
||||||
|
"meta.tag.attributes.js.jsx": "javascriptreact",
|
||||||
|
"meta.embedded.expression.js": "javascriptreact"
|
||||||
|
},
|
||||||
|
"tokenTypes": {
|
||||||
|
"meta.template.expression": "other",
|
||||||
|
"meta.template.expression string": "string",
|
||||||
|
"meta.template.expression comment": "comment",
|
||||||
|
"entity.name.type.instance.jsdoc": "other",
|
||||||
|
"entity.name.function.tagged-template": "other",
|
||||||
|
"meta.import string.quoted": "other",
|
||||||
|
"variable.other.jsdoc": "other"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "javascript",
|
||||||
|
"scopeName": "source.js",
|
||||||
|
"path": "./syntaxes/JavaScript.tmLanguage.json",
|
||||||
|
"embeddedLanguages": {
|
||||||
|
"meta.tag.js": "jsx-tags",
|
||||||
|
"meta.tag.without-attributes.js": "jsx-tags",
|
||||||
|
"meta.tag.attributes.js": "javascript",
|
||||||
|
"meta.embedded.expression.js": "javascript"
|
||||||
|
},
|
||||||
|
"tokenTypes": {
|
||||||
|
"meta.template.expression": "other",
|
||||||
|
"meta.template.expression string": "string",
|
||||||
|
"meta.template.expression comment": "comment",
|
||||||
|
"entity.name.type.instance.jsdoc": "other",
|
||||||
|
"entity.name.function.tagged-template": "other",
|
||||||
|
"meta.import string.quoted": "other",
|
||||||
|
"variable.other.jsdoc": "other"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scopeName": "source.js.regexp",
|
||||||
|
"path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"semanticTokenScopes": [
|
||||||
|
{
|
||||||
|
"language": "javascript",
|
||||||
|
"scopes": {
|
||||||
|
"property": [
|
||||||
|
"variable.other.property.js"
|
||||||
|
],
|
||||||
|
"property.readonly": [
|
||||||
|
"variable.other.constant.property.js"
|
||||||
|
],
|
||||||
|
"variable": [
|
||||||
|
"variable.other.readwrite.js"
|
||||||
|
],
|
||||||
|
"variable.readonly": [
|
||||||
|
"variable.other.constant.object.js"
|
||||||
|
],
|
||||||
|
"function": [
|
||||||
|
"entity.name.function.js"
|
||||||
|
],
|
||||||
|
"namespace": [
|
||||||
|
"entity.name.type.module.js"
|
||||||
|
],
|
||||||
|
"variable.defaultLibrary": [
|
||||||
|
"support.variable.js"
|
||||||
|
],
|
||||||
|
"function.defaultLibrary": [
|
||||||
|
"support.function.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "javascriptreact",
|
||||||
|
"scopes": {
|
||||||
|
"property": [
|
||||||
|
"variable.other.property.jsx"
|
||||||
|
],
|
||||||
|
"property.readonly": [
|
||||||
|
"variable.other.constant.property.jsx"
|
||||||
|
],
|
||||||
|
"variable": [
|
||||||
|
"variable.other.readwrite.jsx"
|
||||||
|
],
|
||||||
|
"variable.readonly": [
|
||||||
|
"variable.other.constant.object.jsx"
|
||||||
|
],
|
||||||
|
"function": [
|
||||||
|
"entity.name.function.jsx"
|
||||||
|
],
|
||||||
|
"namespace": [
|
||||||
|
"entity.name.type.module.jsx"
|
||||||
|
],
|
||||||
|
"variable.defaultLibrary": [
|
||||||
|
"support.variable.js"
|
||||||
|
],
|
||||||
|
"function.defaultLibrary": [
|
||||||
|
"support.function.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"language": "javascript",
|
||||||
|
"path": "./snippets/javascript.code-snippets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "javascriptreact",
|
||||||
|
"path": "./snippets/javascript.code-snippets"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/microsoft/vscode.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
extensions/javascript/package.nls.json
Normal file
4
extensions/javascript/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"displayName": "JavaScript Language Basics",
|
||||||
|
"description": "Provides snippets, syntax highlighting, bracket matching and folding in JavaScript files."
|
||||||
|
}
|
||||||
194
extensions/javascript/snippets/javascript.code-snippets
Normal file
194
extensions/javascript/snippets/javascript.code-snippets
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
{
|
||||||
|
"define module": {
|
||||||
|
"prefix": "define",
|
||||||
|
"body": [
|
||||||
|
"define([",
|
||||||
|
"\t'require',",
|
||||||
|
"\t'${1:dependency}'",
|
||||||
|
"], function(require, ${2:factory}) {",
|
||||||
|
"\t'use strict';",
|
||||||
|
"\t$0",
|
||||||
|
"});"
|
||||||
|
],
|
||||||
|
"description": "define module"
|
||||||
|
},
|
||||||
|
"For Loop": {
|
||||||
|
"prefix": "for",
|
||||||
|
"body": [
|
||||||
|
"for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
|
||||||
|
"\tconst ${3:element} = ${2:array}[${1:index}];",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "For Loop"
|
||||||
|
},
|
||||||
|
"For-Each Loop": {
|
||||||
|
"prefix": "foreach",
|
||||||
|
"body": [
|
||||||
|
"${1:array}.forEach(${2:element} => {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"});"
|
||||||
|
],
|
||||||
|
"description": "For-Each Loop"
|
||||||
|
},
|
||||||
|
"For-In Loop": {
|
||||||
|
"prefix": "forin",
|
||||||
|
"body": [
|
||||||
|
"for (const ${1:key} in ${2:object}) {",
|
||||||
|
"\tif (Object.hasOwnProperty.call(${2:object}, ${1:key})) {",
|
||||||
|
"\t\tconst ${3:element} = ${2:object}[${1:key}];",
|
||||||
|
"\t\t$TM_SELECTED_TEXT$0",
|
||||||
|
"\t}",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "For-In Loop"
|
||||||
|
},
|
||||||
|
"For-Of Loop": {
|
||||||
|
"prefix": "forof",
|
||||||
|
"body": [
|
||||||
|
"for (const ${1:iterator} of ${2:object}) {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "For-Of Loop"
|
||||||
|
},
|
||||||
|
"Function Statement": {
|
||||||
|
"prefix": "function",
|
||||||
|
"body": [
|
||||||
|
"function ${1:name}(${2:params}) {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Function Statement"
|
||||||
|
},
|
||||||
|
"If Statement": {
|
||||||
|
"prefix": "if",
|
||||||
|
"body": [
|
||||||
|
"if (${1:condition}) {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "If Statement"
|
||||||
|
},
|
||||||
|
"If-Else Statement": {
|
||||||
|
"prefix": "ifelse",
|
||||||
|
"body": [
|
||||||
|
"if (${1:condition}) {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"} else {",
|
||||||
|
"\t",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "If-Else Statement"
|
||||||
|
},
|
||||||
|
"New Statement": {
|
||||||
|
"prefix": "new",
|
||||||
|
"body": [
|
||||||
|
"const ${1:name} = new ${2:type}(${3:arguments});$0"
|
||||||
|
],
|
||||||
|
"description": "New Statement"
|
||||||
|
},
|
||||||
|
"Switch Statement": {
|
||||||
|
"prefix": "switch",
|
||||||
|
"body": [
|
||||||
|
"switch (${1:key}) {",
|
||||||
|
"\tcase ${2:value}:",
|
||||||
|
"\t\t$0",
|
||||||
|
"\t\tbreak;",
|
||||||
|
"",
|
||||||
|
"\tdefault:",
|
||||||
|
"\t\tbreak;",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Switch Statement"
|
||||||
|
},
|
||||||
|
"While Statement": {
|
||||||
|
"prefix": "while",
|
||||||
|
"body": [
|
||||||
|
"while (${1:condition}) {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "While Statement"
|
||||||
|
},
|
||||||
|
"Do-While Statement": {
|
||||||
|
"prefix": "dowhile",
|
||||||
|
"body": [
|
||||||
|
"do {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"} while (${1:condition});"
|
||||||
|
],
|
||||||
|
"description": "Do-While Statement"
|
||||||
|
},
|
||||||
|
"Try-Catch Statement": {
|
||||||
|
"prefix": "trycatch",
|
||||||
|
"body": [
|
||||||
|
"try {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"} catch (${1:error}) {",
|
||||||
|
"\t",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Try-Catch Statement"
|
||||||
|
},
|
||||||
|
"Set Timeout Function": {
|
||||||
|
"prefix": "settimeout",
|
||||||
|
"body": [
|
||||||
|
"setTimeout(() => {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}, ${1:timeout});"
|
||||||
|
],
|
||||||
|
"description": "Set Timeout Function"
|
||||||
|
},
|
||||||
|
"Set Interval Function": {
|
||||||
|
"prefix": "setinterval",
|
||||||
|
"body": [
|
||||||
|
"setInterval(() => {",
|
||||||
|
"\t$TM_SELECTED_TEXT$0",
|
||||||
|
"}, ${1:interval});"
|
||||||
|
],
|
||||||
|
"description": "Set Interval Function"
|
||||||
|
},
|
||||||
|
"Import external module.": {
|
||||||
|
"prefix": "import statement",
|
||||||
|
"body": [
|
||||||
|
"import { $0 } from \"${1:module}\";"
|
||||||
|
],
|
||||||
|
"description": "Import external module."
|
||||||
|
},
|
||||||
|
"Region Start": {
|
||||||
|
"prefix": "#region",
|
||||||
|
"body": [
|
||||||
|
"//#region $0"
|
||||||
|
],
|
||||||
|
"description": "Folding Region Start"
|
||||||
|
},
|
||||||
|
"Region End": {
|
||||||
|
"prefix": "#endregion",
|
||||||
|
"body": [
|
||||||
|
"//#endregion"
|
||||||
|
],
|
||||||
|
"description": "Folding Region End"
|
||||||
|
},
|
||||||
|
"Log to the console": {
|
||||||
|
"prefix": "log",
|
||||||
|
"body": [
|
||||||
|
"console.log($1);"
|
||||||
|
],
|
||||||
|
"description": "Log to the console"
|
||||||
|
},
|
||||||
|
"Log warning to console": {
|
||||||
|
"prefix": "warn",
|
||||||
|
"body": [
|
||||||
|
"console.warn($1);"
|
||||||
|
],
|
||||||
|
"description": "Log warning to the console"
|
||||||
|
},
|
||||||
|
"Log error to console": {
|
||||||
|
"prefix": "error",
|
||||||
|
"body": [
|
||||||
|
"console.error($1);"
|
||||||
|
],
|
||||||
|
"description": "Log error to the console"
|
||||||
|
}
|
||||||
|
}
|
||||||
5907
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
Normal file
5907
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
5907
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
Normal file
5907
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
10
extensions/javascript/syntaxes/Readme.md
Normal file
10
extensions/javascript/syntaxes/Readme.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
The file `JavaScript.tmLanguage.json` is derived from [TypeScriptReact.tmLanguage](https://github.com/microsoft/TypeScript-TmLanguage/blob/master/TypeScriptReact.tmLanguage).
|
||||||
|
|
||||||
|
To update to the latest version:
|
||||||
|
- `cd extensions/typescript` and run `npm run update-grammars`
|
||||||
|
- don't forget to run the integration tests at `./scripts/test-integration.sh`
|
||||||
|
|
||||||
|
The script does the following changes:
|
||||||
|
- fileTypes .tsx -> .js & .jsx
|
||||||
|
- scopeName scope.tsx -> scope.js
|
||||||
|
- update all rule names .tsx -> .js
|
||||||
@@ -0,0 +1,237 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>fileTypes</key>
|
||||||
|
<array/>
|
||||||
|
<key>hideFromUser</key>
|
||||||
|
<true/>
|
||||||
|
<key>name</key>
|
||||||
|
<string>Regular Expressions (JavaScript)</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>include</key>
|
||||||
|
<string>#regexp</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>repository</key>
|
||||||
|
<dict>
|
||||||
|
<key>regex-character-class</key>
|
||||||
|
<dict>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\[wWsSdD]|\.</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.character-class.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\([0-7]{3}|x\h\h|u\h\h\h\h)</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.numeric.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\c[A-Z]</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.control.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\.</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.escape.backslash.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<key>regexp</key>
|
||||||
|
<dict>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\[bB]|\^|\$</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.control.anchor.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\\[1-9]\d*</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.other.back-reference.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>[?+*]|\{(\d+,\d+|\d+,|,\d+|\d+)\}\??</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.operator.quantifier.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>\|</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.operator.or.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>begin</key>
|
||||||
|
<string>(\()((\?=)|(\?!))</string>
|
||||||
|
<key>beginCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>1</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.group.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>3</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>meta.assertion.look-ahead.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>4</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>meta.assertion.negative-look-ahead.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>end</key>
|
||||||
|
<string>(\))</string>
|
||||||
|
<key>endCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>1</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.group.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>meta.group.assertion.regexp</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>include</key>
|
||||||
|
<string>#regexp</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>begin</key>
|
||||||
|
<string>\((\?:)?</string>
|
||||||
|
<key>beginCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>0</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.group.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>end</key>
|
||||||
|
<string>\)</string>
|
||||||
|
<key>endCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>0</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.group.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>meta.group.regexp</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>include</key>
|
||||||
|
<string>#regexp</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>begin</key>
|
||||||
|
<string>(\[)(\^)?</string>
|
||||||
|
<key>beginCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>1</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.character-class.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>2</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>keyword.operator.negation.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>end</key>
|
||||||
|
<string>(\])</string>
|
||||||
|
<key>endCaptures</key>
|
||||||
|
<dict>
|
||||||
|
<key>1</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>punctuation.definition.character-class.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.other.character-class.set.regexp</string>
|
||||||
|
<key>patterns</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>captures</key>
|
||||||
|
<dict>
|
||||||
|
<key>1</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.numeric.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>2</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.control.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>3</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.escape.backslash.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>4</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.numeric.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>5</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.control.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<key>6</key>
|
||||||
|
<dict>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.character.escape.backslash.regexp</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>match</key>
|
||||||
|
<string>(?:.|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h))|(\\c[A-Z])|(\\.))</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>constant.other.character-class.range.regexp</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>include</key>
|
||||||
|
<string>#regex-character-class</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>include</key>
|
||||||
|
<string>#regex-character-class</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>scopeName</key>
|
||||||
|
<string>source.js.regexp</string>
|
||||||
|
<key>uuid</key>
|
||||||
|
<string>AC8679DE-3AC7-4056-84F9-69A7ADC29DDD</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
152
extensions/javascript/tags-language-configuration.json
Normal file
152
extensions/javascript/tags-language-configuration.json
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"blockComment": [
|
||||||
|
"{/*",
|
||||||
|
"*/}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
[
|
||||||
|
"{",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
")"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"<",
|
||||||
|
">"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"colorizedBracketPairs": [
|
||||||
|
[
|
||||||
|
"{",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
")"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{
|
||||||
|
"open": "{",
|
||||||
|
"close": "}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "[",
|
||||||
|
"close": "]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "(",
|
||||||
|
"close": ")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "'",
|
||||||
|
"close": "'",
|
||||||
|
"notIn": [
|
||||||
|
"string",
|
||||||
|
"comment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "\"",
|
||||||
|
"close": "\"",
|
||||||
|
"notIn": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"open": "/**",
|
||||||
|
"close": " */",
|
||||||
|
"notIn": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
[
|
||||||
|
"{",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"(",
|
||||||
|
")"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"<",
|
||||||
|
">"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"'",
|
||||||
|
"'"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"\"",
|
||||||
|
"\""
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"wordPattern": {
|
||||||
|
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:'\"\\,\\.\\<\\>\\/\\s]+)"
|
||||||
|
},
|
||||||
|
"onEnterRules": [
|
||||||
|
{
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
|
||||||
|
"flags": "i"
|
||||||
|
},
|
||||||
|
"afterText": {
|
||||||
|
"pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
|
||||||
|
"flags": "i"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indentOutdent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
|
||||||
|
"flags": "i"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// `beforeText` only applies to tokens of a given language. Since we are dealing with jsx-tags,
|
||||||
|
// make sure we apply to the closing `>` of a tag so that mixed language spans
|
||||||
|
// such as `<div onclick={1}>` are handled properly.
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^>$"
|
||||||
|
},
|
||||||
|
"afterText": {
|
||||||
|
"pattern": "/^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
|
||||||
|
"flags": "i"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indentOutdent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "^>$"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "indent"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
4
extensions/javascript/yarn.lock
Normal file
4
extensions/javascript/yarn.lock
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"git": {
|
"git": {
|
||||||
"name": "PowerShell/EditorSyntax",
|
"name": "PowerShell/EditorSyntax",
|
||||||
"repositoryUrl": "https://github.com/PowerShell/EditorSyntax",
|
"repositoryUrl": "https://github.com/PowerShell/EditorSyntax",
|
||||||
"commitHash": "c150c15cca30cafd2159e3f53514f93ccf4c5649"
|
"commitHash": "742f0b5d4b60f5930c0b47fcc1f646860521296e"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
"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."
|
"Once accepted there, we are happy to receive an update request."
|
||||||
],
|
],
|
||||||
"version": "https://github.com/PowerShell/EditorSyntax/commit/c150c15cca30cafd2159e3f53514f93ccf4c5649",
|
"version": "https://github.com/PowerShell/EditorSyntax/commit/742f0b5d4b60f5930c0b47fcc1f646860521296e",
|
||||||
"name": "PowerShell",
|
"name": "PowerShell",
|
||||||
"scopeName": "source.powershell",
|
"scopeName": "source.powershell",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
"name": "support.function.powershell"
|
"name": "support.function.powershell"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "(?<!\\w|-|\\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\\?)(?!\\w)",
|
"match": "(?<!\\w|-|\\.)((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\\?)(?!\\w)",
|
||||||
"name": "keyword.control.powershell"
|
"name": "keyword.control.powershell"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user