{"id":51831659,"url":"https://github.com/loicreynier/tree-sitter-openacc","last_synced_at":"2026-07-22T16:02:55.638Z","repository":{"id":371505423,"uuid":"1296285803","full_name":"loicreynier/tree-sitter-openacc","owner":"loicreynier","description":"OpenACC grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2026-07-15T09:48:02.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-15T11:21:51.343Z","etag":null,"topics":["fortran","openacc","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loicreynier.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-10T08:41:16.000Z","updated_at":"2026-07-15T09:48:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/loicreynier/tree-sitter-openacc","commit_stats":null,"previous_names":["loicreynier/tree-sitter-openacc"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/loicreynier/tree-sitter-openacc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loicreynier%2Ftree-sitter-openacc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loicreynier%2Ftree-sitter-openacc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loicreynier%2Ftree-sitter-openacc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loicreynier%2Ftree-sitter-openacc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loicreynier","download_url":"https://codeload.github.com/loicreynier/tree-sitter-openacc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loicreynier%2Ftree-sitter-openacc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35768236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fortran","openacc","tree-sitter"],"created_at":"2026-07-22T16:02:52.350Z","updated_at":"2026-07-22T16:02:55.631Z","avatar_url":"https://github.com/loicreynier.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `tree-sitter-openacc`\n\nOpenACC grammar for tree-sitter.\nExperimental and written by someone who doesn't know a lot about tree-sitter, yet.\n\nWritten for providing syntax highlighting in OpenACC directives.\nCurrently only support for Fortran is provided.\n\n## Installation (Neovim)\n\nInstallation requires building the parser, installing the parser and the highlighting,\nand installing the Fortran injection.\nThe later extends global injections such as the one from [`nvim-treesitter`][nvim-treesitter].\n\n### Manual\n\n```bash\ntree-sitter build\nmkdir -p ~/.config/nvim/parser ~/.config/nvim/queries/after/{openacc,fortran}\ncp ./openacc.so ~/.config/nvim/parser\ncp ./queries/highlights.scm ~/.config/nvim/queries/after/openacc\ncp ./fortran-injections.scm ~/.config/nvim/queries/after/fortran\n```\n\n### [`nvim-treesitter`][nvim-treesitter]\n\n```lua\nvim.api.nvim_create_autocmd(\"User\", {\n  pattern = \"TSUpdate\",\n  callback = function()\n    ---@diagnostic disable-next-line: missing-fields\n    require(\"nvim-treesitter.parsers\").openacc = {\n      install_info = {\n        url = \"https://github.com/loicreynier/tree-sitter-openacc\",\n        revision = \"b17931de5e809e7b1fd094876fd96a73d0d045b6\",\n        queries = \"queries\",\n      },\n    }\n  end,\n})\n```\n\n```bash\ncurl -L -o ~/.config/nvim/after/queries/fortran/injections.scm https://raw.githubusercontent.com/loicreynier/tree-sitter-openacc/refs/heads/main/fortran-injections.scm\n```\n\n[nvim-treesitter]: https://github.com/nvim-treesitter/nvim-treesitter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floicreynier%2Ftree-sitter-openacc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floicreynier%2Ftree-sitter-openacc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floicreynier%2Ftree-sitter-openacc/lists"}