{"id":15144221,"url":"https://github.com/mdmfernandes/tree-sitter-selinux","last_synced_at":"2026-01-20T05:01:15.693Z","repository":{"id":235941251,"uuid":"783458117","full_name":"mdmfernandes/tree-sitter-selinux","owner":"mdmfernandes","description":"Tree-sitter grammar for SELinux","archived":false,"fork":false,"pushed_at":"2024-05-28T16:53:02.000Z","size":144,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T16:50:37.799Z","etag":null,"topics":["grammar-parser","selinux","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/mdmfernandes.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-04-07T23:29:22.000Z","updated_at":"2024-04-28T22:06:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"d72dfeae-3411-4be9-b887-abb8b0ff4e27","html_url":"https://github.com/mdmfernandes/tree-sitter-selinux","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"e13c6cdbe05845c0e9379c6937b59d7424e9ece3"},"previous_names":["mdmfernandes/tree-sitter-selinux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdmfernandes/tree-sitter-selinux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmfernandes%2Ftree-sitter-selinux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmfernandes%2Ftree-sitter-selinux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmfernandes%2Ftree-sitter-selinux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmfernandes%2Ftree-sitter-selinux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdmfernandes","download_url":"https://codeload.github.com/mdmfernandes/tree-sitter-selinux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmfernandes%2Ftree-sitter-selinux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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":["grammar-parser","selinux","tree-sitter"],"created_at":"2024-09-26T10:22:51.827Z","updated_at":"2026-01-20T05:01:15.676Z","avatar_url":"https://github.com/mdmfernandes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tree-sitter grammar for SELinux\n\n**HEAVILY WIP!!!**\n\n## Set in Neovim for local development\n\n### Install\n\nAdd the following content to the tree-sitter Neovim config:\n\n```lua\ninit = function()\n    -- Tree-sitter selinux parser\n    local parser_config = require \"nvim-treesitter.parsers\".get_parser_configs()\n    parser_config.selinux = {\n        install_info = {\n            url = \"~/src/tree-sitter-selinux\",\n            files = { \"src/parser.c\" },\n            -- optional entries:\n            branch = \"main\",\n            generate_requires_npm = false,\n            requires_generate_from_grammar = false,\n        },\n    }\nend,\n```\n\nSee [nvim-treesitter -\u003e adding\nparsers](https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#adding-parsers) for details.\n\n### Highlights\n\nThe queries must be added to the nvim-treesitter runtime directory:\n\n```bash\ncd ~/.local/share/nvim/lazy/nvim-treesitter/queries\nln -s ~/src/tree-sitter-selinux/queries ./selinux\n```\n\n### Text objects\n\nThe queries must be added to the nvim-treesitter-textobjects runtime directory:\n\n```bash\ncd ~/.local/share/nvim/lazy/nvim-treesitter-textobjects/queries\nln -s ~/src/tree-sitter-selinux/queries ./selinux\n```\n\n## References\n\n- [The SELinux Notebook](https://github.com/SELinuxProject/selinux-notebook)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdmfernandes%2Ftree-sitter-selinux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdmfernandes%2Ftree-sitter-selinux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdmfernandes%2Ftree-sitter-selinux/lists"}