{"id":15144289,"url":"https://github.com/datwaft/tree-sitter-corpus","last_synced_at":"2026-01-19T13:32:47.698Z","repository":{"id":229387985,"uuid":"776606364","full_name":"datwaft/tree-sitter-corpus","owner":"datwaft","description":"A tree-sitter parser for tree-sitter's test files","archived":false,"fork":false,"pushed_at":"2024-03-25T07:22:41.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T22:47:52.986Z","etag":null,"topics":["corpus","grammar","tests","tree-sitter","tree-sitter-grammar","tree-sitter-parser"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datwaft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-24T00:50:08.000Z","updated_at":"2024-03-25T07:24:10.000Z","dependencies_parsed_at":"2024-12-20T04:08:43.145Z","dependency_job_id":"4318ecf1-f8f5-4d49-9804-dc969e8406e5","html_url":"https://github.com/datwaft/tree-sitter-corpus","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"261fc2ae961d4ebe3035bc854bb6bbbdf204b1eb"},"previous_names":["datwaft/tree-sitter-corpus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datwaft%2Ftree-sitter-corpus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datwaft%2Ftree-sitter-corpus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datwaft%2Ftree-sitter-corpus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datwaft%2Ftree-sitter-corpus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datwaft","download_url":"https://codeload.github.com/datwaft/tree-sitter-corpus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517924,"owners_count":20951716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["corpus","grammar","tests","tree-sitter","tree-sitter-grammar","tree-sitter-parser"],"created_at":"2024-09-26T10:40:20.309Z","updated_at":"2026-01-19T13:32:47.692Z","avatar_url":"https://github.com/datwaft.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tree-sitter grammar for tree-sitter test files (corpus files)\n\nHello!\n\nI created this grammar as a learning exercise and because I wanted to have highlighting when creating tests for tree-sitter grammars. I have a previous version of this using vim regex parsing [here](https://github.com/datwaft/corpus.vim), if you want to see it (it is now archived as this works a lot better).\n\nThis grammar is supposed to be usable out of the box so if you have any issues or enhancements feel free to open an [issue](https://github.com/datwaft/tree-sitter-corpus/issues/new/choose) or a [PR](https://github.com/datwaft/tree-sitter-corpus/compare).\n\n## How do I install this grammar?\n\nI may create a PR into the [`nvim-treesitter`](https://github.com/nvim-treesitter/nvim-treesitter) repository in the future but meanwhile you can install it like this (example for [`lazy.nvim`](https://github.com/folke/lazy.nvim)):\n\n```lua\n{\n  \"datwaft/tree-sitter-corpus\",\n  dependencies = { \"nvim-treesitter/nvim-treesitter\" },\n  build = \":TSUpdate corpus\",\n}\n```\n\nThe grammar contains its own queries and configures itself, so you don't need to do anything else.\n\n## Screenshots?\n\nHere are some screenshots (my colorscheme is [catppuccin](https://github.com/catppuccin/nvim), my terminal is [Wezterm](https://wezfurlong.org/wezterm/index.html) and my font is [Iosevka](https://github.com/be5invis/Iosevka)):\n\n![](https://github.com/datwaft/tree-sitter-corpus/assets/37723586/d4a5aee1-6631-48f5-83b2-deb9ecbe3925)\n\n![](https://github.com/datwaft/tree-sitter-corpus/assets/37723586/bd02659f-eb22-4bba-acc8-0348e2e4938b)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatwaft%2Ftree-sitter-corpus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatwaft%2Ftree-sitter-corpus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatwaft%2Ftree-sitter-corpus/lists"}