https://github.com/ravsii/tree-sitter-d2
Tree-sitter for d2lang
https://github.com/ravsii/tree-sitter-d2
Last synced: 2 months ago
JSON representation
Tree-sitter for d2lang
- Host: GitHub
- URL: https://github.com/ravsii/tree-sitter-d2
- Owner: ravsii
- License: mit
- Created: 2023-06-06T17:43:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T06:14:51.000Z (2 months ago)
- Last Synced: 2025-04-09T07:24:18.331Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.2 MB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-d2
&branch=main)
This is an alternative to pleshevskiy's [tree-sitter-d2](https://github.com/pleshevskiy/tree-sitter-d2) ([updated version](https://git.pleshevski.ru/pleshevskiy/tree-sitter-d2)).
**WIP, THIS IS NOT USABLE YET**
## There's an alternative, why?
pleshivsky's version handles other locales and spaces very poorly.
Markdown is just a mess:
Missing highlighting on `style` block, ID and cyrillic using differeny scopes. Second shape (`Заказ`) is parsed as `ERROR`, but it's obviously correct.
## Note
I've never done anything remotely close to parsing grammar, so there could be some bad patterns and simply bad code. Feel free to open issues.