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" },
        branch = '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.3.0.tar.gz (20.8 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.3.0-cp310-abi3-win_arm64.whl (16.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-win_amd64.whl (17.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl (26.1 kB view details)

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

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl (27.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (28.5 kB view details)

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

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (26.4 kB view details)

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

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-macosx_11_0_arm64.whl (15.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-macosx_10_9_x86_64.whl (15.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.3.0.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ef37cfe91d12b4eb49d4afb5e374494b1c6a460604018dddb47d424805d5588
MD5 4e1ca6310825c9c1d1bce654489bc994
BLAKE2b-256 f73824856fe283a75a758000893d6b9fa8b1809c6fdf1e58ca61aaaa1a0abdd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 427554c1e12f075b6352c4b5e70c097c7111107c43f7ebfa9c43c5822a75fcb1
MD5 47756a26124c0773548f72034de6e0e1
BLAKE2b-256 a204966c16ab85b2ffa8b3f02c8866e6c259e5445c3818ac74915d78e8bb53de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ddafc2ce01593af91f022f5c32725b201f9aab85513cbfd2b0e93bbfc8f8243d
MD5 5e14c7dc0138d7299da669eab998aa60
BLAKE2b-256 f4fcd37b529e6f0a1cf73504d4b08d5636060c5185f0c1c48f5d174f68f23a76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bec2e22f98f0ff98316e239d8c1a17d9a1eff71700960b2cb2deef124d1afedc
MD5 b1293e773ceeec4e9453704549f0a415
BLAKE2b-256 d3b168fef2066c74249569c09392b226f8c74869082572df1604a70f05bc8813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4ba219c9e424549707ef6db9db43fc6537d3f886d33c3b295832088d0a64913d
MD5 c3279b1209ebfff15a22212351bbe8f7
BLAKE2b-256 63e8d7c1abef4cd59cb919c7c7aeff109f9aee6ea57dac4b890f5a96a74112e2

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.3.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.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 749d346a1606b89acd311b9dc8d2577c9e25a9193846ad3b386d5cd9a525260b
MD5 5211fefe0bffecdd53f5e81feabc5a69
BLAKE2b-256 1c3172b1ac17f8223596341b96db9ca4489e5252b177183a5394dcf10314a8f2

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.3.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.3.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e47f3a55d1954bee2404cf91c0cfee4ebb5f872316270b35312a6c82a2ff855e
MD5 c00da8fb712c1082815c3ba1c2484b0e
BLAKE2b-256 809d14805fad1d09d044c0055e389f9269cb1096506fb00a02a463e4082c2235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 347a74c8e22ac7cbbc3f935fb6ef660969746636a4cd8392cf3cf8652d4eda69
MD5 235b06a1167d9f32fc13fffbc0e43ed1
BLAKE2b-256 e3e0f80f40a6a62971b817aec7d53047947377e69051ebf3f34789b84142d6ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 82ca8690eca9260b56cad9a7d20331197fe1a6f0f6d5f47622f1fed4b89e3682
MD5 d8bebb9d7f8eae1074709da579fc707e
BLAKE2b-256 fe77d6e8e72c5a41fc4f9d50a4f6bdda73fcc4066c3c63242895efd20568b616

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