Extract Scheme and Racket language support into extensions (#10442)
Release Notes: - Extracted Scheme and Racket language support into extensions. --------- Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
co-authored by
Marshall
parent
165d6b9edb
commit
253aa28375
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../LICENSE-APACHE
|
||||
@@ -0,0 +1,11 @@
|
||||
id = "racket"
|
||||
name = "Racket"
|
||||
description = "Racket support."
|
||||
version = "0.0.1"
|
||||
schema_version = 1
|
||||
authors = ["Mikayla Maki <mikayla@zed.dev>"]
|
||||
repository = "https://github.com/zed-industries/zed"
|
||||
|
||||
[grammars.racket]
|
||||
repository = "https://github.com/zed-industries/tree-sitter-racket"
|
||||
commit = "beb29de2b668110e69df0c6d51649c3e2c91d863"
|
||||
@@ -0,0 +1,3 @@
|
||||
("(" @open ")" @close)
|
||||
("[" @open "]" @close)
|
||||
("{" @open "}" @close)
|
||||
@@ -0,0 +1,10 @@
|
||||
name = "Racket"
|
||||
grammar = "racket"
|
||||
path_suffixes = ["rkt"]
|
||||
line_comments = ["; "]
|
||||
autoclose_before = "])"
|
||||
brackets = [
|
||||
{ start = "[", end = "]", close = true, newline = false },
|
||||
{ start = "(", end = ")", close = true, newline = false },
|
||||
{ start = "\"", end = "\"", close = true, newline = false },
|
||||
]
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
(_ "[" "]") @indent
|
||||
(_ "{" "}") @indent
|
||||
(_ "(" ")") @indent
|
||||
@@ -0,0 +1,10 @@
|
||||
(list
|
||||
.
|
||||
(symbol) @start-symbol @context
|
||||
.
|
||||
[
|
||||
(symbol) @name
|
||||
(list . (symbol) @name)
|
||||
]
|
||||
(#match? @start-symbol "^define")
|
||||
) @item
|
||||
Reference in New Issue
Block a user