about summary refs log tree commit diff
path: root/RULES
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-12-19T21·29+0100
committerProfpatsch <mail@profpatsch.de>2021-01-01T22·40+0000
commit5a6f781c3efa21460657d14ee9c84fc4bb7e4832 (patch)
tree8861c5db9b375440dc0a080b05371d72a27a4891 /RULES
parentfdb47be7d73652142eb15ae978d5cb63313d346a (diff)
fix(emacs-tree-sitter-move): get named parents & check for nils r/2047
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
Diffstat (limited to 'RULES')
0 files changed, 0 insertions, 0 deletions