From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: Semantic font-lock for Java Date: Wed, 29 Jan 2020 10:44:13 +0530 Message-ID: References: <83eevsx1eh.fsf@gnu.org> <83wo9jtncf.fsf@gnu.org> <83iml1s3od.fsf@gnu.org> <83k15grflg.fsf@gnu.org> <87tv4kyelp.fsf@randomsample> <83iml0r5fw.fsf@gnu.org> <87pnf8y4i8.fsf@randomsample> <878slr5wfu.fsf@randomsample> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f1974c059d4069ba" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 29 06:15:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwfgq-000CCp-1g for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jan 2020 06:15:00 +0100 Original-Received: from localhost ([::1]:41128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwfgn-0005Uz-U0 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jan 2020 00:14:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37262) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwfgK-000561-1u for emacs-devel@gnu.org; Wed, 29 Jan 2020 00:14:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwfgI-0001HR-V2 for emacs-devel@gnu.org; Wed, 29 Jan 2020 00:14:27 -0500 Original-Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:37703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwfgH-0001BT-BC; Wed, 29 Jan 2020 00:14:25 -0500 Original-Received: by mail-io1-xd33.google.com with SMTP id k24so17182319ioc.4; Tue, 28 Jan 2020 21:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MGPw09DmqvyjWlGp8czEFrw+DAdZppgPvGd3IzLsHSc=; b=rpVdRpJHZSit/O5UZ+VzeVDDqdgwVRHd/433Wjvngnt3VykRJL1ANn1fdbvOnqsjpf +2yiGrdv65Odl8JXXmOqmpZq+g4whyQegFv0RaaUJy7+x1+W922jzEav6sTlbILTss3O tFJbyI8nNMmad1DhRRIBkfbvDi5ZialIzxny3qlLPOlB09UD0Sn7dGSpZcLkFEi70h48 MijZy33QiI3j+0GdSqboKyszEhvj6JstQojVONP4OyQuQP2E/hBSyYnoQ77sFlMq+wq8 Fi0ZFuSFFit5XRLOfANdU3CUvKdKeD+gkcpVOuD+kuRp46BJ5hMhh+M8Ay563oqSrj4H EM+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MGPw09DmqvyjWlGp8czEFrw+DAdZppgPvGd3IzLsHSc=; b=r3BeRxnaYqaW3G8FQ7V+ytD1d8fXKKjh+O6yhs3Sm2lJsC5NZOpFCb+8dunyXRDA/Z RWQnyb82aAgjm0qKrPuKcyCUttAH+j0S/28D4eLDt4cdVjnCAb3abXispuwH4LhJan3M WppRUEdsvVTKG9+5FL1MVlpVPH1FPitfFDXqFW36PHrePl6zvqMhHFJhtn5vp2qBkQpT i4OL0x9uWnnK6fhieOXpGMWXcN0g+qcCZOX5F7fRTNPn3r66iWgMKJE+i+Gc13CQE2eC HLrkycB2ytblz93TCFu8PmXVJ4YWkupgCa6VG9VJP/ChvBa/TFJrWDCIlgroQK2EjMax gj1A== X-Gm-Message-State: APjAAAWLWPaksxj/h/y7dWp7BcOrnb+UqQrsw01ERHRNcHNxRdslVSLo mpUp8IRHRoCoWNgi0+mjiRC4jsdj/14M9Y59FH6qqUekNMtgLw== X-Google-Smtp-Source: APXvYqzJ+fCtvd5tfqJq92Iobs1bmyqpKJVgihCz4LnfIfZmScjz4blCXFZQj9tImE9Ji8VQFzyViqb+KrPCR0lZwA0= X-Received: by 2002:a02:cd0d:: with SMTP id g13mr21255499jaq.110.1580274864459; Tue, 28 Jan 2020 21:14:24 -0800 (PST) In-Reply-To: <878slr5wfu.fsf@randomsample> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d33 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244735 Archived-At: --000000000000f1974c059d4069ba Content-Type: text/plain; charset="UTF-8" > > > 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. --000000000000f1974c059d4069ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> 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=C2=A0 situatio= n in Java world. Even popular IDEs like Eclipse do that.
While Em= acs will only parse current and relevant files, Eclipse insists on "bu= ilding" 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 annotation= s and generics. It's shown in the demo https://youtu.be/4UcPIdTJLOM?t=3D50 .
Onl= y Enum is pending.

--000000000000f1974c059d4069ba--