tree-sitter: update grammars

The new update scripts gives us a bunch of new grammars!
This commit is contained in:
Profpatsch
2020-12-29 12:46:30 +01:00
parent c0a4b41afe
commit a32c5d90e7
21 changed files with 189 additions and 39 deletions
@@ -49,8 +49,16 @@ let
source = fetchGrammar grammar;
};
in
# typescript doesn't have parser.c in the same place as others
lib.mapAttrs change (removeAttrs (import ./grammars) ["typescript"]);
lib.mapAttrs change (removeAttrs (import ./grammars) [
# TODO these don't have parser.c in the same place as others.
# They might require more elaborate builds?
# /nix/…/src/parser.c: No such file or directory
"tree-sitter-typescript"
# /nix/…/src/parser.c: No such file or directory
"tree-sitter-ocaml"
# /nix/…/src/parser.c:1:10: fatal error: tree_sitter/parser.h: No such file or directory
"tree-sitter-razor"
]);
in rustPlatform.buildRustPackage {
pname = "tree-sitter";