[Top][All Lists]

[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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]