Skip to content

Commit 0fa326c

Browse files
committed
Include C# textmate grammar. Fixes microsoft#19469
1 parent 2cf9b32 commit 0fa326c

7 files changed

Lines changed: 5945 additions & 345 deletions

File tree

extensions/csharp/OSSREADME.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
2+
[
3+
{
4+
"name": "dotnet/csharp-tmLanguage",
5+
"version": "0.1.0",
6+
"license": "MIT",
7+
"repositoryURL": "https://github.com/dotnet/csharp-tmLanguage",
8+
"description": "The file syntaxes/csharp.tmLanguage.json was derived from https://github.com/dotnet/csharp-tmLanguage"
9+
}
10+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
["{", "}"],
13+
["[", "]"],
14+
["(", ")"],
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
17+
{ "open": "/*", "close": " */", "notIn": ["string"] }
18+
],
19+
"surroundingPairs": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"],
23+
["<", ">"],
24+
["'", "'"],
25+
["\"", "\""]
26+
]
27+
}

extensions/csharp/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "csharp",
3+
"version": "0.1.0",
4+
"publisher": "vscode",
5+
"engines": {
6+
"vscode": "0.10.x"
7+
},
8+
"scripts": {
9+
"update-grammar": "node ../../build/npm/update-grammar.js dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
10+
},
11+
12+
"contributes": {
13+
"languages": [
14+
{
15+
"id": "csharp",
16+
"extensions": [
17+
".cs",
18+
".csx"
19+
],
20+
"aliases": [
21+
"C#",
22+
"csharp"
23+
],
24+
"configuration": "./language-configuration.json"
25+
}
26+
],
27+
"grammars": [
28+
{
29+
"language": "csharp",
30+
"scopeName": "source.cs",
31+
"path": "./syntaxes/csharp.tmLanguage.json"
32+
}
33+
]
34+
}
35+
}

0 commit comments

Comments
 (0)