]> git.eshelyaron.com Git - emacs.git/commit
Signal error on wrong typescript dialect
authorTheodor Thornhill <theo@thornhill.no>
Sun, 21 Jul 2024 11:55:49 +0000 (13:55 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:38:53 +0000 (12:38 +0200)
commit824e79a5f1226eee9bd04bdda98f9c5b78835b88
treea7bd367e5422f4dceab77b725ea9e48e4f622470
parentec1bf96a761b7471c531461c070e34a0584ef6e2
Signal error on wrong typescript dialect

*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode-wrong-dialect-error):
New error.

*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--check-dialect):
Helper function.

*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules,
tsx-ts-mode--font-lock-compatibility-bb1f97b,
tsx-ts-mode--font-lock-compatibility-function-expression,
tsx-ts-mode--font-lock-compatibility-function-expression,
typescript-ts-mode--font-lock-settings): Use the new helper.

(cherry picked from commit 7a059ed88a13d660cc5eb20f5fa6a2903ed23247)
lisp/progmodes/typescript-ts-mode.el