Skip to content

Commit ab7735c

Browse files
dariooddeninopathwave
authored andcommitted
Add support for Purescript language (helix-editor#4242)
1 parent 174ec04 commit ab7735c

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

book/src/generated/lang-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
| prisma || | | `prisma-language-server` |
8787
| prolog | | | | `swipl` |
8888
| protobuf || || |
89+
| purescript || | | `purescript-language-server` |
8990
| python |||| `pylsp` |
9091
| r || | | `R` |
9192
| racket | | | | `racket` |

languages.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,19 @@ indent = { tab-width = 2, unit = " " }
723723
name = "haskell"
724724
source = { git = "https://github.com/tree-sitter/tree-sitter-haskell", rev = "b6ec26f181dd059eedd506fa5fbeae1b8e5556c8" }
725725

726+
[[language]]
727+
name = "purescript"
728+
scope = "source.purescript"
729+
injection-regex = "purescript"
730+
file-types = ["purs"]
731+
roots = ["spago.dhall", "bower.json"]
732+
comment-token = "--"
733+
language-server = { command = "purescript-language-server", args = ["--stdio"] }
734+
indent = { tab-width = 2, unit = " " }
735+
auto-format = true
736+
formatter = { command = "purs-tidy", args = ["format"] }
737+
grammar = "haskell"
738+
726739
[[language]]
727740
name = "zig"
728741
scope = "source.zig"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; inherits: haskell
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; inherits: haskell

runtime/queries/purescript/locals.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; inherits: haskell

0 commit comments

Comments
 (0)