Skip to main content

tree-sitter-ghactions

Github Actions expressions grammar for tree-sitter

Features

  • Parses Github Action's expressions: ${{ ... }}
  • Plays well with bash injections in YAML documents
  • Passes parsing tests from actionlint

Neovim Installation (for use in your editor)

  1. Install nvim-treesitter

It is recommended to install at least yaml, bash, and comment parsers to support github actions files.

Optional parsers used for additional highlights: json, nim, nim_format_string

  1. Configure autocmd for a custom parser:
-- 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,
})
  1. Configure yaml injection in ~/.config/nvim/queries/yaml/injections.scm:
; extends

; github actions
([
  (string_scalar)
  (block_scalar)
  (double_quote_scalar)
  (single_quote_scalar)
  (ERROR)
] @injection.content
  (#lua-match? @injection.content "[$]{{")
  (#set! injection.language "ghactions"))
  1. Run :TSUpdate and :TSInstall ghactions from neovim.

NOTE: these instructions are based upon the main branch of nvim-treesitter.

Bindings Installation (for development)

Bindings are published to pypi, npm, and crates.io as tree-sitter-ghactions. Wasm and source code artifacts are published to GitHub releases

Screenshot of highlights

Syntax highlighting screenshot

Metadata

Release files for tree-sitter-ghactions 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tree-sitter-ghactions 0.2.5
File Size Uploaded
tree_sitter_ghactions-0.2.5.tar.gz 16.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-ghactions 0.2.5
File
tree_sitter_ghactions-0.2.5-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.17+ ARM64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 abi3 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details

Total release size: 163.9 kB

Release files / tree_sitter_ghactions-0.2.5.tar.gz

Download URL tree_sitter_ghactions-0.2.5.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fc863ed9c24da0a9fb2713018999dc83b2dd94e9fc6bbff88a7749055a19d7ee
BLAKE2b-256 checksum
How to use checksums
ac6f2280c3f990bc160c40c70ab60682c3929e1bc81e10b1ec851d00816f5486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-win_arm64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-win_arm64.whl
Size 13.6 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
2a104cdc393fff9fdbec5b15008a2a1011186b6d1a26a291a82ba9f7f9d12a72
BLAKE2b-256 checksum
How to use checksums
3308817c7de17ef5326415b6d2746008911a4d7af37942d8ba2fb4db8f6deb25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-win_amd64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-win_amd64.whl
Size 14.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b5e0b8b7108ca7a259858ddfbef90c4b22c8ef4c98192af0f05b408a5ea809e4
BLAKE2b-256 checksum
How to use checksums
e86ccaadca8330fb00adfcc1e7b56b476157fe784d9b8f7fb999d4f7bb187876
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_x86_64.whl
Size 22.5 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ef78534f5e324aa1fe80418c6cd8d1a8050307d7ee466477301d34cb1821dcd6
BLAKE2b-256 checksum
How to use checksums
51dc28a43b5733b1c37d3653e8d2418d8d5b3c5c28ffab650627fbe78037146d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-musllinux_1_2_aarch64.whl
Size 23.8 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
79cb375e58cbe61993850a1c9e1c1a2577840c9516045c4e434d35243912729f
BLAKE2b-256 checksum
How to use checksums
74524c06c3d0068d330ccea3d708c574f54672f07387e897b5c26c9eeac9d9ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 24.6 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
cd298e79e61b8b73ef0c07e4e4e184d6cc043ea6f4b1c43276aedb42932b3ebe
BLAKE2b-256 checksum
How to use checksums
dcec9e4e1f615347b6dcad062e89e4a08b7702470d8596fbccf0e0de7c028d89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 22.5 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
02dee381cb54239b2f81563515cd9d60591d3de44d5aa8c9d1b0ebf470a3abde
BLAKE2b-256 checksum
How to use checksums
57c918310f473341f4f3e87f8f5e623f383e9545b60f279317a1649c760ee5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_11_0_arm64.whl
Size 12.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
18e33a920fada3c05a200c6fc3f64ea96704178b48b29ea95817c229924ad36e
BLAKE2b-256 checksum
How to use checksums
690787f4640fc63b31b6cf15bc1a33ee5620a898c1628744e2766598a65187db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_ghactions-0.2.5-cp310-abi3-macosx_10_9_x86_64.whl
Size 12.5 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
87458f08401ab16c52c27cb7d21ccfcce19a2d0dc68ae623e8756b1e8f6f219f
BLAKE2b-256 checksum
How to use checksums
1d86ed81f344052c9ea0a8260766f8f444f331f219a427da561913f5ff15e4ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.5 This release

9 release files

0.2.4

9 release files

0.2.3

9 release files

0.2.2

9 release files

0.2.1

8 release files

0.2.0

8 release files

0.1.2

8 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page