]> 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)
committerDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 01:58:18 +0000 (03:58 +0200)
commit83ed9018ede57f6ef0e3645147fdb529490268fc
tree1245d3205e8fa155a612f63b7d494d1580bd9cb2
parentad0f87bb4c3f432b05ec20eaccf2cef2ab7f6d61
(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