{"id":17465912,"url":"https://github.com/higherorderco/tree-sitter-bend","last_synced_at":"2025-06-11T07:08:58.102Z","repository":{"id":246904948,"uuid":"819420567","full_name":"HigherOrderCO/tree-sitter-bend","owner":"HigherOrderCO","description":"Bend grammar for tree-sitter.","archived":false,"fork":false,"pushed_at":"2024-10-18T11:36:52.000Z","size":1631,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T22:25:19.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HigherOrderCO.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}},"created_at":"2024-06-24T13:19:32.000Z","updated_at":"2025-04-04T03:09:39.000Z","dependencies_parsed_at":"2025-02-19T20:42:49.916Z","dependency_job_id":null,"html_url":"https://github.com/HigherOrderCO/tree-sitter-bend","commit_stats":null,"previous_names":["higherorderco/tree-sitter-bend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HigherOrderCO%2Ftree-sitter-bend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HigherOrderCO%2Ftree-sitter-bend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HigherOrderCO%2Ftree-sitter-bend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HigherOrderCO%2Ftree-sitter-bend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HigherOrderCO","download_url":"https://codeload.github.com/HigherOrderCO/tree-sitter-bend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HigherOrderCO%2Ftree-sitter-bend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259219697,"owners_count":22823576,"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":[],"created_at":"2024-10-18T13:06:49.533Z","updated_at":"2025-06-11T07:08:58.068Z","avatar_url":"https://github.com/HigherOrderCO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-sitter-bend\n\nBend grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).\n\n# Usage\n\n## Neovim\n\n### Installation\n\nFirst of all, you need to install [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) with your favorite dependency manager, such as [lazy.nvim](https://github.com/folke/lazy.nvim).\n\nAfter that, you should add this code snippet to your Neovim configuration right after calling `require(\"nvim-treesitter.configs\").setup()`. The configuration file can be found or created at `~/.config/nvim/init.lua`.\n\n```lua\nlocal parser_config = require(\"nvim-treesitter.parsers\").get_parser_configs()\nparser_config.bend = {\n  install_info = {\n    url = \"https://github.com/HigherOrderCO/tree-sitter-bend\",\n    files = { \"src/parser.c\", \"src/scanner.c\" },\n    branch = \"main\",\n  },\n}\n\nvim.filetype.add({\n  extension = {\n    bend = \"bend\",\n  },\n})\n\nvim.treesitter.language.register(\"bend\", { \"bend\" })\n```\n\nUsing lazy.nvim, your configuration could look like this:\n\n```lua\nplugins = {\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    build = \":TSUpdate\",\n    config = function () \n      local configs = require(\"nvim-treesitter.configs\")\n\n      configs.setup({\n        ensure_installed = { \"c\", \"lua\", \"vim\", \"vimdoc\", \"query\", \"elixir\", \"heex\", \"javascript\", \"html\" },\n        sync_install = false,\n        highlight = { enable = true },\n        indent = { enable = true },\n      })\n      \n      local parser_config = require(\"nvim-treesitter.parsers\").get_parser_configs()\n      parser_config.bend = {\n        install_info = {\n          url = \"https://github.com/HigherOrderCO/tree-sitter-bend\",\n          files = { \"src/parser.c\", \"src/scanner.c\" },\n          branch = \"main\",\n        },\n      }\n      \n      vim.filetype.add({\n        extension = {\n          bend = \"bend\",\n        },\n      })\n\n      vim.treesitter.language.register(\"bend\", { \"bend\" })\n    end\n  }\n}\n\nrequire(\"lazy\").setup(plugins)\n```\n\nFinally, install the language grammar into the tree-sitter plugin by running `:TSInstall bend` on Neovim.\n\n### Syntax highlighting\n\nFor syntax highlighting to work, you have to create a `queries/bend` directory in your Neovim configuration root and copy the file [highlights.scm](./queries/highlights.scm) into it.\n\nYou might have to update the Tree-sitter plugin afterwards by running `:TSUpdate` on Neovim.\n\n## VSCode\n\nYou can use syntax highlighting on VSCode through our VSCode extension, check out its repository [here](https://github.com/HigherOrderCO/bend-language-server).\n\n# Contributing\n\nThe grammar descriptions can be found in the directory [./grammar](./grammar/), called by the main file [./grammar.js](./grammar.js). Most other files are automatically generated by the tree-sitter CLI using `tree-sitter generate`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhigherorderco%2Ftree-sitter-bend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhigherorderco%2Ftree-sitter-bend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhigherorderco%2Ftree-sitter-bend/lists"}