Remove Beancount as a built-in language (#7934)

This PR removes Beancount as a built-in language, as it is now available
as an [extension](https://github.com/zed-extensions/beancount).

Release Notes:

- Removed built-in support for Beancount, as it is now provided by an
[extension](https://github.com/zed-extensions/beancount).
This commit is contained in:
Marshall Bowers 2024-02-18 09:58:12 -05:00 committed by GitHub
parent a041e07c99
commit b91d6da6b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 0 additions and 39 deletions

10
Cargo.lock generated
View File

@ -10045,15 +10045,6 @@ dependencies = [
"tree-sitter", "tree-sitter",
] ]
[[package]]
name = "tree-sitter-beancount"
version = "2.2.0"
source = "git+https://github.com/polarmutex/tree-sitter-beancount?rev=da1bf8c6eb0ae7a97588affde7227630bcd678b6#da1bf8c6eb0ae7a97588affde7227630bcd678b6"
dependencies = [
"cc",
"tree-sitter",
]
[[package]] [[package]]
name = "tree-sitter-c" name = "tree-sitter-c"
version = "0.20.6" version = "0.20.6"
@ -11958,7 +11949,6 @@ dependencies = [
"tree-sitter", "tree-sitter",
"tree-sitter-astro", "tree-sitter-astro",
"tree-sitter-bash", "tree-sitter-bash",
"tree-sitter-beancount",
"tree-sitter-c", "tree-sitter-c",
"tree-sitter-c-sharp", "tree-sitter-c-sharp",
"tree-sitter-clojure", "tree-sitter-clojure",

View File

@ -226,7 +226,6 @@ toml = "0.8"
tree-sitter = { version = "0.20", features = ["wasm"] } tree-sitter = { version = "0.20", features = ["wasm"] }
tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" } tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" }
tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" } tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }
tree-sitter-beancount = { git = "https://github.com/polarmutex/tree-sitter-beancount", rev = "da1bf8c6eb0ae7a97588affde7227630bcd678b6" }
tree-sitter-c = "0.20.1" tree-sitter-c = "0.20.1"
tree-sitter-clojure = { git = "https://github.com/prcastro/tree-sitter-clojure", branch = "update-ts" } tree-sitter-clojure = { git = "https://github.com/prcastro/tree-sitter-clojure", branch = "update-ts" }
tree-sitter-c-sharp = { git = "https://github.com/tree-sitter/tree-sitter-c-sharp", rev = "dd5e59721a5f8dae34604060833902b882023aaf" } tree-sitter-c-sharp = { git = "https://github.com/tree-sitter/tree-sitter-c-sharp", rev = "dd5e59721a5f8dae34604060833902b882023aaf" }

View File

@ -111,7 +111,6 @@ tiny_http = "0.8"
toml.workspace = true toml.workspace = true
tree-sitter-astro.workspace = true tree-sitter-astro.workspace = true
tree-sitter-bash.workspace = true tree-sitter-bash.workspace = true
tree-sitter-beancount.workspace = true
tree-sitter-c-sharp.workspace = true tree-sitter-c-sharp.workspace = true
tree-sitter-c.workspace = true tree-sitter-c.workspace = true
tree-sitter-clojure.workspace = true tree-sitter-clojure.workspace = true

View File

@ -68,7 +68,6 @@ pub fn init(
languages.register_native_grammars([ languages.register_native_grammars([
("astro", tree_sitter_astro::language()), ("astro", tree_sitter_astro::language()),
("bash", tree_sitter_bash::language()), ("bash", tree_sitter_bash::language()),
("beancount", tree_sitter_beancount::language()),
("c", tree_sitter_c::language()), ("c", tree_sitter_c::language()),
("c_sharp", tree_sitter_c_sharp::language()), ("c_sharp", tree_sitter_c_sharp::language()),
("clojure", tree_sitter_clojure::language()), ("clojure", tree_sitter_clojure::language()),
@ -140,7 +139,6 @@ pub fn init(
], ],
); );
language("bash", vec![]); language("bash", vec![]);
language("beancount", vec![]);
language("c", vec![Arc::new(c::CLspAdapter) as Arc<dyn LspAdapter>]); language("c", vec![Arc::new(c::CLspAdapter) as Arc<dyn LspAdapter>]);
language("clojure", vec![Arc::new(clojure::ClojureLspAdapter)]); language("clojure", vec![Arc::new(clojure::ClojureLspAdapter)]);
language("cpp", vec![Arc::new(c::CLspAdapter)]); language("cpp", vec![Arc::new(c::CLspAdapter)]);

View File

@ -1,4 +0,0 @@
name = "Beancount"
grammar = "beancount"
path_suffixes = ["beancount"]
brackets = [{ start = "\"", end = "\"", close = false, newline = false }]

View File

@ -1,21 +0,0 @@
(comment) @comment
(headline) @comment
[
(payee)
(narration)
(string)
] @string
(number) @number
(date) @function
(currency) @constant
(account) @identifier
[
(option)
(include)
(open)
(balance)
(pad)
(close)
] @keyword