]> git.eshelyaron.com Git - emacs.git/commit
(js--treesit-font-lock-settings): Highlight parameters in function expression
authorDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 01:58:18 +0000 (03:58 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Dec 2023 19:12:33 +0000 (20:12 +0100)
commite618687cb8b589184e749390b46b950d6dc8319e
tree80eaab23f055dfbca90988fa679dab639131b7a6
parent05ef120808ca5fde632f9a18c971810866e4b5b5
(js--treesit-font-lock-settings): Highlight parameters in function expression

* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Highlight parameters in a function expression (the node type
'function').  Make the matcher for 'formal_parameters' independent
of the parent, that just created duplication.
lisp/progmodes/js.el