You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After thorough testing I can say that new grammar is mostly compatible with what we need in ApiDOM. Node.js bindings and compiled WASM integrates with other tree-sitter libraries. One incompatibility I've found is:
With old YAML grammar and old tree-sitter we correctly get error just on line 4. In new grammar and new tree-sitter we get Error Node for entire parsed string, and only within that Error Node there are other parsed nodes.
Current state of our YAML 1.2 lexical analysis is described in #194 (comment).
The goal of this issue is to determine if we can use https://github.com/tree-sitter-grammars/tree-sitter-yaml, as a drop it replacement. In https://github.com/tree-sitter-grammars/tree-sitter-yaml. In tree-sitter-grammars/tree-sitter-yaml@ee09311, the new grammar added support for error recovery, which was blocking us from upgrading tree-sitter infrasturcture.
Refs #194
Refs tree-sitter/tree-sitter#2339
This issue deals with tree-sitter GitHub org recommending new YAML grammar: tree-sitter/tree-sitter#3005
The text was updated successfully, but these errors were encountered: