ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
395 stars 16 forks source link

Explicit error when an `ERROR` node is present during editing operations #26

Open ethan-leba opened 2 years ago

ethan-leba commented 2 years ago

(Elisp)-tree-sitter represents sections of the code it cannot parse as ERRORsymbol tokens. Currently the parser will fail as if a transformation is invalid if any ERROR tokens are present. Instead, we should check if the tokens in an operation contain ERROR, and alert the user that their code is malformed if so.