unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34042: 26.1; ada-mode 6.0.0 reports false positives for syntax errors
@ 2019-01-11 17:08 Ludovic Brenta
  2019-12-13 13:34 ` Ludovic Brenta
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Brenta @ 2019-01-11 17:08 UTC (permalink / raw)
  To: 34042; +Cc: ada-mode-users

Package: emacs
Version: 26.1
X-Debbugs-CC: ada-mode-users@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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#34042: 26.1; ada-mode 6.0.0 reports false positives for syntax errors
  2019-01-11 17:08 bug#34042: 26.1; ada-mode 6.0.0 reports false positives for syntax errors Ludovic Brenta
@ 2019-12-13 13:34 ` Ludovic Brenta
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Brenta @ 2019-12-13 13:34 UTC (permalink / raw)
  To: 34042-done, control

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-13 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11 17:08 bug#34042: 26.1; ada-mode 6.0.0 reports false positives for syntax errors Ludovic Brenta
2019-12-13 13:34 ` Ludovic Brenta

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).