Restore extensions in core (#114921)

* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
This commit is contained in:
João Moreno
2021-01-25 17:07:56 +01:00
committed by GitHub
parent 5fcd9f7484
commit 3b03189afa
363 changed files with 130709 additions and 766 deletions

View File

@@ -0,0 +1,2 @@
test/**
cgmanifest.json

View File

@@ -0,0 +1,11 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
var updateGrammar = require('../../../build/npm/update-grammar');
updateGrammar.update('jeff-hykin/cpp-textmate-grammar', '/syntaxes/objc.tmLanguage.json', './syntaxes/objective-c.tmLanguage.json', undefined, 'master', 'source/languages/cpp');
updateGrammar.update('jeff-hykin/cpp-textmate-grammar', '/syntaxes/objcpp.tmLanguage.json', './syntaxes/objective-c++.tmLanguage.json', undefined, 'master', 'source/languages/cpp');

View File

@@ -0,0 +1,18 @@
{
"registrations": [
{
"component": {
"type": "git",
"git": {
"name": "jeff-hykin/cpp-textmate-grammar",
"repositoryUrl": "https://github.com/jeff-hykin/cpp-textmate-grammar",
"commitHash": "bc7dedd28eebe52b374744d3fb34d77ff441569e"
}
},
"license": "MIT",
"version": "1.12.11",
"description": "The files syntaxes/objective-c.tmLanguage.json and syntaxes/objective-c++.tmLanguage.json were derived from the language package https://github.com/jeff-hykin/cpp-textmate-grammar."
}
],
"version": 1
}

View File

@@ -0,0 +1,25 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}

View File

@@ -0,0 +1,50 @@
{
"name": "objective-c",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.0.0",
"publisher": "vscode",
"license": "MIT",
"engines": {
"vscode": "*"
},
"scripts": {
"update-grammar": "node ./build/update-grammars.js"
},
"contributes": {
"languages": [
{
"id": "objective-c",
"extensions": [
".m"
],
"aliases": [
"Objective-C"
],
"configuration": "./language-configuration.json"
},
{
"id": "objective-cpp",
"extensions": [
".mm"
],
"aliases": [
"Objective-C++"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "objective-c",
"scopeName": "source.objc",
"path": "./syntaxes/objective-c.tmLanguage.json"
},
{
"language": "objective-cpp",
"scopeName": "source.objcpp",
"path": "./syntaxes/objective-c++.tmLanguage.json"
}
]
}
}

View File

@@ -0,0 +1,4 @@
{
"displayName": "Objective-C Language Basics",
"description": "Provides syntax highlighting and bracket matching in Objective-C files."
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long