mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 03:17:00 +00:00
Include C# textmate grammar. Fixes #19469
This commit is contained in:
parent
2cf9b325cb
commit
0fa326c6a1
10
extensions/csharp/OSSREADME.json
Normal file
10
extensions/csharp/OSSREADME.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
|
||||
[
|
||||
{
|
||||
"name": "dotnet/csharp-tmLanguage",
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"repositoryURL": "https://github.com/dotnet/csharp-tmLanguage",
|
||||
"description": "The file syntaxes/csharp.tmLanguage.json was derived from https://github.com/dotnet/csharp-tmLanguage"
|
||||
}
|
||||
]
|
27
extensions/csharp/language-configuration.json
Normal file
27
extensions/csharp/language-configuration.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"comments": {
|
||||
"lineComment": "//",
|
||||
"blockComment": ["/*", "*/"]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "/*", "close": " */", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["<", ">"],
|
||||
["'", "'"],
|
||||
["\"", "\""]
|
||||
]
|
||||
}
|
35
extensions/csharp/package.json
Normal file
35
extensions/csharp/package.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "csharp",
|
||||
"version": "0.1.0",
|
||||
"publisher": "vscode",
|
||||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
|
||||
},
|
||||
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "csharp",
|
||||
"extensions": [
|
||||
".cs",
|
||||
".csx"
|
||||
],
|
||||
"aliases": [
|
||||
"C#",
|
||||
"csharp"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "csharp",
|
||||
"scopeName": "source.cs",
|
||||
"path": "./syntaxes/csharp.tmLanguage.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
4167
extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
4167
extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load diff
17
extensions/csharp/test/colorize-fixtures/test.cs
Normal file
17
extensions/csharp/test/colorize-fixtures/test.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
namespace SampleNamespace
|
||||
{
|
||||
class TestClass
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int[] radii = { 15, 32, 108, 74, 9 };
|
||||
const double pi = 3.14159;
|
||||
foreach (int radius in radii) {
|
||||
double circumference = pi * (2 * radius);
|
||||
// Display the number of command line arguments:
|
||||
System.Console.WriteLine("Circumference = {0:N2}", circumference);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1377
extensions/csharp/test/colorize-results/test_cs.json
Normal file
1377
extensions/csharp/test/colorize-results/test_cs.json
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue