cathaysia / tree-sitter-loongdoc

loongdoc(asciidoc) parser and grammar for tree-sitter
https://cathaysia.github.io/tree-sitter-loongdoc/
Apache License 2.0
16 stars 2 forks source link

Useful for source map for AI tool? #27

Open minthemiddle opened 4 weeks ago

minthemiddle commented 4 weeks ago

I'm looking for treesitter for Asciidocs for adding support for Asciidoc in aider (a pair programming AI tool). The tree sitter is used to create repo maps that are then used as context. My thought was that headlines might be similar to function names and would be useful to be passed to context when writing.

How do you use this tree sitter here?
Do you think it could be used for this case?

Here are some links with context:

cathaysia commented 4 weeks ago

In fact, the reason I create this repo is to provide code highlight in neovim. I think you can use this repo in your case. But from my experience with tree-sitter-idl, almost all commits that cause ast changes will cause breaking changes. I think you may need to design your code carefully. Avoid large-scale code updates caused by tree-sitter-asciidoc updates