[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using incremental parsing in Emacs
From: |
Eli Zaretskii |
Subject: |
Re: Using incremental parsing in Emacs |
Date: |
Mon, 06 Jan 2020 08:11:35 +0200 |
User-agent: |
K-9 Mail for Android |
On January 6, 2020 7:55:02 AM GMT+02:00, HaiJun Zhang <address@hidden> wrote:
> In the test cpp file, there is a “/*” at the beginning and no “*/“ in
> the file. So all contents of the file are comment. If it doesn’t parse
> from the beginning of the file, how can it known they are comment when
> the point is at the end of buffer?
>
That's up to the fontification-functions the display engine calls. The major
mode defines its fontification function, and that function can look before and
after the chunk passed to it. In the case of your file, look in CC Mode to see
what it does
- Re: Using incremental parsing in Emacs, (continued)
- RE: Using incremental parsing in Emacs, arthur miller, 2020/01/05
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/05
- RE: Using incremental parsing in Emacs, arthur miller, 2020/01/05
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/05
- Re: Using incremental parsing in Emacs, HaiJun Zhang, 2020/01/05
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/06
- Re: Using incremental parsing in Emacs, HaiJun Zhang, 2020/01/06
- Re: Using incremental parsing in Emacs,
Eli Zaretskii <=
- Re: Using incremental parsing in Emacs, arthur miller, 2020/01/06
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/07
- Re: Using incremental parsing in Emacs, arthur miller, 2020/01/08
- Re: Using incremental parsing in Emacs, Stefan Monnier, 2020/01/06
- Re: Using incremental parsing in Emacs, HaiJun Zhang, 2020/01/06
- Re: Using incremental parsing in Emacs, arthur miller, 2020/01/06
Re: Using incremental parsing in Emacs, Anand Tamariya, 2020/01/06
RE: Using incremental parsing in Emacs, HaiJun Zhang, 2020/01/03