From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec Date: Fri, 24 May 2019 08:49:55 -0800 Message-ID: <86blzrx0ek.fsf@stephe-leake.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="150569"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) Cc: 35124@debbugs.gnu.org, ada-mode-users@nongnu.org To: Ludovic Brenta Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 24 19:08:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUDgL-000d1i-V2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2019 19:08:38 +0200 Original-Received: from localhost ([127.0.0.1]:57695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUDgK-00046s-VM for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2019 13:08:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUDcW-0001D7-Iy for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 13:04:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUDRF-0006vB-PS for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 12:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33646) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUDRF-0006v2-ME for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 12:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUDRF-0001zS-Jc for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 12:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2019 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35124 X-GNU-PR-Package: emacs, ada-mode Original-Received: via spool by 35124-submit@debbugs.gnu.org id=B35124.15587167487595 (code B ref 35124); Fri, 24 May 2019 16:53:01 +0000 Original-Received: (at 35124) by debbugs.gnu.org; 24 May 2019 16:52:28 +0000 Original-Received: from localhost ([127.0.0.1]:47190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUDQh-0001yR-NK for submit@debbugs.gnu.org; Fri, 24 May 2019 12:52:27 -0400 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:37997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUDQd-0001y9-Qz for 35124@debbugs.gnu.org; Fri, 24 May 2019 12:52:26 -0400 Original-Received: from cmgw12.unifiedlayer.com (unknown [10.9.0.12]) by gproxy10.mail.unifiedlayer.com (Postfix) with ESMTP id E7F08143193 for <35124@debbugs.gnu.org>; Fri, 24 May 2019 10:50:03 -0600 (MDT) Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmsmtp with ESMTP id UDONhiY36mds9UDONhId6U; Fri, 24 May 2019 10:50:03 -0600 X-Authority-Reason: nr=8 X-Authority-Analysis: $(_cmae_reason Original-Received: from [76.77.182.20] (port=55270 helo=Takver4) by host114.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hUDON-002VTf-Ji; Fri, 24 May 2019 10:50:03 -0600 In-Reply-To: (Ludovic Brenta's message of "Wed, 03 Apr 2019 18:05:17 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host114.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1hUDON-002VTf-Ji X-Source-Sender: (Takver4) [76.77.182.20]:55270 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 3 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDExNC5ob3N0bW9uc3Rlci5jb20= X-Local-Domain: yes X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159719 Archived-At: Ludovic Brenta writes: > If you load a file consisting of these three lines: > > package Foo is > procedure P; > end Foo; > > then the second "Foo" is not syntax-highlighted. I can't reproduce this with this small file; font-lock requests that the entire buffer be parsed, so it is done correctly. With a larger file, so the start of the package is farther away than the default font-lock chunk size, the final package name is not highlighted. This is because the 'end Foo;' is extra text at the end of the partial parse, and the error recovery inserts 'begin', leaving a labeled block, in which the label is not highlighted. If the name has a '.', then it can't be a block label, and it might be possible to convince the error recovery to insert "package is begin" instead; I'll work on that. -- -- Stephe