Skip to main content

Pact grammar for tree-sitter

Project description

tree-sitter-pact

tree-sitter grammar for pact smart contract language

Neovim setup (WIP)

I will create a PR to add this to the official nvim-treesitter repo once it's ready, for now you can use it by following these steps:

Clone the repo

git clone https://github.com/kadena-community/tree-sitter-pact.git

Add those to your init.lua

vim.filetype.add({
  extension = {
    pact = "pact",
    repl = "pact",
  },
})
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.pact = {
  install_info = {
    url = "~/path/to/c/tree-sitter-pact",
    files = { "src/parser.c" },
  },
  filetype = "pact",
}

Then run :TSInstall pact in neovim.

also you need to link the queries folder to your nvim config folder

mkdir -p ~/.config/nvim/after/queries/pact
ln ./queries/highlights.scm ~/.config/nvim/after/queries/pact/highlights.scm
ln ./queries/locals.scm ~/.config/nvim/after/queries/pact/locals.scm
ln ./queries/textobjects.scm ~/.config/nvim/after/queries/pact/textobjects.scm
ln ./queries/folds.scm ~/.config/nvim/after/queries/pact/folds.scm
ln ./queries/indents.scm ~/.config/nvim/after/queries/pact/indents.scm

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_pact-0.0.6.tar.gz (29.1 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_pact-0.0.6-cp39-abi3-win_arm64.whl (24.4 kB view details)

Uploaded CPython 3.9+Windows ARM64

tree_sitter_pact-0.0.6-cp39-abi3-win_amd64.whl (25.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_x86_64.whl (39.6 kB view details)

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

tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_aarch64.whl (42.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (42.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_pact-0.0.6-cp39-abi3-macosx_11_0_arm64.whl (23.4 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_pact-0.0.6-cp39-abi3-macosx_10_9_x86_64.whl (23.6 kB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_pact-0.0.6.tar.gz.

File metadata

  • Download URL: tree_sitter_pact-0.0.6.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.6

File hashes

Hashes for tree_sitter_pact-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e01e1ff31a163dd37ef9171f97e7a34ccd2fea6e840e524bd8ac3f459cc047e5
MD5 80ee0d3c7bb32c83f3e376293d3dbb5b
BLAKE2b-256 105d36e1d861a6a6c58c03edd5932e7d1eeb4664503365cd4f0bbb7f44f3226d

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 7d626796aba647445a86a3801539e24526570f741c300598575fcb9c618b5adf
MD5 253aa2bf40862bfcfffbb74da2056057
BLAKE2b-256 8d0fa9302c10d4ca2e34a969d46b682ee0776760af09018a78a5beee444cd1d9

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 21b43de3e82e0d63d063d2122dd6ee82f07051de32df95d96aee1bf2312d7a66
MD5 4a24ffa7a9f68a7fd5c8a12de6edb893
BLAKE2b-256 064287a2ca39b09ee258b57bd6987fbc8ca4a458c05095203502da1d671bde77

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8ef664b0b269561bae573e8fb6a1a2f824c4a1ab72a3dbb56a0353657b40b77f
MD5 ae5385b165ce0b1410eb65aeecc6512e
BLAKE2b-256 cbbf74f6ff1a72f5e71a97d5883f95480e8441529beb751a710c81b34a414e8a

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e482e5ba7bbb7ffebd4f7bcfb9d3f83b9c4dd9939042fbb1b84040594e8a382a
MD5 86adb089d797c41804b2f94dd12fb265
BLAKE2b-256 facb494386bb97c62bacd84ebb8e5754d201229277afc62e73ee457724eb0c5f

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5843348ccf414fd3899b3c322df6313198cd452c18ba69a2bf5011558b9f371e
MD5 42706d8c5e37de9166b827fade4b11c4
BLAKE2b-256 ac92e0fa0aab6ca93aa022a7621565cda028487bc7bc2e6a36b044af16b7635c

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5eac8d2f9cf65987e2b65729cd363a6164224dc99ab9ba7454682926258612b1
MD5 5418987e5412f2c442327cfacc13506a
BLAKE2b-256 9cf5d05222d7a728366f1e852d5e7a909e1380d1934318d45e8bc3cfaecef305

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 087af071c898836d8e91302c4cf1508429436dd46556dd5e1ff096327b997816
MD5 73aeba8dd0251da6934e5be51cbcbeb3
BLAKE2b-256 dcfc7e85507be3d58a70a5abce262fcb3c5151d4bfec26d96dc1a46c89f0b2eb

See more details on using hashes here.

File details

Details for the file tree_sitter_pact-0.0.6-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pact-0.0.6-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cfc2f1829288bf439f55b01ea04e0b05ae5f72f1650dd094a88b421f36efa4fb
MD5 f5d15e248289727eaba9c35a8d5328c8
BLAKE2b-256 d3aaa12b784ed2ecd4e4d3a378f088638d6b64ce061a6f98777ecb4f0ee7d330

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