emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Semantic font-lock for Java


From: Eric Ludlam
Subject: Re: Semantic font-lock for Java
Date: Sun, 2 Feb 2020 22:24:38 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 1/29/20 12:14 AM, Anand Tamariya wrote:
     > https://youtu.be/4UcPIdTJLOM .

    Note that Semantic will cache the AST between sessions, so if you've
    loaded that file before, it will just load the cache.

First use parse/build delay is an inescapable and acceptable  situation in Java world. Even popular IDEs like Eclipse do that. While Emacs will only parse current and relevant files, Eclipse insists on "building" the complete project.

    It is also
    very old, and at that time (around Java 1.4 or so) the language was
    still very easy to parse (it doesn't support generics, for instance).

Additional info - I've added support for annotations and generics. It's shown in the demo https://youtu.be/4UcPIdTJLOM?t=50 .
Only Enum is pending.


This is all very cool. Supporting font-lock had been often requested, seemed possible, but I never got to it. It's great to see the demo and that the tools were able to support it.

Thanks for sharing.
Eric



reply via email to

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