|
From: | Perry E. Metzger |
Subject: | Re: How to add pseudo vector types |
Date: | Mon, 26 Jul 2021 15:19:20 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.0 |
On 7/26/21 15:06, Yuan Fu wrote:
Tree-sitter lets you set multiple discontinuous ranges, whereas narrowing can only narrow to a single continuous range. Multiple discontinuous range is much more useful for HTML+CSS+JS, or PHP + HML.
Other obvious uses: restructured text or markdown documentation amidst code in another language, various sorts of literate programming, etc.
(This of course brings up that someday it might be nice to have Emacs aware of such multi-modal text and able to switch how you're editing even inside a single file, but that's a bigger topic.)
Perry
[Prev in Thread] | Current Thread | [Next in Thread] |