Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Use of tree-sitter-tact or Ohm's grammar #10

Closed
novusnota opened this issue Mar 29, 2024 · 2 comments
Closed

Idea: Use of tree-sitter-tact or Ohm's grammar #10

novusnota opened this issue Mar 29, 2024 · 2 comments
Assignees

Comments

@novusnota
Copy link
Member

novusnota commented Mar 29, 2024

This may help with inference, and thus would remove most of the dirty regex work.

UPD: It should be really done in LSP, then re-used here alongside with the current options (which may then be called "legacy")

@novusnota novusnota self-assigned this Mar 29, 2024
@novusnota novusnota changed the title To consider: Use of tree-sitter-tact or Ohm's grammmar To consider: Use of tree-sitter-tact or Ohm's grammar Mar 29, 2024
@novusnota novusnota changed the title To consider: Use of tree-sitter-tact or Ohm's grammar Idea: Use of tree-sitter-tact or Ohm's grammar Mar 29, 2024
@anton-trunov
Copy link
Member

That would be awesome!

@novusnota
Copy link
Member Author

At the moment the idea is not very feasible as Vim Script has very poor FFI and it cannot bind. Additionally, calling Node.js scripts in the background provides a substantial overhead, which makes it only usable as a debounceable background diagnostic tool and a build tool (#11).

Therefore, neither Ohm from Tact's compiler nor Tree-sitter would or could replace the current RegExp-based logic of the plugin. However, this will: #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants