Skip to content

Commit

Permalink
Add support for Purescript language (helix-editor#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariooddenino authored and pathwave committed Nov 4, 2022
1 parent c6ad236 commit db3ebd8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
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
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

0 comments on commit db3ebd8

Please sign in to comment.