{"id":15083789,"url":"https://github.com/cryptocode/tree-sitter-bio","last_synced_at":"2026-02-21T16:39:03.750Z","repository":{"id":257761344,"uuid":"859242222","full_name":"cryptocode/tree-sitter-bio","owner":"cryptocode","description":"Bio grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2024-09-18T13:38:31.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T18:42:11.542Z","etag":null,"topics":["bio","lisp","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptocode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-18T10:31:50.000Z","updated_at":"2025-01-13T18:54:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dfd02f2-cc59-4070-ba67-ada3cd1ee859","html_url":"https://github.com/cryptocode/tree-sitter-bio","commit_stats":null,"previous_names":["cryptocode/tree-sitter-bio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptocode/tree-sitter-bio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocode%2Ftree-sitter-bio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocode%2Ftree-sitter-bio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocode%2Ftree-sitter-bio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocode%2Ftree-sitter-bio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptocode","download_url":"https://codeload.github.com/cryptocode/tree-sitter-bio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocode%2Ftree-sitter-bio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bio","lisp","tree-sitter"],"created_at":"2024-09-25T06:32:56.328Z","updated_at":"2026-02-21T16:39:03.743Z","avatar_url":"https://github.com/cryptocode.png","language":"JavaScript","readme":"# Tree-sitter grammar for Bio\n\nA tree-sitter grammar for [Bio](https://github.com/cryptocode/bio), a programming language in the Lisp tradition.\n\nCredits to @Wilfred for the elisp grammar which forms the basis for this one.\n\nSupported syntax:\n\n* Atoms and lists\n* Types and macros\n* Quoting and unquoting (`'`, `#'`, `` ` ``, `,`, `,@`)\n* Special forms\n* Comments\n\n\u003cimg width=\"838\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e8f82965-dc69-4f5a-a2fa-3783ef5b55ea\"\u003e\n\n## Integrating with editors\n\nSee the documentation for nvim, helix, etc for up-to-date information on installing additional tree-sitter grammars.\n\n### Helix\nHere's an example for Helix:\n\n`~/.config/helix/languages.toml`\n\n```\n[[language]]\nname = \"bio\"\nscope = \"source.bio\"\ninjection-regex = \"bio\"\nroots = []\nfile-types = [\"bio\"]\ncomment-tokens = \";\"\nindent = { tab-width = 4, unit = \"  \" }\n\n[[grammar]]\nname = \"bio\"\nsource = { git = \"https://github.com/cryptocode/tree-sitter-bio\", rev = \"bea420e96026a2fdaed7136efd4a87d78a7245aa\" }\n```\n\nYou usually want to update `rev` to the latest commit, and `url` if you're forking this repository.\n\nThen install the grammar:\n\n```bash\nhx --grammar fetch \u0026\u0026 hx --grammar build\n```\n\nFor highlighting to work, you may have to symlink the queries:\n\n```bash\nln -s ~/.config/helix/runtime/grammars/sources/bio/queries/ ~/.config/helix/runtime/queries/bio\n```\n\n## Neovim\n\nHere's an example config for nvim\n\n```lua\nvim.cmd([[\ncall plug#begin()\n\nPlug 'https://github.com/catppuccin/nvim'\nPlug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}\nPlug 'nvim-treesitter/nvim-treesitter-textobjects'\nPlug 'nvim-treesitter/playground'\n\ncall plug#end()\n]])\n\n-- Set the colorscheme\nvim.cmd(\"colorscheme catppuccin-macchiato\")\n\nlocal parser_config = require(\"nvim-treesitter.parsers\").get_parser_configs()\nparser_config.bio = {\n    install_info = {\n        -- Change url if you fork this repository\n        -- You can also use a file path\n        url = \"https://github.com/cryptocode/tree-sitter-bio\",\n        files = { \"src/parser.c\"},\n        branch = \"main\",\n        generate_reqires_npm = false,\n        requires_generate_from_grammar = false,\n    },\n    filetype = \"bio\",\n}\n\nrequire'nvim-treesitter.configs'.setup {\n  ensure_installed = {\"zig\", \"bio\"},\n  highlight = {\n    enable = true,\n  },\n}\n\nvim.filetype.add({\n  extension = {\n    bio = 'bio'\n  }\n})\n```\n\nNow do `:TSInstall bio` in nvim, and `:TSUpdate bio` if you make changes.\n\nAs with Helix, you may have to symlink the queries. Assuming you've cloned this repository\nto `~/projects`:\n\n```bash\nmkdir -p ~/.config/nvim/queries\nln -s ~/projects/tree-sitter-bio/queries/ ~/.config/nvim/queries/bio\n```\n\n## Developing\n\nClone this repository and run the following command to install dependencies:\n\n```\n$ npm install\n```\n\nTo generate the parser after making changes to the grammar:\n\n```\n$ npm run generate\n```\n\nAdd and push the changes to your fork.\n\nTo update Helix as in the example above, update language.toml with the correct url and rev, then run `hx --grammar fetch \u0026\u0026 hx --grammar build`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocode%2Ftree-sitter-bio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptocode%2Ftree-sitter-bio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocode%2Ftree-sitter-bio/lists"}