From ade1ce58c86f874e1ae8db5822970d5dad7c8fc1 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sat, 20 Dec 2025 14:52:10 +0000 Subject: [PATCH] tree-sitter-grammars.tree-sitter-razor: switch and update to working source This switches the grammar to match that used by the neovim grammars, written by a nixpkgs maintainer (@tris203). See https://github.com/NixOS/nixpkgs/pull/471954 --- .../parsing/tree-sitter/grammars/grammar-sources.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/grammar-sources.nix b/pkgs/development/tools/parsing/tree-sitter/grammars/grammar-sources.nix index b4639e67d8c9..eb976837b2e0 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/grammar-sources.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/grammar-sources.nix @@ -554,12 +554,9 @@ }; razor = { - version = "0-unstable-2016-07-08"; - url = "github:tree-sitter/tree-sitter-razor/60edbd8e798e416f5226a746396efa6a8614fa9b"; - hash = "sha256-UVzs4z1Aa/Wvpwck4wrApijTEOrc53h867M32m2yutE="; - # Source repo is marked as archived (no update for 9 hears) and does not - # compile with current tree-sitter toolchain. - meta.broken = true; + version = "0-unstable-2025-02-17"; + url = "github:tris203/tree-sitter-razor/fe46ce5ea7d844e53d59bc96f2175d33691c61c5"; + hash = "sha256-E4fgy588g6IP258TS2DvoILc1Aikvpfbtq20VIhBE4U="; }; regex = {