Instead, package_declaration replaces it. This provides better folding in nvim: otherwise, the final ';' was not part of the tree node, and thus the last line "end P;" was not folded.
29 lines
733 B
JSON
29 lines
733 B
JSON
{
|
|
"name": "tree-sitter-ada",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"tree-sitter": "0.20.0",
|
|
"tree-sitter-cli": "0.20.7"
|
|
},
|
|
"scripts": {
|
|
"generate": "tree-sitter generate",
|
|
"test": "tree-sitter generate && time tree-sitter test",
|
|
"testquick": "time tree-sitter test",
|
|
"update-test": "tree-sitter test --update",
|
|
"install": "cp queries/*scm ~/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/ada; echo 'RUN :TSInstall ada' in nvim"
|
|
},
|
|
"main": "bindings/node",
|
|
"tree-sitter": [
|
|
{
|
|
"scope": "source.ada",
|
|
"file-types": [
|
|
"adb", "ads"
|
|
],
|
|
"highlights": [
|
|
"queries/highlights.scm"
|
|
]
|
|
}
|
|
]
|
|
}
|