Skip to content

Commit b1daa51

Browse files
committed
It's working! The syntax highlighting only, not yet the LSP
1 parent 7ff1cce commit b1daa51

9 files changed

Lines changed: 570 additions & 82 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
.DS_Store
2+
target
3+
*.wasm
4+
grammars/rescript

Cargo.lock

Lines changed: 322 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55
publish = false
66
license = "Apache-2.0"
77

8-
[lints]
9-
workspace = true
8+
# [lints]
9+
# workspace = true
1010

1111
[lib]
1212
path = "src/rescript.rs"

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build:
2+
mkdir -p target/rescript
3+
/Users/karolis/projects/zed/target/release/zed-extension --source-dir . --output-dir target/ --scratch-dir target/
4+
tar -xzf target/archive.tar.gz -C target/rescript
5+
cp -Rf target/rescript ~/Library/Application\ Support/Zed/extensions/installed/
6+
tree ~/Library/Application\ Support/Zed/extensions/installed/rescript

extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ language = "ReScript"
1212

1313
[grammars.rescript]
1414
repository = "https://github.com/rescript-lang/tree-sitter-rescript"
15-
commit = "17b0805c9eef8e9fc451a33cddc7156dcf20a409"
15+
commit = "49fc8378c3566f7a7dcb1b4a8e50ab3fd7cecc52"

languages/rescript/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name = "ReScript"
22
grammar = "rescript"
33
path_suffixes = ["rescript"]
4-
line_comments = ["-- "]
5-
block_comment = ["{- ", " -}"]
4+
line_comments = ["// "]
5+
block_comment = ["/* ", " */"]
66
brackets = [
77
{ start = "{", end = "}", close = true, newline = true },
88
{ start = "[", end = "]", close = true, newline = true },

0 commit comments

Comments
 (0)