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
@@ -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