Skip to content

Commit 09d1f4e

Browse files
committed
Move grammar to grammars folder
Fixes #3
1 parent 4941d54 commit 09d1f4e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
out
23
node_modules
34
client/server

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ The official VSCode plugin for ReScript.
88

99
## Installation
1010

11-
Download the latest release here: https://github.com/rescript-lang/rescript-vscode/releases
12-
13-
Go to VSCode, Command Palette (cmd-shift-p) -> "Extensions: Install from VSIX", then select the `rescript-vscode.vsix` you just downloaded.
11+
The plugin's on [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=chenglou92.rescript-vscode). In VSCode, `cmd-shift-p` -> "Install Extensions", then find "rescript-vscode".
1412

1513
The plugin activates on `.res` and `.resi` files. If you've already got Reason-Language-Server installed, it's possible that the latter took precedence over this one. Make sure you're using this plugin ("ReScript syntax") rather than Reason-Language-Server ("BuckleScript syntax").
1614

1715
## Features
1816

1917
- Syntax highlighting (`.res`, `.resi`).
2018
- Formatting, with caveats:
21-
- Currently requires the file to be part of a ReScript project, i.e. with a `bsconfig.json`.
22-
- Cannot be a temporary file
19+
- Currently requires the file to be part of a ReScript project, i.e. with a `bsconfig.json`.
20+
- Cannot be a temporary file
2321
- Syntax errors diagnosis (only after formatting).
2422

2523
### Upcoming Features
@@ -59,7 +57,7 @@ This repo happens to also contain a language-server usable by other editors. If
5957

6058
#### Change the Grammar
6159

62-
- Modify `rescript.tmLanguage.json`.
60+
- Modify `grammars/rescript.tmLanguage.json`.
6361

6462
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.
6563

File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
{
6464
"language": "rescript",
6565
"scopeName": "source.rescript",
66-
"path": "./rescript.tmLanguage.json"
66+
"path": "./grammars/rescript.tmLanguage.json"
6767
}
6868
],
6969
"languages": [

0 commit comments

Comments
 (0)