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.1.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.1-cp310-abi3-win_arm64.whl (16.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-win_amd64.whl (17.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-musllinux_1_2_x86_64.whl (26.2 kB view details)

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

tree_sitter_gh_actions_expressions-0.3.1-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.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (28.6 kB view details)

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

tree_sitter_gh_actions_expressions-0.3.1-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.1-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.1-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.1.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1.tar.gz
Algorithm Hash digest
SHA256 888b540fee4eeb8464ecabaf364706fde9ad1279d1c9c05bfe39839675a5c788
MD5 d251751afaeec02e989c4faa57b5e5df
BLAKE2b-256 fba6438d0627c4826b796130699c254762ea4a31d3fe9e11ef8270f8b2900470

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a6ed8c156ea0eb7cf583133693c6d09e89dc99888087d0ad17a25884a60d3856
MD5 c6ce30a3136471d9157e083e879115ee
BLAKE2b-256 3031799852c3847ae16382c6032a111880bb61256cc5e10da01fe096778e849f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 87610f5ca965d933eb6fcc90df5a678837c7f8cd0f6655d00eb3339e89570b4a
MD5 ca6d6ad656890f29c1c099fb0ce3b6ad
BLAKE2b-256 9787d7b968dc453a4dcdd692b0f68ba9ec1fd83f1e25ee65d1cbab33155fed6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b1149487c0e079e20e2533933fb3abe5f26ec63ef6cca59e357dbf1301e60a3b
MD5 7332f92ecf5ca63b95165013e6afb019
BLAKE2b-256 4f5e6c1f60e0e3d8c72f87f84bb62eeb4553c33479734a5f78a840282bea5db4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 252a0e1116736cc873de678917e2ef24e2b9ede3fee6a3aecab4e445ea6bcca2
MD5 d3d2a0b71fb6b245aa7d0a9f1fb8567a
BLAKE2b-256 8fbe79972f48ea1afe1015e40e1603b30e054ea3dd56b0e631bc81cc1829f5a1

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.3.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.3.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c73d45d5c240630df2a4715627e49563a10f751ab5a1f4febecd87e725dfd790
MD5 4057273bd6a446c332cd2ad5a046759e
BLAKE2b-256 82d6fd75bdadc0d1e7eb29ba1818d7e1a7b1dd2942d376e135aceb9d35eac867

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.3.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.3.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7abf861f72a2d48b5925c553d3de592f3e770c1374cdb9578041d1f5ba2c9ae4
MD5 9ff9f42e13ab160324f10accf93e5521
BLAKE2b-256 ce272feb488492be363a8a30b885ac4031c265104189579ff35f17a8d7e30f44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6cd24704df703be3996a52def2fefd6101128a8dda2951c73a7ee73c448c796
MD5 0a966223fbe5e73aae48b51ba5881d39
BLAKE2b-256 1f2b766c96acd82df44a2c573d43002812382c96b67a655a91e255a410c20a5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.3.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 70df057ddc936e60d6ecc714b65894f105a7407e341b471a247106936396f5ae
MD5 dbdd9b87ac8a47d29070a3a5f46ce16b
BLAKE2b-256 18e388d2b27645e19439a23b50e9d6ba0248a54fbe2271eb76126dd98deac33e

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