|
From: | Dmitry Gutov |
Subject: | bug#74610: 31.0.50; Submitting mhtml-ts-mode, treesitter alternative to mhtml-mode |
Date: | Wed, 4 Dec 2024 03:27:53 +0200 |
User-agent: | Mozilla Thunderbird |
On 29/11/2024 23:57, Vincenzo Pupillo wrote:
+;; This package provides `mhtml-ts-mode' which is a major mode +;; for editing HTML files with embedded JavaScript and CSS. +;; Tree Sitter is used to parse each of these languages. +;; +;; Please note that this package requires `html-ts-mode', which +;; registers itself as the major mode for editing HTML.
Hi!Do you foresee cases for when html-ts-mode would be preferred by the user instead of this advanced mhtml-ts-mode? Or maybe the former is better in its current shape when used by e.g. php-ts-mode?
In other words, I'm wondering why not update the existing mode with sub-parsers rather than add a new one. html-mode had such a reason - it's quite old, and has been used in various placed the way it is now (including multi-mode packages). But ts modes don't work too well with multi-mode packages, not currently anyway.
[Prev in Thread] | Current Thread | [Next in Thread] |