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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tree_sitter_pact-0.0.7.tar.gz.
File metadata
- Download URL: tree_sitter_pact-0.0.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c33fa3f5a034528fc63a754d946094310c998443f9ca9fae1bebfff5129dd98
|
|
| MD5 |
94ac646f726df26d3c582a8aaebfe052
|
|
| BLAKE2b-256 |
a49e025204d8692385683034092ffbcc166ce6c2c97c9427465837558ac0d48b
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-win_arm64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-win_arm64.whl
- Upload date:
- Size: 24.4 kB
- Tags: CPython 3.9+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b68a6fc6a82aa9c1369ee8b3c16245066f3b077ba7d5e6e29fff095215b31424
|
|
| MD5 |
95783585e11346aa32a322e9379f1f12
|
|
| BLAKE2b-256 |
f990ff115582885a53dbf4835b0e34b7b23239382dd42399013e73831b217455
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 25.9 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8dae0f3cde3a024d8b899e404b5d8a968f6077ab3b8fbae38d556fd0a88e4c1
|
|
| MD5 |
af9255faffe2a0bc3d4accbf32176135
|
|
| BLAKE2b-256 |
a7818899c739ae1e0db0d5b6be078fc8177d8aa44bf5e4f3ca6418ff43c1b258
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 39.6 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb8e355518ad40c06d262974cc1abf25fe274fe9ec2aa7a9f92573faccdbcced
|
|
| MD5 |
ae3fc34fcf5aaf8423ecd13156b73c88
|
|
| BLAKE2b-256 |
eeeae954d37fdd233122d873d8850395567b064d55fd40c617b28ebfddf875b4
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 42.3 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d528c584b69250c99908d055f3322af0abde80e563eb571ed29ff239edb47271
|
|
| MD5 |
3a8369cee47605cd274b484bbf023d3a
|
|
| BLAKE2b-256 |
3962c9880c5ed759bae97c7f64b6010c0a845db753ff3d07fd18e9caa9c62fa6
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 42.8 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e3b2a861c22690a9990481980696bde126e04e6ee8102c1168a3c7be51899a6
|
|
| MD5 |
fedbb93eeeb5cb26839c8d4f9cd454e2
|
|
| BLAKE2b-256 |
3e2f1bd11569e1fa0920decf390697de41b3f35d93127868d39c7c532e485393
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 43.0 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be94ad99cfe8e3cd5b1f0e9e7faf8981b84787b5a52ae7ae9e025233a4ab0e3d
|
|
| MD5 |
076ef1568bf3fb11f147adf16132d5de
|
|
| BLAKE2b-256 |
a4df8b1aa2eff51658901dcc470fa2c57208bb040b9bd2449b74d2f19f20c9a2
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 23.4 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ae1cfc0321fa2d769f89ec40666dd85270eb4e03728ed80c388c23b82582c8
|
|
| MD5 |
da81551f000da4c65985160aca5a777e
|
|
| BLAKE2b-256 |
fb2db3dc5b96f34ba277f928c5cb715ca4a2175fe1b08f1f427e31d742f1a2ca
|
File details
Details for the file tree_sitter_pact-0.0.7-cp39-abi3-macosx_10_9_x86_64.whl.
File metadata
- Download URL: tree_sitter_pact-0.0.7-cp39-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 23.6 kB
- Tags: CPython 3.9+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b9792b1c9f8bcbccb4d3e4ff7352816b66160b731e74cafa765bcf8e7051a7d
|
|
| MD5 |
69ce5eec4ce4b3e9f64fc04ca41820d7
|
|
| BLAKE2b-256 |
08f96d044526462235a8be00c0e9aee2e4e86d5afaa28404d8014766f6f65eca
|