| Crates.io | tree-sitter-ghactions |
| lib.rs | tree-sitter-ghactions |
| version | 0.2.2 |
| created_at | 2025-07-26 21:00:54.825926+00 |
| updated_at | 2025-09-23 02:51:10.904981+00 |
| description | Parser for Github Actions expressions |
| homepage | |
| repository | https://github.com/rmuir/tree-sitter-ghactions |
| max_upload_size | |
| id | 1769461 |
| size | 131,970 |
Github Actions expressions grammar for tree-sitter
${{ ... }}bash injections in YAML documentsIt is recommended to install at least yaml, bash, and comment parsers to support github actions files.
-- custom parsers
vim.api.nvim_create_autocmd('User', {
pattern = 'TSUpdate',
callback = function()
require('nvim-treesitter.parsers').ghactions = {
install_info = {
url = 'https://github.com/rmuir/tree-sitter-ghactions',
queries = 'queries',
},
}
end,
})
~/.config/nvim/queries/yaml/injections.scm:; extends
; github actions
([
(string_scalar)
(block_scalar)
(double_quote_scalar)
(single_quote_scalar)
] @injection.content
(#lua-match? @injection.content "[$]{{.*}}")
(#set! injection.language "ghactions"))
:TSUpdate and :TSInstall ghactions from neovim.NOTE: these instructions are based upon the main branch of nvim-treesitter.
Bindings are published to pypi, npm, and crates.io as tree-sitter-ghactions.
Wasm and source code artifacts are published to GitHub releases