Skip to content

Commit cbcfeca

Browse files
committed
New name
1 parent 30a9d19 commit cbcfeca

File tree

5 files changed

+80
-40
lines changed

5 files changed

+80
-40
lines changed

bucklescript.configuration.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

client/src/extension.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ export function activate(context: ExtensionContext) {
8888
let clientOptions: LanguageClientOptions = {
8989
// Register the server for plain text documents
9090
documentSelector: [
91-
{ scheme: 'file', language: 'plaintext' },
92-
{ scheme: 'file', language: 'bucklescript' },
91+
{ scheme: 'file', language: 'rescript' },
9392
],
9493
synchronize: {
9594
// Notify the server about file changes to '.clientrc files contained in the workspace

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"vscode": "^1.43.0"
1818
},
1919
"activationEvents": [
20-
"onLanguage:plaintext",
21-
"onLanguage:bucklescript"
20+
"onLanguage:rescript"
2221
],
2322
"main": "./client/out/extension",
2423
"contributes": {
@@ -61,22 +60,22 @@
6160
},
6261
"grammars": [
6362
{
64-
"language": "bucklescript",
65-
"scopeName": "source.bucklescript",
66-
"path": "./bucklescript.json"
63+
"language": "rescript",
64+
"scopeName": "source.rescript",
65+
"path": "./rescript.json"
6766
}
6867
],
6968
"languages": [
7069
{
71-
"id": "bucklescript",
70+
"id": "rescript",
7271
"aliases": [
73-
"BuckleScript"
72+
"ReScript"
7473
],
7574
"extensions": [
7675
".res",
7776
".resi"
7877
],
79-
"configuration": "./bucklescript.configuration.json"
78+
"configuration": "./rescript.configuration.json"
8079
}
8180
]
8281
},

rescript.configuration.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [
5+
"/*",
6+
"*/"
7+
]
8+
},
9+
"brackets": [
10+
[
11+
"{",
12+
"}"
13+
],
14+
[
15+
"[",
16+
"]"
17+
],
18+
[
19+
"(",
20+
")"
21+
]
22+
],
23+
"autoClosingPairs": [
24+
[
25+
"{",
26+
"}"
27+
],
28+
[
29+
"[",
30+
"]"
31+
],
32+
[
33+
"(",
34+
")"
35+
],
36+
[
37+
"\"",
38+
"\""
39+
],
40+
[
41+
"`",
42+
"`"
43+
]
44+
],
45+
"surroundingPairs": [
46+
[
47+
"{",
48+
"}"
49+
],
50+
[
51+
"[",
52+
"]"
53+
],
54+
[
55+
"(",
56+
")"
57+
],
58+
[
59+
"\"",
60+
"\""
61+
],
62+
[
63+
"`",
64+
"`"
65+
]
66+
],
67+
"folding": {
68+
"offSide": true
69+
}
70+
}

bucklescript.json renamed to rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3-
"name": "BuckleScript",
4-
"scopeName": "source.bucklescript",
3+
"name": "ReScript",
4+
"scopeName": "source.rescript",
55
"repository": {
66
"RE_IDENT": {
77
"match": "[a-z_][0-9a-zA-Z_]*"

0 commit comments

Comments
 (0)