Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Purescript language #4242

Merged
merged 2 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
| prisma | ✓ | | | `prisma-language-server` |
| prolog | | | | `swipl` |
| protobuf | ✓ | | ✓ | |
| purescript | ✓ | | | `purescript-language-server` |
| python | ✓ | ✓ | ✓ | `pylsp` |
| r | ✓ | | | `R` |
| racket | | | | `racket` |
Expand Down
13 changes: 13 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,19 @@ indent = { tab-width = 2, unit = " " }
name = "haskell"
source = { git = "https://github.com/tree-sitter/tree-sitter-haskell", rev = "b6ec26f181dd059eedd506fa5fbeae1b8e5556c8" }

[[language]]
name = "purescript"
scope = "source.purescript"
injection-regex = "purescript"
file-types = ["purs"]
roots = ["spago.dhall", "bower.json"]
comment-token = "--"
language-server = { command = "purescript-language-server", args = ["--stdio"] }
indent = { tab-width = 2, unit = " " }
auto-format = true
formatter = { command = "purs-tidy", args = ["format"] }
grammar = "haskell"

[[language]]
name = "zig"
scope = "source.zig"
Expand Down
1 change: 1 addition & 0 deletions runtime/queries/purescript/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: haskell
the-mikedavis marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions runtime/queries/purescript/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: haskell
1 change: 1 addition & 0 deletions runtime/queries/purescript/locals.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: haskell