Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
2
lib/vscode/extensions/r/.vscodeignore
Normal file
2
lib/vscode/extensions/r/.vscodeignore
Normal file
@ -0,0 +1,2 @@
|
||||
test/**
|
||||
cgmanifest.json
|
17
lib/vscode/extensions/r/cgmanifest.json
Normal file
17
lib/vscode/extensions/r/cgmanifest.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"registrations": [
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"name": "Ikuyadeu/vscode-R",
|
||||
"repositoryUrl": "https://github.com/Ikuyadeu/vscode-R",
|
||||
"commitHash": "e03ba9cb9b19412f48c73ea73deb6746d50bbf23"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "1.3.0"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
24
lib/vscode/extensions/r/language-configuration.json
Normal file
24
lib/vscode/extensions/r/language-configuration.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "#"
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||||
{ "open": "'", "close": "'", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
]
|
||||
}
|
25
lib/vscode/extensions/r/package.json
Normal file
25
lib/vscode/extensions/r/package.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "r",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": { "vscode": "*" },
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js Ikuyadeu/vscode-R syntax/r.json ./syntaxes/r.tmLanguage.json"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "r",
|
||||
"extensions": [ ".r", ".rhistory", ".rprofile", ".rt" ],
|
||||
"aliases": [ "R", "r" ],
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "r",
|
||||
"scopeName": "source.r",
|
||||
"path": "./syntaxes/r.tmLanguage.json"
|
||||
}]
|
||||
}
|
||||
}
|
4
lib/vscode/extensions/r/package.nls.json
Normal file
4
lib/vscode/extensions/r/package.nls.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "R Language Basics",
|
||||
"description": "Provides syntax highlighting and bracket matching in R files."
|
||||
}
|
540
lib/vscode/extensions/r/syntaxes/r.tmLanguage.json
Normal file
540
lib/vscode/extensions/r/syntaxes/r.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
24
lib/vscode/extensions/r/test/colorize-fixtures/test.r
Normal file
24
lib/vscode/extensions/r/test/colorize-fixtures/test.r
Normal file
@ -0,0 +1,24 @@
|
||||
# © Microsoft. All rights reserved.
|
||||
|
||||
#' Add together two numbers.
|
||||
#'
|
||||
#' @param x A number.
|
||||
#' @param y A number.
|
||||
#' @return The sum of \code{x} and \code{y}.
|
||||
#' @examples
|
||||
#' add(1, 1)
|
||||
#' add(10, 1)
|
||||
add <- function(x, y) {
|
||||
x + y
|
||||
}
|
||||
|
||||
add(1, -2, 2.0)
|
||||
add(1.0e10, 2.0e10)
|
||||
|
||||
paste("one", NULL)
|
||||
paste(NA, 'two')
|
||||
|
||||
paste("multi-
|
||||
line",
|
||||
'multi-
|
||||
line')
|
1047
lib/vscode/extensions/r/test/colorize-results/test_r.json
Normal file
1047
lib/vscode/extensions/r/test/colorize-results/test_r.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user