Closed thebinary closed 6 months ago
Apologies, seems like issue with smartparens-mode
. Since treesit-beginning-of-defun
and treesit-end-of-defun
functions are working correctly.
@thebinary there was a discussion about this on emacs-devel and think there are ways to make it work better together, but it won't happen soon.
I am not certain if this is an issue related to this particular
ts-mode
orsmartparens-mode
orelixir-treesitter
itself. But it seems like keywords inside docstrings are being parsed as keywords instead of simply taken as strings.With
smartparens-mode
active, the issue is visually reflected as some example screenshots given below:Correct parsing
Here, the
defmodule
begin and end is correctly parsed.Incorrent parsings due to keywords inside docstring
Here, the
defmodule
begin and end is MISLEAD byfor
string inside themoduledoc
Here, the
for
inside docstring is shown to have no end because ofdefmodule
string ahead of it inside themoduledoc
.