GNU bug report logs - #34042
26.1; ada-mode 6.0.0 reports false positives for syntax errors

Previous Next

Package: emacs;

Reported by: Ludovic Brenta <ludovic <at> ludovic-brenta.org>

Date: Fri, 11 Jan 2019 17:09:01 UTC

Severity: normal

Tags: notabug

Found in version 26.1

Done: Ludovic Brenta <ludovic <at> ludovic-brenta.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34042 in the body.
You can then email your comments to 34042 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to ada-mode-users <at> nongnu.org, bug-gnu-emacs <at> gnu.org:
bug#34042; Package emacs. (Fri, 11 Jan 2019 17:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Brenta <ludovic <at> ludovic-brenta.org>:
New bug report received and forwarded. Copy sent to ada-mode-users <at> nongnu.org, bug-gnu-emacs <at> gnu.org. (Fri, 11 Jan 2019 17:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; ada-mode 6.0.0 reports false positives for syntax errors
Date: Fri, 11 Jan 2019 18:08:04 +0100
Package: emacs
Version: 26.1
X-Debbugs-CC: ada-mode-users <at> nongnu.org

When a subprogram body lacks a designator on its "end" line,
ada-mode 6.0.0 incorrectly reports that the line containing the
subprogram_specification contains a syntax error. Example:

procedure Foo is
begin
  null;
end;

C-c C-f jumps to Foo and says:
foo.ada:1:11: block name error foo.ada:1:1

Is there an option to make the parser happy?

-- 
Ludovic Brenta.




Added tag(s) notabug. Request was from Ludovic Brenta <ludovic <at> ludovic-brenta.org> to control <at> debbugs.gnu.org. (Fri, 13 Dec 2019 13:35:02 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Brenta <ludovic <at> ludovic-brenta.org>:
You have taken responsibility. (Fri, 13 Dec 2019 13:35:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Brenta <ludovic <at> ludovic-brenta.org>:
bug acknowledged by developer. (Fri, 13 Dec 2019 13:35:03 GMT) Full text and rfc822 format available.

Message #12 received at 34042-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
To: 34042-done <at> debbugs.gnu.org, control <at> debbugs.gnu.org
Subject: Re: bug#34042: 26.1; ada-mode 6.0.0 reports false positives for
 syntax errors
Date: Fri, 13 Dec 2019 14:34:45 +0100
tags 34042 notabug
thanks

The variable ada-end-name-optional, when t, suppresses the
syntax errors.  So, the syntax errors were intentional and
ada-mode worked as designed.

-- 
Ludovic Brenta.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 11 Jan 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.