[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-tree-sitter and Emacs
From: |
Eli Zaretskii |
Subject: |
Re: emacs-tree-sitter and Emacs |
Date: |
Thu, 02 Apr 2020 18:15:41 +0300 |
> From: Michael Welsh Duggan <address@hidden>
> Cc: Stephen Leake <address@hidden>, address@hidden
> Date: Thu, 02 Apr 2020 10:27:23 -0400
>
> > But why do you need that initial full parse in the first place? Is
> > parsing parts of the buffer so much harder?
>
> I would think that you at least need to parse everything displayed and
> everything before what is displayed. (You need all prior context. What
> if someone opened a comment on line 1 and hasn't closed it, for
> example?)
Each buffer always knows which part of it remains unchanged. When
fontification is invoked, it should start from that place. So there's
no need to parse _all_ prior context.
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/04/01
- Re: emacs-tree-sitter and Emacs, Stephen Leake, 2020/04/01
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Michael Welsh Duggan, 2020/04/02
- Re: emacs-tree-sitter and Emacs,
Eli Zaretskii <=
- Re: emacs-tree-sitter and Emacs, Michael Welsh Duggan, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Michael Welsh Duggan, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Yuan Fu, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Stefan Monnier, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Yuan Fu, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Stefan Monnier, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Stephen Leake, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/04/02
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/04/02