Skip to content

Commit 012d7da

Browse files
committed
1 parent 6075d65 commit 012d7da

5 files changed

Lines changed: 769 additions & 218 deletions

File tree

build/npm/update-grammar.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function getOptions(urlString) {
2222
headers: {
2323
'User-Agent': 'NodeJS'
2424
}
25-
}
25+
};
2626
}
2727

2828
function download(url, redirectCount) {
@@ -100,7 +100,9 @@ exports.update = function (repoId, repoPath, dest, modifyGrammar) {
100100
result.version = 'https://github.com/' + repoId + '/commit/' + info.commitSha;
101101
}
102102
for (let key in grammar) {
103-
result[key] = grammar[key];
103+
if (!result.hasOwnProperty(key)) {
104+
result[key] = grammar[key];
105+
}
104106
}
105107

106108
try {
@@ -116,7 +118,7 @@ exports.update = function (repoId, repoPath, dest, modifyGrammar) {
116118
});
117119

118120
}, console.error);
119-
}
121+
};
120122

121123
if (path.basename(process.argv[1]) === 'update-grammar.js') {
122124
for (var i = 3; i < process.argv.length; i += 2) {

extensions/r/OSSREADME.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
22
[{
3-
"name": "textmate/r.tmbundle",
3+
"name": "Ikuyadeu/vscode-R",
44
"version": "0.0.0",
5-
"license": "TextMate Bundle License",
6-
"repositoryURL": "https://github.com/textmate/r.tmbundle",
7-
"licenseDetail": [
8-
"Copyright (c) textmate-r.tmbundle project authors",
9-
"",
10-
"If not otherwise specified (see below), files in this folder fall under the following license: ",
11-
"",
12-
"Permission to copy, use, modify, sell and distribute this",
13-
"software is granted. This software is provided \"as is\" without",
14-
"express or implied warranty, and with no claim as to its",
15-
"suitability for any purpose."
16-
]
5+
"license": "MIT",
6+
"repositoryURL": "https://github.com/Ikuyadeu/vscode-R"
177
}]

extensions/r/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publisher": "vscode",
55
"engines": { "vscode": "*" },
66
"scripts": {
7-
"update-grammar": "node ../../build/npm/update-grammar.js textmate/r.tmbundle Syntaxes/R.plist ./syntaxes/r.tmLanguage.json"
7+
"update-grammar": "node ../../build/npm/update-grammar.js Ikuyadeu/vscode-R syntax/r.json ./syntaxes/r.tmLanguage.json"
88
},
99
"contributes": {
1010
"languages": [{

0 commit comments

Comments
 (0)