[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for
From: |
Steinar Bang |
Subject: |
Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx? |
Date: |
Sat, 13 Jan 2024 08:30:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
>>>>> Steinar Bang <sb@dod.no>:
>>>>> Dmitry Gutov <dmitry@gutov.dev>:
>> but some features (like tag splitting?) might have to be reimplemented
>> anew. Should be easier to do that using tree-sitter parse tree than
>> with sgml-mode. Perhaps if rjsx-mode has an implementation, it
>> wouldn't be too hard to port it.
> I'll do a dive into the rjsx code and see if I can identify where it
> does tag splitting and post back on the thread here.
Harder than I thought... parsing and manipulation of the buffer seems
interweaved, but perhaps here:
https://github.com/felipeochoa/rjsx-mode/blob/master/rjsx-mode.el#L452
If you have something like
<Home/>
and you type a ">" after "Home", i.e.
<Home></>
then the "</>" is immediately expanded to "</Home>"
<Home></Home>
And it, sort of, kind of, looks like the above code is the one doing it,
maybe...?
(Couldn't figure out where js2-DIV and friends were defined so I don't
know what it matches)
- JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?, Steinar Bang, 2024/01/09
- Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?, Dmitry Gutov, 2024/01/09
- Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?, Steinar Bang, 2024/01/10
- Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?,
Steinar Bang <=
- Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?, Dmitry Gutov, 2024/01/14
- Re: JavaScript/TypeScript: What do people in 2024, on emacs 29, use for .js, .jsx, .ts and .tsx?, Steinar Bang, 2024/01/22