|
From: | Stefan Monnier |
Subject: | Re: Using incremental parsing in Emacs |
Date: | Sun, 05 Jan 2020 17:10:08 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> tree-sitter seems to designed to handle that case OOTB Or rather, my proposal was based on the "standard" way incremental parsing works (e.g. syntax-ppss works the same way). > As per tree-sitter docs: > > 1. You start parsing via ts_parser_parse(in a separate thread). > 2. Document is changed > 3. Call ts_parser_set_cancellation_flag The question is how quickly this stops the parsing: any delay here is very costly because the Elisp execution will have to sit idly waiting for the parser to stop before it can continue its own execution. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |