Skip to content

Commit c6d4bad

Browse files
committed
Move grammar to grammars folder
1 parent 8ff4871 commit c6d4bad

File tree

3 files changed

+101
-101
lines changed

3 files changed

+101
-101
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This repo happens to also contain a language-server usable by other editors. If
5757

5858
#### Change the Grammar
5959

60-
- Modify `rescript.tmLanguage.json`.
60+
- Modify `grammars/rescript.tmLanguage.json`.
6161

6262
Currently the best way to test it is to link your extension to `~/.vscode/extensions` then reload a separate test VSCode `.res` tab after each grammar change.
6363

File renamed without changes.

package.json

Lines changed: 100 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,102 @@
11
{
2-
"name": "rescript-vscode",
3-
"description": "The official VSCode plugin for ReScript.",
4-
"author": "chenglou",
5-
"license": "MIT",
6-
"version": "0.0.3",
7-
"repository": {
8-
"type": "git",
9-
"url": "https://github.com/rescript-lang/rescript-vscode"
10-
},
11-
"publisher": "chenglou",
12-
"categories": [],
13-
"keywords": [
14-
"rescript",
15-
"language-server"
16-
],
17-
"engines": {
18-
"vscode": "^1.43.0"
19-
},
20-
"activationEvents": [
21-
"onLanguage:rescript"
22-
],
23-
"main": "./client/out/extension",
24-
"contributes": {
25-
"taskDefinitions_unused": [
26-
{
27-
"type": "bsb",
28-
"required": [
29-
"task"
30-
],
31-
"properties": {
32-
"task": {
33-
"type": "string",
34-
"description": "The bsb task"
35-
}
36-
}
37-
}
38-
],
39-
"configuration": {
40-
"type": "object",
41-
"title": "Example configuration",
42-
"properties": {
43-
"languageServerExample.maxNumberOfProblems": {
44-
"scope": "resource",
45-
"type": "number",
46-
"default": 100,
47-
"description": "Controls the maximum number of problems produced by the server."
48-
},
49-
"languageServerExample.trace.server": {
50-
"scope": "window",
51-
"type": "string",
52-
"enum": [
53-
"off",
54-
"messages",
55-
"verbose"
56-
],
57-
"default": "off",
58-
"description": "Traces the communication between VS Code and the language server."
59-
}
60-
}
61-
},
62-
"grammars": [
63-
{
64-
"language": "rescript",
65-
"scopeName": "source.rescript",
66-
"path": "./rescript.tmLanguage.json"
67-
}
68-
],
69-
"languages": [
70-
{
71-
"id": "rescript",
72-
"aliases": [
73-
"ReScript"
74-
],
75-
"extensions": [
76-
".res",
77-
".resi"
78-
],
79-
"configuration": "./rescript.configuration.json"
80-
}
81-
]
82-
},
83-
"scripts": {
84-
"vscode:prepublish": "npm run compile",
85-
"compile": "tsc -b",
86-
"watch": "tsc -b -w",
87-
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
88-
"test": "sh ./scripts/e2e.sh"
89-
},
90-
"devDependencies": {
91-
"@types/mocha": "^7.0.2",
92-
"mocha": "^8.0.1",
93-
"@types/node": "^12.12.0",
94-
"eslint": "^6.4.0",
95-
"@typescript-eslint/parser": "^2.3.0",
96-
"typescript": "^3.9.4"
97-
},
98-
"dependencies": {
99-
"@types/tmp": "^0.2.0",
100-
"tmp": "^0.2.1"
101-
}
2+
"name": "rescript-vscode",
3+
"description": "The official VSCode plugin for ReScript.",
4+
"author": "chenglou",
5+
"license": "MIT",
6+
"version": "0.0.3",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/rescript-lang/rescript-vscode"
10+
},
11+
"publisher": "chenglou",
12+
"categories": [],
13+
"keywords": [
14+
"rescript",
15+
"language-server"
16+
],
17+
"engines": {
18+
"vscode": "^1.43.0"
19+
},
20+
"activationEvents": [
21+
"onLanguage:rescript"
22+
],
23+
"main": "./client/out/extension",
24+
"contributes": {
25+
"taskDefinitions_unused": [
26+
{
27+
"type": "bsb",
28+
"required": [
29+
"task"
30+
],
31+
"properties": {
32+
"task": {
33+
"type": "string",
34+
"description": "The bsb task"
35+
}
36+
}
37+
}
38+
],
39+
"configuration": {
40+
"type": "object",
41+
"title": "Example configuration",
42+
"properties": {
43+
"languageServerExample.maxNumberOfProblems": {
44+
"scope": "resource",
45+
"type": "number",
46+
"default": 100,
47+
"description": "Controls the maximum number of problems produced by the server."
48+
},
49+
"languageServerExample.trace.server": {
50+
"scope": "window",
51+
"type": "string",
52+
"enum": [
53+
"off",
54+
"messages",
55+
"verbose"
56+
],
57+
"default": "off",
58+
"description": "Traces the communication between VS Code and the language server."
59+
}
60+
}
61+
},
62+
"grammars": [
63+
{
64+
"language": "rescript",
65+
"scopeName": "source.rescript",
66+
"path": "./grammars/rescript.tmLanguage.json"
67+
}
68+
],
69+
"languages": [
70+
{
71+
"id": "rescript",
72+
"aliases": [
73+
"ReScript"
74+
],
75+
"extensions": [
76+
".res",
77+
".resi"
78+
],
79+
"configuration": "./rescript.configuration.json"
80+
}
81+
]
82+
},
83+
"scripts": {
84+
"vscode:prepublish": "npm run compile",
85+
"compile": "tsc -b",
86+
"watch": "tsc -b -w",
87+
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
88+
"test": "sh ./scripts/e2e.sh"
89+
},
90+
"devDependencies": {
91+
"@types/mocha": "^7.0.2",
92+
"mocha": "^8.0.1",
93+
"@types/node": "^12.12.0",
94+
"eslint": "^6.4.0",
95+
"@typescript-eslint/parser": "^2.3.0",
96+
"typescript": "^3.9.4"
97+
},
98+
"dependencies": {
99+
"@types/tmp": "^0.2.0",
100+
"tmp": "^0.2.1"
101+
}
102102
}

0 commit comments

Comments
 (0)