{"_id":"@cap-js-community/tree-sitter-cds","_rev":"9-14a081d8dc7d5b45439e3365afc5f6e5","name":"@cap-js-community/tree-sitter-cds","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cap-js-community/tree-sitter-cds","version":"1.0.0","keywords":["CAP","CDS","parser","lexer","tree-sitter"],"author":{"name":"Andre Meyering","email":"andre.meyering@sap.com"},"license":"Apache-2.0","_id":"@cap-js-community/tree-sitter-cds@1.0.0","homepage":"https://github.com/cap-js-community/tree-sitter-cds#readme","bugs":{"url":"https://github.com/cap-js-community/tree-sitter-cds/issues"},"dist":{"shasum":"542c805e89e12cc5df946a342f4ae2c58ab2f384","tarball":"https://registry.npmjs.org/@cap-js-community/tree-sitter-cds/-/tree-sitter-cds-1.0.0.tgz","fileCount":19,"integrity":"sha512-0uJZRXrrQj3her9KpXkXzhJwoSo0ijnon0UWHL05W2JYjizkxawI04tZuHwkd4Ff9HAnyQQfuMVG4XK55zz82Q==","signatures":[{"sig":"MEUCIQCN4a902fpBYcePUpOl1JNtq6pfMm9YjKhlAPrTQZYBzAIgF7r7vnl0pMfhBlBjVxhHCmP7HDwFt/dGNJQ08jAKaNs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4200271},"main":"bindings/node","types":"bindings/node","engines":{"node":">=18.0.0"},"gitHead":"2d5c5005470a58038e6ec53fedd9a5cee2d5b7d1","scripts":{"lint":"eslint .","test":"tree-sitter test","build":"tree-sitter generate && node-gyp configure && node-gyp build","install":"node-gyp-build","test:all":"npm run test && npm run test:queries && npm run test:shellcheck","playground":"npm run build && tree-sitter build-wasm && tree-sitter playground","prebuildify":"prebuildify --napi --strip","test:update":"tree-sitter test --update","log:versions":"which tree-sitter && tree-sitter --version","test:queries":"./tools/checks/test_queries.sh","test:shellcheck":"./tools/checks/run_shellcheck.sh"},"_npmUser":{"name":"chgeo","email":"christian.georgi@sap.com"},"repository":{"url":"git+https://github.com/cap-js-community/tree-sitter-cds.git","type":"git"},"_npmVersion":"10.7.0","description":"tree-sitter grammar for SAP CAP CDS","directories":{},"tree-sitter":[{"scope":"source.cds","file-types":["cds","cdl"],"highlights":["queries/highlights.scm"],"injection-regex":"^(cds)$"}],"_nodeVersion":"18.20.3","dependencies":{"node-addon-api":"^8.0.0","node-gyp-build":"^4.8.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.0.0","@eslint/js":"^9.0.0","prebuildify":"^6.0.0","tree-sitter-cli":"^0.22.2"},"peerDependencies":{"tree-sitter":"^0.21.0"},"peerDependenciesMeta":{"tree_sitter":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/tree-sitter-cds_1.0.0_1719324756834_0.16913496977865772","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2024-06-25T14:12:36.712Z","modified":"2026-06-12T13:40:10.600Z","1.0.0":"2024-06-25T14:12:37.061Z"},"bugs":{"url":"https://github.com/cap-js-community/tree-sitter-cds/issues"},"author":{"name":"Andre Meyering","email":"andre.meyering@sap.com"},"license":"Apache-2.0","homepage":"https://github.com/cap-js-community/tree-sitter-cds#readme","keywords":["CAP","CDS","parser","lexer","tree-sitter"],"repository":{"url":"git+https://github.com/cap-js-community/tree-sitter-cds.git","type":"git"},"description":"tree-sitter grammar for SAP CAP CDS","maintainers":[{"name":"cap-npm","email":"cap@sap.com"},{"name":"sap_extncrepos","email":"mob.extrepo.stores@sap.com"},{"name":"sap-ospo-admin","email":"ospo@sap.com"}],"readme":"[![REUSE status](https://api.reuse.software/badge/github.com/cap-js-community/tree-sitter-cds)](https://api.reuse.software/info/github.com/cap-js-community/tree-sitter-cds)\n\n# tree-sitter-cds\n\n## About this project\n\nCAP CDS grammar for tree-sitter.\n\n> Tree-sitter is a parser generator tool and an incremental parsing library.\n> It can build a concrete syntax tree for a source file and efficiently update the\n> syntax tree as the source file is edited. Tree-sitter aims to be:\n\n - https://tree-sitter.github.io/tree-sitter/\n\nYou can use tree-sitter-cds to highlight CAP CDS files in Neovim and\nto query the concrete syntax tree of CDS files.\n\nThis project followed the instructions of the [tree-sitter guide].\n\n<img alt=\"Screenshot of Neovim. A CDS file is opened and has proper syntax highlighting.\" title=\"Neovim Syntax Highlighting Example\" src=\"./docs/assets/neovim-syntax-highlighting.png\" align=\"right\" width=\"201\" height=\"224\" />\n\n\n## Documentation\n\nPlease refer to the `docs/` folder.  It contains:\n\n- [Development](./docs/development.md)\n- [Contributing](./CONTRIBUTING.md)\n- [Neovim Support](./docs/neovim-support.md)\n- [CDS Compiler Differences](./docs/cds-compiler-differences.md)\n\n\n## Download and Installation\n\nIf you want to use tree-sitter-cds in Neovim for syntax highlighting,\nplease see [Neovim Support](./docs/neovim-support.md) for an\ninstallation guide.\n\nDocumentation on Node.js and Rust language bindings is work-in-progress.\n\n\n## Requirements\n\nIf you want to use tree-sitter-cds in Neovim for syntax highlighting,\nplease see [Neovim Support](./docs/neovim-support.md) for requirements.\n\nFor local development setup, see [Development Docs](./docs/development.md).\n\n\n## How to obtain support\n\nThis project is open to feature requests/suggestions, bug reports etc.\nvia [GitHub issues](https://github.com/cap-js-community/tree-sitter-cds/issues).\n\nContribution and feedback are encouraged and always welcome.\nFor more information about how to contribute, the project structure,\nas well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md)\nas well as our [development documentation](./docs/development.md).\n\n## Features & Roadmap\n\nThis project contains a tree-sitter grammar for [CAP CDS](https://cap.cloud.sap/).\n\nThe main goal of this project it to provide syntax highlighting, e.g. for [Neovim](./docs/neovim-support.md).\n\nIt is _not_ a 100% CAP CDS compatible parser. There are places that this grammar\ncan't parse properly, yet.   There is also no error reporting by tree-sitter and\nthe syntax tree can change any time, as this project is not complete, yet.\n\nIn the future, we may try to add support for [stack-graphs by GitHub][stack-graphs].\n\n## Code of Conduct\n\nWe as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](CODE_OF_CONDUCT.md) at all times.\n\n## Licensing\n\nCopyright 2024 SAP SE or an SAP affiliate company and tree-sitter-cds contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/cap-js-community/<your-project>).\n\n[tree-sitter guide]: https://tree-sitter.github.io/tree-sitter/creating-parsers\n[stack-graphs]: https://github.blog/2021-12-09-introducing-stack-graphs/\n","readmeFilename":"README.md"}