]> git.eshelyaron.com Git - emacs.git/commit
Handle typescript ts grammar breaking change for function_expression
authorLoïc Lemaître <loic.lemaitre@gmail.com>
Sun, 11 Feb 2024 03:00:38 +0000 (05:00 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:00:46 +0000 (14:00 +0100)
commit0d785ba5d2ea91505d6ecf702cb2fb1374e63f37
tree65c84e49084583a01241d7a2d78739743f14ead3
parent51a5593def2d37c8ec118149e8b6e9f894219b4e
Handle typescript ts grammar breaking change for function_expression

Starting from version 0.20.4 of the typescript/tsx grammar, "function"
becomes "function_expression". The right expression is used depending
on the grammar version.

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-function-expression):
New function (bug#69024).
(typescript-ts-mode--font-lock-settings): Use it.

Copyright-paperwork-exempt: yes
(cherry picked from commit 9f9da26e0dcb242327af7cd8414fad7afedbbaa9)
lisp/progmodes/typescript-ts-mode.el