mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 05:37:45 +00:00
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:
2
extensions/objective-c/.vscodeignore
Normal file
2
extensions/objective-c/.vscodeignore
Normal file
@@ -0,0 +1,2 @@
|
||||
test/**
|
||||
cgmanifest.json
|
||||
11
extensions/objective-c/build/update-grammars.js
Normal file
11
extensions/objective-c/build/update-grammars.js
Normal 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');
|
||||
|
||||
18
extensions/objective-c/cgmanifest.json
Normal file
18
extensions/objective-c/cgmanifest.json
Normal 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
|
||||
}
|
||||
25
extensions/objective-c/language-configuration.json
Normal file
25
extensions/objective-c/language-configuration.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//",
|
||||
"blockComment": [ "/*", "*/" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||||
{ "open": "'", "close": "'", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
]
|
||||
}
|
||||
50
extensions/objective-c/package.json
Normal file
50
extensions/objective-c/package.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
4
extensions/objective-c/package.nls.json
Normal file
4
extensions/objective-c/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "Objective-C Language Basics",
|
||||
"description": "Provides syntax highlighting and bracket matching in Objective-C files."
|
||||
}
|
||||
7098
extensions/objective-c/syntaxes/objective-c++.tmLanguage.json
Normal file
7098
extensions/objective-c/syntaxes/objective-c++.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
3606
extensions/objective-c/syntaxes/objective-c.tmLanguage.json
Normal file
3606
extensions/objective-c/syntaxes/objective-c.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user