diff options
author | Dario Oddenino | 2022-10-14 16:57:52 +0000 |
---|---|---|
committer | GitHub | 2022-10-14 16:57:52 +0000 |
commit | 2d958d6c50b10318e29f6dacc291d8fcafd66de9 (patch) | |
tree | d7dc59cc2528c8b10ce49f043c2619a63205b4bb | |
parent | 13d81b74787b58c01b56fdac8e3515470b2ed127 (diff) |
Add support for Purescript language (#4242)
-rw-r--r-- | book/src/generated/lang-support.md | 1 | ||||
-rw-r--r-- | languages.toml | 13 | ||||
-rw-r--r-- | runtime/queries/purescript/highlights.scm | 1 | ||||
-rw-r--r-- | runtime/queries/purescript/injections.scm | 1 | ||||
-rw-r--r-- | runtime/queries/purescript/locals.scm | 1 |
5 files changed, 17 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 74e63796..3fe9ef70 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -86,6 +86,7 @@ | prisma | ✓ | | | `prisma-language-server` | | prolog | | | | `swipl` | | protobuf | ✓ | | ✓ | | +| purescript | ✓ | | | `purescript-language-server` | | python | ✓ | ✓ | ✓ | `pylsp` | | r | ✓ | | | `R` | | racket | | | | `racket` | diff --git a/languages.toml b/languages.toml index 24110865..7eb45d8b 100644 --- a/languages.toml +++ b/languages.toml @@ -724,6 +724,19 @@ 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" injection-regex = "zig" diff --git a/runtime/queries/purescript/highlights.scm b/runtime/queries/purescript/highlights.scm new file mode 100644 index 00000000..ef073eb2 --- /dev/null +++ b/runtime/queries/purescript/highlights.scm @@ -0,0 +1 @@ +; inherits: haskell diff --git a/runtime/queries/purescript/injections.scm b/runtime/queries/purescript/injections.scm new file mode 100644 index 00000000..ef073eb2 --- /dev/null +++ b/runtime/queries/purescript/injections.scm @@ -0,0 +1 @@ +; inherits: haskell diff --git a/runtime/queries/purescript/locals.scm b/runtime/queries/purescript/locals.scm new file mode 100644 index 00000000..ef073eb2 --- /dev/null +++ b/runtime/queries/purescript/locals.scm @@ -0,0 +1 @@ +; inherits: haskell |