tvl-depot/users/Profpatsch/emacs-tree-sitter-move
Profpatsch 5a6f781c3e fix(emacs-tree-sitter-move): get named parents & check for nils
If there was no parent, the while loop would try to get the parent of
a `nil`, which crashes and burns.

We now also ignore any non-named parents; this might be unnecessary,
if tree-sitter parent nodes are always named, but I don’t know that at
the moment and it’s not documented very well, so better safe than
sorry.

Change-Id: Ia72ee9241b885ab312f8ecf7a8fbfece7eea8f1b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2263
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2021-01-01 22:40:38 +00:00
..
default.nix feat(users/Profpatsch): moving around via the tree-sitter parse tree 2021-01-01 19:03:30 +00:00
shell.nix feat(users/Profpatsch): moving around via the tree-sitter parse tree 2021-01-01 19:03:30 +00:00
test.py feat(users/Profpatsch): moving around via the tree-sitter parse tree 2021-01-01 19:03:30 +00:00
tmp.el feat(emacs-tree-sitter-move): load more than one tree sitter grammar 2021-01-01 22:40:38 +00:00
tree-sitter-move.el fix(emacs-tree-sitter-move): get named parents & check for nils 2021-01-01 22:40:38 +00:00