Subject: bug#40905: 26.3; ada-mode 6.2.1: wiwi parser gets lost in large complex file

From: Ludovic Brenta <[email-masked]>
Date: Mon, 27 Apr 2020 17:17:18 +0200

Package: emacs, ada-mode
X-Debbugs-CC: [email-masked]
Severity: minor

Hello,

I will send the reproducer file privately.  This file compiles cleanly.
At a certain point in the file, TAB over-indents the lines above point;
C-C C-f shows many errors flashing and disapperaing, then this final 
error:

wisi syntax errors
env_data_agent.adb:450:7: syntax error: expecting ACCEPT, ABORT, BEGIN, 
CASE, DECLARE, DELAY, END, EXCEPTION, EXIT, FOR, GOTO, IF, LOOP, NULL, 
PRAGMA, RAISE, REQUEUE, RETURN, SELECT, WHILE, LESS_LESS, IDENTIFIER,
  STRING_LITERAL, CHARACTER_LITERAL, found 'Wisi_EOI'

on a valid end return.

-- 
Ludovic Brenta.