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.1.2.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.2-cp310-abi3-win_arm64.whl (15.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_gh_actions_expressions-0.1.2-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.2-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.2-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.2-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.2-cp310-abi3-macosx_11_0_arm64.whl (14.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_gh_actions_expressions-0.1.2-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.2.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2.tar.gz
Algorithm Hash digest
SHA256 670ef672651f7e785aa957e3df2f7d2b480e5619f6b2dd5ffdc549c087bb95bd
MD5 1234523bf5d690ef9991f409e2859b0f
BLAKE2b-256 982dfed80949065a677a1ea8a75ab1bfc61ede6bd6377350bebae882aade1bc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 b9d02ba8a022db8ca17ccf469c868877007a23979c7c5853524069667b27f3f4
MD5 2801ca0650bd67630906fd8c40dadaa6
BLAKE2b-256 80400c4fe9dd3c58ad6597d0ca38123618a339c62ea8358eb8db0c6cf439d8b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a762e225f6d1a82a7bfd8957ead33224cee0f142fa29efdb3c74cee2613ffec9
MD5 e37814b544d8f06d5899853e459e04ce
BLAKE2b-256 542ac3f31b70180b3014d8add02b9da8c827b9313a909b744f821ba93052a36f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1af3773661cae631777efa537c6d80966e8c9e336e5bf6c8721bb2c49f24fad2
MD5 748a0b8a11bee759cecc6e6138838268
BLAKE2b-256 5cf7080feacff06c63ff8cd5f1056dab742795cd06aafac593318e5134b48463

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8eec431738ba092974ceb559d562a14337f9755ca605149ce653c90954056d30
MD5 32218dd20b6a3a70bee992244ad30fbb
BLAKE2b-256 00900b3d7dc0ccf1689cd9e1219b581f324ebc46801a194602f617e467f67b3e

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.2-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.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2641c024bd6b6866b83cd5d301c841eb82ab0b863ce688bed1194047da60d539
MD5 c4e55140a4e6917487254c93c34b110f
BLAKE2b-256 a13c5011ebac1c23aa1f2ff49524b481e4c325cf25e56eeb4ed7fecda9e0cb57

See more details on using hashes here.

File details

Details for the file tree_sitter_gh_actions_expressions-0.1.2-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.2-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22a125c973de101bc2f948bfdc1350a3435bf68f46320f2167156cb5a0a2fa4b
MD5 afbac609b2c7cd8e792fd43ffbcc4ebd
BLAKE2b-256 5b8db44df9d347924f186bb256b73f29bd8e20f7df9ab9881a233e318b7f1b50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2800b611ae27571e063c93904940da0d393622b5b60d154cc0b038c0559e0e1
MD5 ae12f52cbd366a62aa4deb708195eca2
BLAKE2b-256 c81557088ccb4f34bde848fdd19e7f7bd7bc6a45c0c505fcc6332da4610f20d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_gh_actions_expressions-0.1.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7437a045dd4f5ce8e91c71d1f1a6d7919b3dc2f17315d9722c85c8d6155b1a6b
MD5 54d144b6102702d680f4055de3e9d26c
BLAKE2b-256 e107b88d7bf4c433a5180f371d5dbbb8a1d7e28eb54bb7057d68ede75be96dc6

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