On Friday, July 17, 2020 at 7:01:34 AM UTC-5, Edward K. Ream wrote:

3. The @button mark-changed script won't work well with .json files. It 
> can't detect nodes that are candidates for being split.
>
> The script uses parse-body to mark nodes that are candidates for being 
> split. Alas, parse-body uses the importer for the language that is in 
> effect, but there is no .json importer, and never can be such a thing. Boo 
> hoo.
>

The great thing about writing is that it exposes assumptions.  One *can* 
imagine a .json importer.

It's probably not a great idea to assume that // is a valid comment delim, 
but it could be done in a pinch. Happily, it *might* work to use a "hidden" 
.json importer for parse-body. That is, a *public *json importer looks like 
a dubious idea, but a *private *json importer might work as a "hidden 
helper" for parse-body.

I don't plan to work on such an importer at present, but I'll consider it 
if you, Félix, think it would be useful.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/09e576fb-c513-452e-9958-4ff13e51f4dao%40googlegroups.com.

Reply via email to