Fall back to typescript-mode for *.tsx #2252
This commit is contained in:
parent
a488c308bb
commit
5c45a9eff9
2 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
;;; lang/web/+html.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! web-mode
|
||||
;; REVIEW We associate TSX files with `web-mode' because `typescript-mode'
|
||||
;; does not officially support JSX/TSX. See
|
||||
;; https://github.com/emacs-typescript/typescript.el/issues/4
|
||||
:mode "\\.\\(?:as\\(?:[cp]x\\)\\|blade\\.php\\|erb\\|hbs\\|j\\(?:inja\\|sp\\)\\|mustache\\|p?html?\\|svelte\\|t\\(?:pl\\.php\\|sx\\|wig\\)\\|vue\\)\\'"
|
||||
:mode "wp-content/themes/.+/.+\\.php\\'"
|
||||
:mode "templates/.+\\.php\\'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue