From 192646e4417c1ececb7039d01e9e531c036fc8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Fri, 4 Mar 2022 13:48:44 +0100 Subject: [PATCH] tree-sitter-hcl: init --- .../tools/parsing/tree-sitter/grammars/default.nix | 1 + .../parsing/tree-sitter/grammars/tree-sitter-hcl.json | 11 +++++++++++ pkgs/development/tools/parsing/tree-sitter/update.nix | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-hcl.json diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix index eb2275d2724c..b7ae694c9181 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix @@ -34,6 +34,7 @@ tree-sitter-gomod = lib.importJSON ./tree-sitter-gomod.json; tree-sitter-graphql = lib.importJSON ./tree-sitter-graphql.json; tree-sitter-haskell = lib.importJSON ./tree-sitter-haskell.json; + tree-sitter-hcl = lib.importJSON ./tree-sitter-hcl.json; tree-sitter-heex = lib.importJSON ./tree-sitter-heex.json; tree-sitter-hjson = lib.importJSON ./tree-sitter-hjson.json; tree-sitter-html = lib.importJSON ./tree-sitter-html.json; diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-hcl.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-hcl.json new file mode 100644 index 000000000000..24d731be7a2d --- /dev/null +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-hcl.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/MichaHoffmann/tree-sitter-hcl", + "rev": "3cb7fc28247efbcb2973b97e71c78838ad98a583", + "date": "2021-09-20T21:50:41+02:00", + "path": "/nix/store/rgd0p162smlfn90ggyq3y6y4q9sgybwh-tree-sitter-hcl", + "sha256": "0hg7w3hsvxjwz1rb1izknn46msm4mkjx2cnq603lzn7i9mb1pbyr", + "fetchLFS": false, + "fetchSubmodules": false, + "deepClone": false, + "leaveDotGit": false +} diff --git a/pkgs/development/tools/parsing/tree-sitter/update.nix b/pkgs/development/tools/parsing/tree-sitter/update.nix index 246574895e3c..96b5e47316c7 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -308,6 +308,10 @@ let orga = "milisims"; repo = "tree-sitter-org"; }; + "tree-sitter-hcl" = { + orga = "MichaHoffmann"; + repo = "tree-sitter-hcl"; + }; }; allGrammars =