all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec
@ 2019-04-03 16:05 Ludovic Brenta
  2019-05-24 16:49 ` Stephen Leake
  2019-08-17 23:27 ` bug#35124: close Stephen Leake
  0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Brenta @ 2019-04-03 16:05 UTC (permalink / raw)
  To: 35124; +Cc: ada-mode-users

X-Debbugs-CC: ada-mode-users@nongnu.org
Package: emacs, ada-mode
Version: 26.1
Severity: minor

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.  If
you then remove the "procedure P", the second Foo is
highlighted properly.

This micro-bug is triggered only when
wisi-partial-parse-threshold is less than the size of
the buffer (i.e. it is zero).

-- 
Ludovic Brenta.





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

* bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec
  2019-04-03 16:05 bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec Ludovic Brenta
@ 2019-05-24 16:49 ` Stephen Leake
  2019-08-17 23:27 ` bug#35124: close Stephen Leake
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2019-05-24 16:49 UTC (permalink / raw)
  To: Ludovic Brenta; +Cc: 35124, ada-mode-users

Ludovic Brenta <ludovic@ludovic-brenta.org> 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 <identifier>
is begin" instead; I'll work on that.

-- 
-- Stephe





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

* bug#35124: close
  2019-04-03 16:05 bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec Ludovic Brenta
  2019-05-24 16:49 ` Stephen Leake
@ 2019-08-17 23:27 ` Stephen Leake
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2019-08-17 23:27 UTC (permalink / raw)
  To: 35124-close


-- 
-- Stephe





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

end of thread, other threads:[~2019-08-17 23:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-03 16:05 bug#35124: 26.1; ada-mode 6.1.0 no longer syntax-highlights package names at end of spec Ludovic Brenta
2019-05-24 16:49 ` Stephen Leake
2019-08-17 23:27 ` bug#35124: close Stephen Leake

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.