From f6824e3eaa562d580e192dfae96eb3e1c1350ca0 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Sat, 1 Feb 2025 11:50:20 -0500 Subject: [PATCH] Move scheme extension to zed-extensions/scheme (#24078) New home: https://github.com/zed-extensions/scheme - See also: https://github.com/zed-industries/extensions/pull/1981 --- extensions/scheme/LICENSE-APACHE | 1 - extensions/scheme/extension.toml | 11 -------- .../scheme/languages/scheme/brackets.scm | 3 -- .../scheme/languages/scheme/config.toml | 10 ------- .../scheme/languages/scheme/highlights.scm | 28 ------------------- .../scheme/languages/scheme/indents.scm | 3 -- .../scheme/languages/scheme/outline.scm | 10 ------- .../scheme/languages/scheme/overrides.scm | 6 ---- 8 files changed, 72 deletions(-) delete mode 120000 extensions/scheme/LICENSE-APACHE delete mode 100644 extensions/scheme/extension.toml delete mode 100644 extensions/scheme/languages/scheme/brackets.scm delete mode 100644 extensions/scheme/languages/scheme/config.toml delete mode 100644 extensions/scheme/languages/scheme/highlights.scm delete mode 100644 extensions/scheme/languages/scheme/indents.scm delete mode 100644 extensions/scheme/languages/scheme/outline.scm delete mode 100644 extensions/scheme/languages/scheme/overrides.scm diff --git a/extensions/scheme/LICENSE-APACHE b/extensions/scheme/LICENSE-APACHE deleted file mode 120000 index 1cd601d0a3..0000000000 --- a/extensions/scheme/LICENSE-APACHE +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-APACHE \ No newline at end of file diff --git a/extensions/scheme/extension.toml b/extensions/scheme/extension.toml deleted file mode 100644 index d991c803c4..0000000000 --- a/extensions/scheme/extension.toml +++ /dev/null @@ -1,11 +0,0 @@ -id = "scheme" -name = "Scheme" -description = "Scheme support." -version = "0.0.2" -schema_version = 1 -authors = ["Mikayla Maki "] -repository = "https://github.com/zed-industries/zed" - -[grammars.scheme] -repository = "https://github.com/6cdh/tree-sitter-scheme" -commit = "af0fd1fa452cb2562dc7b5c8a8c55551c39273b9" diff --git a/extensions/scheme/languages/scheme/brackets.scm b/extensions/scheme/languages/scheme/brackets.scm deleted file mode 100644 index 191fd9c084..0000000000 --- a/extensions/scheme/languages/scheme/brackets.scm +++ /dev/null @@ -1,3 +0,0 @@ -("(" @open ")" @close) -("[" @open "]" @close) -("{" @open "}" @close) diff --git a/extensions/scheme/languages/scheme/config.toml b/extensions/scheme/languages/scheme/config.toml deleted file mode 100644 index abe6d043e9..0000000000 --- a/extensions/scheme/languages/scheme/config.toml +++ /dev/null @@ -1,10 +0,0 @@ -name = "Scheme" -grammar = "scheme" -path_suffixes = ["scm", "ss"] -line_comments = ["; "] -autoclose_before = "])" -brackets = [ - { start = "[", end = "]", close = true, newline = false }, - { start = "(", end = ")", close = true, newline = false }, - { start = "\"", end = "\"", close = true, newline = false, not_in = ["comment", "string"] }, -] diff --git a/extensions/scheme/languages/scheme/highlights.scm b/extensions/scheme/languages/scheme/highlights.scm deleted file mode 100644 index 76a4ba7a52..0000000000 --- a/extensions/scheme/languages/scheme/highlights.scm +++ /dev/null @@ -1,28 +0,0 @@ -["(" ")" "[" "]" "{" "}"] @punctuation.bracket - -(number) @number -(character) @constant.builtin -(boolean) @constant.builtin - -(symbol) @variable -(string) @string - -(escape_sequence) @string.escape - -[(comment) - (block_comment) - (directive)] @comment - -((symbol) @operator - (#match? @operator "^(\\+|-|\\*|/|=|>|<|>=|<=)$")) - -(list - . - (symbol) @function) - -(list - . - (symbol) @keyword - (#match? @keyword - "^(define-syntax|let\\*|lambda|λ|case|=>|quote-splicing|unquote-splicing|set!|let|letrec|letrec-syntax|let-values|let\\*-values|do|else|define|cond|syntax-rules|unquote|begin|quote|let-syntax|and|if|quasiquote|letrec|delay|or|when|unless|identifier-syntax|assert|library|export|import|rename|only|except|prefix)$" - )) diff --git a/extensions/scheme/languages/scheme/indents.scm b/extensions/scheme/languages/scheme/indents.scm deleted file mode 100644 index 9a1cbad161..0000000000 --- a/extensions/scheme/languages/scheme/indents.scm +++ /dev/null @@ -1,3 +0,0 @@ -(_ "[" "]") @indent -(_ "{" "}") @indent -(_ "(" ")") @indent diff --git a/extensions/scheme/languages/scheme/outline.scm b/extensions/scheme/languages/scheme/outline.scm deleted file mode 100644 index 6001548303..0000000000 --- a/extensions/scheme/languages/scheme/outline.scm +++ /dev/null @@ -1,10 +0,0 @@ -(list - . - (symbol) @start-symbol @context - . - [ - (symbol) @name - (list . (symbol) @name) - ] - (#match? @start-symbol "^define") -) @item diff --git a/extensions/scheme/languages/scheme/overrides.scm b/extensions/scheme/languages/scheme/overrides.scm deleted file mode 100644 index 5fd3083adc..0000000000 --- a/extensions/scheme/languages/scheme/overrides.scm +++ /dev/null @@ -1,6 +0,0 @@ -[ - (comment) - (block_comment) - (directive) -] @comment.inclusive -(string) @string