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,17 @@
{
"registrations": [
{
"component": {
"type": "git",
"git": {
"name": "atom/language-java",
"repositoryUrl": "https://github.com/atom/language-java",
"commitHash": "2bd3e55a72b08e171f811a2445343e2df9d89b71"
}
},
"license": "MIT",
"version": "0.32.0"
}
],
"version": 1
}

View File

@@ -0,0 +1,33 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "/**", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["<", ">"]
],
"folding": {
"markers": {
"start": "^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))",
"end": "^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))"
}
}
}

View File

@@ -0,0 +1,29 @@
{
"name": "java",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.0.0",
"publisher": "vscode",
"license": "MIT",
"engines": { "vscode": "*" },
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-java grammars/java.cson ./syntaxes/java.tmLanguage.json"
},
"contributes": {
"languages": [{
"id": "java",
"extensions": [ ".java", ".jav" ],
"aliases": [ "Java", "java" ],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "java",
"scopeName": "source.java",
"path": "./syntaxes/java.tmLanguage.json"
}],
"snippets": [{
"language": "java",
"path": "./snippets/java.code-snippets"
}]
}
}

View File

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

View File

@@ -0,0 +1,16 @@
{
"Region Start": {
"prefix": "#region",
"body": [
"//#region"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"//#endregion"
],
"description": "Folding Region End"
}
}

File diff suppressed because it is too large Load Diff