Skip to main content

Github Actions expressions grammar for tree-sitter

Project description

tree-sitter-gh-actions-expressions

CI discord matrix crates npm pypi

Tree-sitter grammar for Github Actions expressions

Parser requirements

  • gitignore (optional): for hashFiles() function
  • json (optional): for fromJSON() function
  • yaml: injection to its block_mapping_pair node

Usage in Editors

Neovim

Requirements

Installation

  1. Add the following to your nvim-treesitter configuration:

    local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
    
    -- NOTE: add the parser to `parser_config` before calling `setup()`
    parser_config.gh_actions_expressions = {
      install_info = {
        url = 'https://github.com/Hdoc1509/tree-sitter-gh-actions-expressions',
        files = { "src/parser.c" },
        revision = 'release',
        -- if ABI version from neovim doesn't match the one from this grammar
        -- requires Node.js and tree-sitter cli to be installed
        requires_generate_from_grammar = true,
      },
    }
    
    require('nvim-treesitter.configs').setup({
      ensure_installed = {
        --- other parsers
        'gh_actions_expressions',
      },
      -- other options
    })
    
  2. Copy the queries from queries directory to queries/gh_actions_expression directory in your neovim configuration directory:

    With Path
    Unix ~/.config/nvim
    Windows ~/AppData/Local/nvim
    XDG_CONFIG_HOME set $XDG_CONFIG_HOME/nvim

Helix

WIP

Emacs

WIP

In General

You can get the built files from the release branch. If you have specific instructions for your editor, PR's are welcome.

Implementations

WIP

References

Thanks

Thanks to @disrupted for creating tree-sitter-github-actions grammar, which is the base I used to create this grammar.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_gh_actions_expressions-0.1.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_arm64.whl (15.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_amd64.whl (16.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl (24.4 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl (25.0 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (25.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (24.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (14.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl (14.1 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8297be7578974dd4212f0bb9c80ae0a3ebe2cd7489dead23d4136a1526ff19ec
MD5 67c7d74d9f4602786c1872fa983e43ec
BLAKE2b-256 6f19cb2aca6048fd16d26d2a0eea8c43cf0f5f3ea94182f8d4b5775c68559a96

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 182d24c64f49216de0705544c708b2e8cf395702a63fe05ca7e9f7be2a25b17b
MD5 067333a614c14d99e1f6cf2600c7d230
BLAKE2b-256 6a5318bdab4a4e51ab19845b63c178554dff2594ee8843e32a47847063a49023

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f07a52a5d9b1e4370da59b9b2c2d9d5fb872a56cd1c5952f6e52c01e08213711
MD5 7d06f7612d37de8d2fcfc866c9b7a740
BLAKE2b-256 0a4e71bfe5e2c2bd6d827b8099f97bc900d3586a7f40d706aa3ac431ed99d6ec

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 33b62437b17e12df54ae6ecf0bc13c72855978a903cf619ee8d7ad0081f13e4e
MD5 f31770bf34f9677f71b794223783165c
BLAKE2b-256 30901e68c4194896f1708c15b25357dcb7c1e41f1db3a3ad4bb5afe3a2b4c4e2

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 61268091220bc1cae472f6c7db9238f3f1cf510035953c0143207c731b259393
MD5 89d8c42acaf23486973af63ab7e948d7
BLAKE2b-256 aedd66a2b3c006497e74f2abf5ec9db825dbaedd0ac4a34ca063bf9b81ff4dca

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9bf3776af5779934b75dda8085b344b96091af468daabe15c8f56ffb61f6d1ee
MD5 075fac2b0c0840c94d0850c148171e5c
BLAKE2b-256 746bcb52f3d6e7a7cb4d00c525a5df477bac7233ebbeaa6f5996d983a02b667d

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54f1630f04967b863fd54f44a90a72f41f6789f23046e471ca7adbd22533571d
MD5 daeb1f18d246c978b04539c8aab193d0
BLAKE2b-256 1756e3707c79abd664c6d9fe7d57ae4a217f7054b5c8c3eed2211bfa7a803fdb

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbca624114231352620019235d48e4f09fd088e096f61fe97118d018586ef292
MD5 f2ab21190df58ce0ecfd767b7217e645
BLAKE2b-256 00d973d67ccc5ef0f3e9ed7126d98bf68bf9e221bb0e34c41d2787f86f849ab2

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9c61463fb71ba9de873f79d3fa2bb89e1a3364ce478f63553fd6c03a86639459
MD5 44ded2f918608ea2f8a441a29f6e3317
BLAKE2b-256 c0b34b6a963c40f09c5dee097d68317e04a08a2df8d98d4e05793fef151bc75b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page