commit: dcdc4fff81f3cbad7d734bdb2938a35dbf72db35 Author: Brahmajit Das <listout <AT> listout <DOT> xyz> AuthorDate: Fri Nov 21 04:32:11 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 4 12:03:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcdc4fff
dev-libs/tree-sitter-vim: Fix test in 0.5.0 Tests was fixed in 0.6.0 by commit https://github.com/tree-sitter-grammars/tree-sitter-vim/commit/0f31cb98e5c0cb3707e097bf95a04c0c2aac573d Closes: https://bugs.gentoo.org/955711 Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/44703 Closes: https://github.com/gentoo/gentoo/pull/44703 Signed-off-by: Sam James <sam <AT> gentoo.org> ....5.0-fix-config-add-file-types-to-tree-sitter.patch | 18 ++++++++++++++++++ dev-libs/tree-sitter-vim/tree-sitter-vim-0.5.0.ebuild | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/dev-libs/tree-sitter-vim/files/tree-sitter-vim-0.5.0-fix-config-add-file-types-to-tree-sitter.patch b/dev-libs/tree-sitter-vim/files/tree-sitter-vim-0.5.0-fix-config-add-file-types-to-tree-sitter.patch new file mode 100644 index 000000000000..8542425ca0a7 --- /dev/null +++ b/dev-libs/tree-sitter-vim/files/tree-sitter-vim-0.5.0-fix-config-add-file-types-to-tree-sitter.patch @@ -0,0 +1,18 @@ +https://github.com/tree-sitter-grammars/tree-sitter-vim/commit/0f31cb98e5c0cb3707e097bf95a04c0c2aac573d +From: Perchun Pak <[email protected]> +Date: Sat, 5 Apr 2025 13:12:03 +0200 +Subject: [PATCH] fix(config): add `file-types` to tree-sitter.json (#33) + +--- a/tree-sitter.json ++++ b/tree-sitter.json +@@ -4,6 +4,7 @@ + "name": "vim", + "path": ".", + "scope": "text.vim", ++ "file-types": [ "vim" ], + "highlights": "queries/vim/highlights.scm", + "injections": "queries/vim/injections.scm" + } +-- +2.52.0 + diff --git a/dev-libs/tree-sitter-vim/tree-sitter-vim-0.5.0.ebuild b/dev-libs/tree-sitter-vim/tree-sitter-vim-0.5.0.ebuild index 5914ccbc4a74..41830370f508 100644 --- a/dev-libs/tree-sitter-vim/tree-sitter-vim-0.5.0.ebuild +++ b/dev-libs/tree-sitter-vim/tree-sitter-vim-0.5.0.ebuild @@ -14,3 +14,7 @@ SRC_URI="https://github.com/tree-sitter-grammars/tree-sitter-vim/archive/v${PV}. LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86" + +PATCHES=( + "${FILESDIR}/${PN}-0.5.0-fix-config-add-file-types-to-tree-sitter.patch" +)
