diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix index 8b605c3c9478..b8ad14bda344 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix @@ -12,6 +12,7 @@ tree-sitter-comment = lib.importJSON ./tree-sitter-comment.json; tree-sitter-commonlisp = lib.importJSON ./tree-sitter-commonlisp.json; tree-sitter-cpp = lib.importJSON ./tree-sitter-cpp.json; + tree-sitter-crystal = lib.importJSON ./tree-sitter-crystal.json; tree-sitter-css = lib.importJSON ./tree-sitter-css.json; tree-sitter-cuda = lib.importJSON ./tree-sitter-cuda.json; tree-sitter-cue = lib.importJSON ./tree-sitter-cue.json; diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-crystal.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-crystal.json new file mode 100644 index 000000000000..eb5e7cb50ed3 --- /dev/null +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-crystal.json @@ -0,0 +1,12 @@ +{ + "url": "https://github.com/crystal-lang-tools/tree-sitter-crystal", + "rev": "cf69a6504a82fecc55ee1680983744a94a9edfaa", + "date": "2025-03-28T11:48:18-04:00", + "path": "/nix/store/c20hqk12him4k0675y3l5f53lfnaa37d-tree-sitter-crystal", + "sha256": "0jzmkjfhrz1f5pw274dj0f7avazsyhx0h6vbg4p5xxzkqch19wah", + "hash": "sha256-UPEUIMPz914ueWsbCDr0+qutjgOykSP4LS78DJ2c9Us=", + "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 c4e35962db3b..ac8b80ccaef7 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -488,6 +488,10 @@ let orga = "norgate-av"; repo = "tree-sitter-netlinx"; }; + "tree-sitter-crystal" = { + orga = "crystal-lang-tools"; + repo = "tree-sitter-crystal"; + }; }; allGrammars =