diff options
author | Vincenzo Pupillo <v.pupillo@gmail.com> | 2024-02-01 16:57:39 +0100 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-02-03 11:14:44 +0200 |
commit | 2f69353e4a756cf53459c14c5618bd262331b568 (patch) | |
tree | 424b5193d12e3e2ef4a01b35e16f044f62f688f7 /lisp/emacs-lisp/eldoc.el | |
parent | d49124fc14b0bb37617b34b5839f873cea3817c8 (diff) | |
download | emacs-2f69353e4a756cf53459c14c5618bd262331b568.tar.gz emacs-2f69353e4a756cf53459c14c5618bd262331b568.tar.bz2 emacs-2f69353e4a756cf53459c14c5618bd262331b568.zip |
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)
Diffstat (limited to 'lisp/emacs-lisp/eldoc.el')
0 files changed, 0 insertions, 0 deletions