diff --git a/build.rcl b/build.rcl index e50fbee..242ea1a 100644 --- a/build.rcl +++ b/build.rcl @@ -22,6 +22,9 @@ let opts_toml = { "grammar/tree-sitter-rcl/Cargo.toml": opts_toml | { contents = import "//grammar/tree-sitter-rcl/Cargo.rcl" }, + "grammar/zed/extension.toml": + opts_toml + | { contents = import "//grammar/zed/extension.rcl" }, "pyrcl/Cargo.toml": opts_toml | { contents = import "//pyrcl/Cargo.rcl" }, "wasm/Cargo.toml": opts_toml | { contents = import "//wasm/Cargo.rcl" }, } diff --git a/grammar/zed/extension.rcl b/grammar/zed/extension.rcl new file mode 100644 index 0000000..946f94c --- /dev/null +++ b/grammar/zed/extension.rcl @@ -0,0 +1,18 @@ +let root = import "//Cargo.rcl"; + +{ + id = "rcl", + name = "RCL", + description = "Support for the RCL configuration language.", + version = root.package.version, + schema_version = 1, + authors = root.package.authors, + repository = "https://github.com/rcl-lang/zed-rcl", + + grammars = { + rcl = { + repository = "https://github.com/rcl-lang/tree-sitter-rcl", + commit = "c7cd31054e54411165acb968091e3e44172cb65c", + } + } +} diff --git a/grammar/zed/extension.toml b/grammar/zed/extension.toml index 6bae042..3269ead 100644 --- a/grammar/zed/extension.toml +++ b/grammar/zed/extension.toml @@ -1,11 +1,12 @@ +# This file is generated, see build.rcl in the repository root. + +authors = ["Ruud van Asseldonk "] +description = "Support for the RCL configuration language." id = "rcl" name = "RCL" -description = "Support for the RCL configuration language." -version = "0.6.0" -schema_version = 1 -authors = ["Ruud van Asseldonk "] repository = "https://github.com/rcl-lang/zed-rcl" +schema_version = 1 +version = "0.6.0" -[grammars.rcl] -repository = "https://github.com/rcl-lang/tree-sitter-rcl" -commit = "c7cd31054e54411165acb968091e3e44172cb65c" +[grammars] +rcl = { commit = "c7cd31054e54411165acb968091e3e44172cb65c", repository = "https://github.com/rcl-lang/tree-sitter-rcl" } diff --git a/tools/update_repos.py b/tools/update_repos.py index ae390dc..7d6545d 100755 --- a/tools/update_repos.py +++ b/tools/update_repos.py @@ -51,14 +51,14 @@ from typing import List def ignores_tree_sitter_rcl(dirname: str, _entries: List[str]) -> List[str]: if dirname == "grammar/tree-sitter-rcl": - return [".gitignore"] + return [".gitignore", "Cargo.rcl"] else: return [] def ignores_zed(dirname: str, _entries: List[str]) -> List[str]: if dirname == "grammar/zed": - return [".gitignore", "grammars"] + return [".gitignore", "extension.rcl", "grammars"] else: return []