From 17ba8ceecbbe1cd7484e0b51de88c79ee45ba3ea Mon Sep 17 00:00:00 2001 From: Pierce Bartine Date: Sat, 8 Oct 2022 11:23:39 -0700 Subject: [PATCH 1/2] tree-sitter-grammars: Ignore ruby-tree-sitter.old --- pkgs/development/tools/parsing/tree-sitter/update.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/update.nix b/pkgs/development/tools/parsing/tree-sitter/update.nix index 81c9debe84b5..49863f189dad 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -53,7 +53,7 @@ let # this is the haskell language bindings, tree-sitter-haskell is the grammar "haskell-tree-sitter" # this is the ruby language bindings, tree-sitter-ruby is the grammar - "ruby-tree-sitter" + "ruby-tree-sitter.old" # this is the (unmaintained) rust language bindings, tree-sitter-rust is the grammar "rust-tree-sitter" # this is the nodejs language bindings, tree-sitter-javascript is the grammar @@ -347,6 +347,10 @@ let orga = "indoorvivants"; repo = "tree-sitter-smithy"; }; + "tree-sitter-jsonnet" = { + orga = "sourcegraph"; + repo = "tree-sitter-jsonnet"; + }; }; allGrammars = From 932a99b4b28688c008bee2e48d82b618879b03ef Mon Sep 17 00:00:00 2001 From: Pierce Bartine Date: Sat, 8 Oct 2022 11:24:06 -0700 Subject: [PATCH 2/2] tree-sitter-grammars: Add jsonnet --- .../tools/parsing/tree-sitter/grammars/default.nix | 1 + .../tree-sitter/grammars/tree-sitter-jsonnet.json | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsonnet.json diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix index 9786412e9192..5b3862082d8f 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix @@ -46,6 +46,7 @@ tree-sitter-jsdoc = lib.importJSON ./tree-sitter-jsdoc.json; tree-sitter-json = lib.importJSON ./tree-sitter-json.json; tree-sitter-json5 = lib.importJSON ./tree-sitter-json5.json; + tree-sitter-jsonnet = lib.importJSON ./tree-sitter-jsonnet.json; tree-sitter-julia = lib.importJSON ./tree-sitter-julia.json; tree-sitter-kotlin = lib.importJSON ./tree-sitter-kotlin.json; tree-sitter-latex = lib.importJSON ./tree-sitter-latex.json; diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsonnet.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsonnet.json new file mode 100644 index 000000000000..11ef27c05e92 --- /dev/null +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsonnet.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/sourcegraph/tree-sitter-jsonnet", + "rev": "0475a5017ad7dc84845d1d33187f2321abcb261d", + "date": "2022-05-27T01:23:53-04:00", + "path": "/nix/store/n4yijz5b0bky4zd8kvh632a5zlxc3rfv-tree-sitter-jsonnet", + "sha256": "1dh8wqi8mnsapzicrdjg6cj6skj9f2ia4ijg08pl45bcxc1lidzc", + "fetchLFS": false, + "fetchSubmodules": false, + "deepClone": false, + "leaveDotGit": false +}