Fix file-types declaration for racket (#4915)

Both the racket and scheme entries used the rkt file-extension. This
commit removes that entry for scheme and so that the racket entry takes
precedence. We explicitly point to the scheme grammar now and setup
queries that inherit from scheme. This should enable using the racket
language server configuration.
This commit is contained in:
Michael Davis 2022-11-30 08:27:08 -06:00 committed by GitHub
parent 664d08e70d
commit 67415e096e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -95,7 +95,7 @@
| python | ✓ | ✓ | ✓ | `pylsp` |
| qml | ✓ | | ✓ | `qmlls` |
| r | ✓ | | | `R` |
| racket | | | | `racket` |
| racket | | | | `racket` |
| regex | ✓ | | | |
| rescript | ✓ | ✓ | | `rescript-language-server` |
| rmarkdown | ✓ | | ✓ | `R` |

View File

@ -880,6 +880,7 @@ file-types = ["rkt"]
shebangs = ["racket"]
comment-token = ";"
language-server = { command = "racket", args = ["-l", "racket-langserver"] }
grammar = "scheme"
[[language]]
name = "comment"
@ -1526,7 +1527,7 @@ source = { git = "https://github.com/metio/tree-sitter-ssh-client-config", rev =
name = "scheme"
scope = "source.scheme"
injection-regex = "scheme"
file-types = ["ss", "rkt"] # "scm",
file-types = ["ss"] # "scm",
roots = []
comment-token = ";"
indent = { tab-width = 2, unit = " " }

View File

@ -0,0 +1 @@
; inherits: scheme

View File

@ -0,0 +1 @@
; inherits: scheme