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.0.tar.gz (18.6 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.0-cp310-abi3-win_arm64.whl (14.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-win_amd64.whl (15.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl (23.3 kB view details)

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

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl (23.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (24.7 kB view details)

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

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (23.5 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.0-cp310-abi3-macosx_11_0_arm64.whl (13.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-macosx_10_9_x86_64.whl (13.0 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.0.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 72006946e0f12b6f1ba65df0a4439e92989f84fd74c11f12dde6fd77f59ccaa1
MD5 851faec55cd01f217076744ab3bd147c
BLAKE2b-256 c964531421d12edff2db248b783a95154e64fa4552d904fb54d03eefb3f9efad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 06f34c4dc404c96db88f4a82ced4c2df50352b5f91bdfb053deb0e8f91cafeb8
MD5 4098b6a1cb16a096d3a45e1ab5f15bd4
BLAKE2b-256 747cd93de9665ae6e06622c8240f3c01376e99002f92059c0994bfa026b4fac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4c9ef8b8dfe0f9b6ee944aa5bbae2175dda462ebdfc79c71a170e94b9774ea85
MD5 7d0c4742c05abc92d2df43746873e77b
BLAKE2b-256 a92797b32b9f0ba5d7f971e710cb1da5d22e6adae1b405a524af2439208e5f82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5512c462354defb776b5bcbb43adc38438590e75f3079ed224561cbcf618ae78
MD5 466ee7f2e8b547573b1d0b032e67a12a
BLAKE2b-256 f03913438c7b799e53d3ac0920f3d7ae83f432e28d964ad4967df19b2d51ed2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3e0a89dc218fd7277be4b5ac5d720499bb0ed800045dae8099dab5c9065382dc
MD5 639f03d276ee266a67113d773c51e593
BLAKE2b-256 c95e9b512647acc21f9db21d773d4a15204dfb2612cf8d38ae65aa3cbac3abdb

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.0-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.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5002f2e094faa94559977e47294f6168ca6d465dbe50073b51dd66583c8111dc
MD5 0bc3432552d76a21c02817993633f313
BLAKE2b-256 3d1831cfb2b76db7001cff05535b25d4e950792af1e864f1056d837422b2784c

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.0-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.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7266e833ee2c32f7e5a64c19c4f5ff765a1bb83c2d5fa170eb186aefebc3d6d6
MD5 ee46335414df33f5e72bede0025e319e
BLAKE2b-256 13033b9838ab5f33b824c347becb204a6e10a46425d74d8b23da0c1fb54030f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83b15e6b8ba539aee6f4992e7aa773c1e3676d1f531322cc411dedb14bdeae4e
MD5 d364ddb8f00f73af9744a363be98a260
BLAKE2b-256 faff859fcc8952048259b70af945bea12d8917e231a5d5475f3cb6957c7b0d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3a1fc4b7178d0dc06581562c4f4ac0c155bb7c47e8b6c5a5284fecc9065de737
MD5 99718d4d91fe2d66ee31d107e3f215d4
BLAKE2b-256 b6a1ee82756c8882ed186b6d9120ec45854cccb595383913e9830d90af6c38f3

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