Skip to content

Commit

Permalink
Fix file-types declaration for racket
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 committed Nov 28, 2022
1 parent 583c2a5 commit 0c4f8a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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 0c4f8a5

Please sign in to comment.