[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58711: Treesit hangs when calling treesit-search-forward
From: |
Yuan Fu |
Subject: |
bug#58711: Treesit hangs when calling treesit-search-forward |
Date: |
Mon, 24 Oct 2022 13:19:25 -0700 |
>
> Thanks, I would need some time to have a proper look. The reporting issue
> seems to have been fixed. There are some complications to identify the
> appropriate node for defun in elixir as a "call" node might, or might not be
> defun, depending on its child identifier ( i currently have to do a query on
> cycling up the parent ), but will try the respond in more detail in another
> thread.
While fixing the hanging issue, I also improved treesit-beginning-of-defun,
which now first goes backward to find a node that matches
tresit-defun-type-regexp, then goes upward and finds the top-most parent
matching treesit-defun-type-regexp, IOW, it now only stops at top-level defun
matches. Does that help with your case?
Yuan