Skip to content

Commit

Permalink
Fix file-types declaration for racket (#4915)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the-mikedavis authored Nov 30, 2022
1 parent 664d08e commit 67415e0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
| python |||| `pylsp` |
| qml || || `qmlls` |
| r || | | `R` |
| racket | | | | `racket` |
| racket | | | | `racket` |
| regex || | | |
| rescript ||| | `rescript-language-server` |
| rmarkdown || || `R` |
Expand Down
3 changes: 2 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ file-types = ["rkt"]
shebangs = ["racket"]
comment-token = ";"
language-server = { command = "racket", args = ["-l", "racket-langserver"] }
grammar = "scheme"

[[language]]
name = "comment"
Expand Down Expand Up @@ -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 = " " }
Expand Down
1 change: 1 addition & 0 deletions runtime/queries/racket/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: scheme
1 change: 1 addition & 0 deletions runtime/queries/racket/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: scheme

0 comments on commit 67415e0

Please # to comment.