tree-sitter-pact


Nametree-sitter-pact JSON
Version 0.0.8 PyPI version JSON
download
home_pageNone
SummaryPact grammar for tree-sitter
upload_time2024-11-22 13:58:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT
keywords incremental parsing tree-sitter pact
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

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

Add those to your init.lua

``` 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

``` bash
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
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tree-sitter-pact",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "incremental, parsing, tree-sitter, pact",
    "author": null,
    "author_email": "Salama Ashoush <salamaashoush@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ef/a0/c86512bfc096c6228987ba80012ddb55dbbb666bb1a7061cedbf93c8380e/tree_sitter_pact-0.0.8.tar.gz",
    "platform": null,
    "description": "# tree-sitter-pact\n\ntree-sitter grammar for pact smart contract language\n\n\n\n## Neovim setup (WIP)\n\nI 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:\n\nClone the repo\n\n``` bash\ngit clone https://github.com/kadena-community/tree-sitter-pact.git\n```\n\nAdd those to your init.lua\n\n``` lua\nvim.filetype.add({\n  extension = {\n    pact = \"pact\",\n    repl = \"pact\",\n  },\n})\nlocal parser_config = require(\"nvim-treesitter.parsers\").get_parser_configs()\nparser_config.pact = {\n  install_info = {\n    url = \"~/path/to/c/tree-sitter-pact\",\n    files = { \"src/parser.c\" },\n  },\n  filetype = \"pact\",\n}\n```\n\nThen run `:TSInstall pact` in neovim.\n\nalso you need to link the queries folder to your nvim config folder\n\n``` bash\nmkdir -p ~/.config/nvim/after/queries/pact\nln ./queries/highlights.scm ~/.config/nvim/after/queries/pact/highlights.scm\nln ./queries/locals.scm ~/.config/nvim/after/queries/pact/locals.scm\nln ./queries/textobjects.scm ~/.config/nvim/after/queries/pact/textobjects.scm\nln ./queries/folds.scm ~/.config/nvim/after/queries/pact/folds.scm\nln ./queries/indents.scm ~/.config/nvim/after/queries/pact/indents.scm\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pact grammar for tree-sitter",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/tree-sitter/tree-sitter-pact"
    },
    "split_keywords": [
        "incremental",
        " parsing",
        " tree-sitter",
        " pact"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25c9c5863bbee3be2082465fbda5356dda27728f587c57c1924b63d1dd7b4d85",
                "md5": "aaa27173270c4bbccc6aa39bd59b4fcd",
                "sha256": "abbdfef591b323df9223fc9fe11fd3cc08c0efa76ad3c5846dcbd8c67c786b9e"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "aaa27173270c4bbccc6aa39bd59b4fcd",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 23570,
            "upload_time": "2024-11-22T13:58:10",
            "upload_time_iso_8601": "2024-11-22T13:58:10.124980Z",
            "url": "https://files.pythonhosted.org/packages/25/c9/c5863bbee3be2082465fbda5356dda27728f587c57c1924b63d1dd7b4d85/tree_sitter_pact-0.0.8-cp39-abi3-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f25e02750163e20b843729959e8b78c73fc72cec25f16ae9fb2e6e7c08106921",
                "md5": "62b2e1cc27d8d73c32c946cb83fbd686",
                "sha256": "f22060f85bd51ac7512eef1525f619391e4bc8af36eeaeed5a6b664d29deb3f2"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "62b2e1cc27d8d73c32c946cb83fbd686",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 23330,
            "upload_time": "2024-11-22T13:58:11",
            "upload_time_iso_8601": "2024-11-22T13:58:11.142730Z",
            "url": "https://files.pythonhosted.org/packages/f2/5e/02750163e20b843729959e8b78c73fc72cec25f16ae9fb2e6e7c08106921/tree_sitter_pact-0.0.8-cp39-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab8d20b3ba7171638192cd26d0ac43c9db589b6e043fc1f11cded2b43b117287",
                "md5": "9cdb84cdfd83f24663b0459a611fb24a",
                "sha256": "672c497d40fad5417ed4f7ac6009038ff05df915fdc765541e3b9d85b0635b01"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "9cdb84cdfd83f24663b0459a611fb24a",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 42812,
            "upload_time": "2024-11-22T13:58:12",
            "upload_time_iso_8601": "2024-11-22T13:58:12.092283Z",
            "url": "https://files.pythonhosted.org/packages/ab/8d/20b3ba7171638192cd26d0ac43c9db589b6e043fc1f11cded2b43b117287/tree_sitter_pact-0.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d9bfdd2753c0726993b3f297992c22507555a0645785ceb0317cadc760ba347",
                "md5": "6dcf791e6151ed2a0010d2dce0d4eba3",
                "sha256": "5046304393d826349bbb08592ace0b1cbf979941db4ae9f4188af4da89c778db"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "6dcf791e6151ed2a0010d2dce0d4eba3",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 43014,
            "upload_time": "2024-11-22T13:58:13",
            "upload_time_iso_8601": "2024-11-22T13:58:13.267935Z",
            "url": "https://files.pythonhosted.org/packages/2d/9b/fdd2753c0726993b3f297992c22507555a0645785ceb0317cadc760ba347/tree_sitter_pact-0.0.8-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aec40aea75d6cacffa75ace8f30571d9fec02dfacc694818b59306e57b9fd0bd",
                "md5": "d4213df7d02806859a00f0430027b537",
                "sha256": "08c0e49aa7b3536e882acdf45ca1cc3c309a6d1b4ef9cfe86f3d84be22189732"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d4213df7d02806859a00f0430027b537",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 39558,
            "upload_time": "2024-11-22T13:58:14",
            "upload_time_iso_8601": "2024-11-22T13:58:14.953479Z",
            "url": "https://files.pythonhosted.org/packages/ae/c4/0aea75d6cacffa75ace8f30571d9fec02dfacc694818b59306e57b9fd0bd/tree_sitter_pact-0.0.8-cp39-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5166a042018e5ae9e6199451e0fc58b6c3d20aae10a24cdbbebfa34557bb3a6e",
                "md5": "e7ede039a668d59cc9de122d7be3a9ff",
                "sha256": "ce7e2ac47b229af08b62eddb77e49ee596e1484a66ddd4dce30db8710512db89"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e7ede039a668d59cc9de122d7be3a9ff",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 25904,
            "upload_time": "2024-11-22T13:58:16",
            "upload_time_iso_8601": "2024-11-22T13:58:16.526117Z",
            "url": "https://files.pythonhosted.org/packages/51/66/a042018e5ae9e6199451e0fc58b6c3d20aae10a24cdbbebfa34557bb3a6e/tree_sitter_pact-0.0.8-cp39-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe3e7e2ff472cfac4ba5cc0ec91634a63d793faf074401a3585d05ebbe9ce3c7",
                "md5": "e327d7e441540dd34d5e3875b79b5667",
                "sha256": "f7b388c54d604d664208a4e6acf0d4301429c7df3d5fd94d77ba120cf1ef7ea4"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8-cp39-abi3-win_arm64.whl",
            "has_sig": false,
            "md5_digest": "e327d7e441540dd34d5e3875b79b5667",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 24409,
            "upload_time": "2024-11-22T13:58:17",
            "upload_time_iso_8601": "2024-11-22T13:58:17.419758Z",
            "url": "https://files.pythonhosted.org/packages/fe/3e/7e2ff472cfac4ba5cc0ec91634a63d793faf074401a3585d05ebbe9ce3c7/tree_sitter_pact-0.0.8-cp39-abi3-win_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efa0c86512bfc096c6228987ba80012ddb55dbbb666bb1a7061cedbf93c8380e",
                "md5": "31e14b5d2d2b80efd82cb325a9a9bc09",
                "sha256": "6ea41e039132722e065e50f10a393f6b00c42dbf0788e73f6cbf159547a5287e"
            },
            "downloads": -1,
            "filename": "tree_sitter_pact-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "31e14b5d2d2b80efd82cb325a9a9bc09",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 29045,
            "upload_time": "2024-11-22T13:58:18",
            "upload_time_iso_8601": "2024-11-22T13:58:18.318666Z",
            "url": "https://files.pythonhosted.org/packages/ef/a0/c86512bfc096c6228987ba80012ddb55dbbb666bb1a7061cedbf93c8380e/tree_sitter_pact-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-22 13:58:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tree-sitter",
    "github_project": "tree-sitter-pact",
    "github_not_found": true,
    "lcname": "tree-sitter-pact"
}
        
Elapsed time: 5.02339s