diff options
| author | Yuan Fu | 2023-09-08 09:09:14 -0700 |
|---|---|---|
| committer | Yuan Fu | 2023-09-08 09:09:14 -0700 |
| commit | 98f98c66e0875eda1b9239d93ec03cefd3cee85e (patch) | |
| tree | 17ee6adfd7bf079f0d0d93909fc1a5e595cb025d | |
| parent | 2db725fb243b4310b7fea19af4c2f01cb4a7e0f6 (diff) | |
| download | emacs-98f98c66e0875eda1b9239d93ec03cefd3cee85e.tar.gz emacs-98f98c66e0875eda1b9239d93ec03cefd3cee85e.zip | |
; * lisp/treesit.el (treesit--indent-1): Get all parsers.
| -rw-r--r-- | lisp/treesit.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el index 63ec880b601..1711446b40b 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el | |||
| @@ -1627,7 +1627,7 @@ Return (ANCHOR . OFFSET). This function is used by | |||
| 1627 | (cond ((null (treesit-parser-list)) nil) | 1627 | (cond ((null (treesit-parser-list)) nil) |
| 1628 | (local-parsers (treesit-node-at | 1628 | (local-parsers (treesit-node-at |
| 1629 | bol (car local-parsers))) | 1629 | bol (car local-parsers))) |
| 1630 | ((eq 1 (length (treesit-parser-list))) | 1630 | ((eq 1 (length (treesit-parser-list nil nil t))) |
| 1631 | (treesit-node-at bol)) | 1631 | (treesit-node-at bol)) |
| 1632 | ((treesit-language-at (point)) | 1632 | ((treesit-language-at (point)) |
| 1633 | (treesit-node-at bol (treesit-language-at (point)))) | 1633 | (treesit-node-at bol (treesit-language-at (point)))) |