]> git.eshelyaron.com Git - emacs.git/commit
Correctly handled the local parser for jsdoc (bug#75456)
authorVincenzo Pupillo <v.pupillo@gmail.com>
Mon, 3 Feb 2025 21:14:44 +0000 (22:14 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:40:58 +0000 (09:40 +0100)
commitfa874d2783c9e9f7ad9ff468a0f643368da2ac06
treea2c4482d97d514e37ac4340b54b73590f6ff89bb
parent20c02eb18b90dc2f6f3f81700b7a39f296cbc7c6
Correctly handled the local parser for jsdoc (bug#75456)

As a result of recent patches to treesitter, local parsers must
now be recognized by 'treesit-language-at-point' and have their
own indentation rules.

* lisp/progmodes/js.el
(js--treesit-indent-rules): New rule for jsdoc.
(js--treesit-language-at-point): New function.
(js-ts-mode): Use the new function.

(cherry picked from commit 4396f6414c2fb82cb8cee68420b658e376bb4e01)
lisp/progmodes/js.el