]> git.eshelyaron.com Git - emacs.git/commit
Fix incompatibility with tree-sitter-javascript >= 0.20.2
authorVincenzo Pupillo <v.pupillo@gmail.com>
Thu, 1 Feb 2024 15:57:39 +0000 (16:57 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 11:04:55 +0000 (12:04 +0100)
commite352a5d0c363564b20f152b3a9414e8bf1da75f0
tree979e33aac0c4861f8a6d58e6d94ff6a684ef2f2c
parentfcfb1d8cbd27915c65de591deca39b26bbebb82e
Fix incompatibility with tree-sitter-javascript >= 0.20.2

Starting from version 0.20.2 the grammar's primary expression
"function" has been renamed to "function_expression".  A new
function checks if the new primary expression is available,
and if so, it returns the correct rules.
* lisp/progmodes/js.el
(js--treesit-font-lock-compatibility-definition-feature): New
function.
(js--treesit-font-lock-settings): Use it.  (Bug#68879)

(cherry picked from commit 2f69353e4a756cf53459c14c5618bd262331b568)
lisp/progmodes/js.el