comp.lang.ada
 help / color / mirror / Atom feed
* bug in ada-xref.el
@ 1995-03-17 20:53 Stephen A. Leake
  0 siblings, 0 replies; only message in thread
From: Stephen A. Leake @ 1995-03-17 20:53 UTC (permalink / raw)


I've found and patched at bug in ada-xref.el (part of the ada-mode for
gnu emacs distribution). The bug prevented going to the declaration of
an identifier that contained digits as part of the name (ie
A2). Here's the diff output:

$ diff ada-xref.el ada-xref.el.orig 
409,410c409,410
< 	      (skip-chars-backward " a-zA-Z_0-9")
< 	      (looking-at "[a-zA-Z_0-9]+")
---
> 	      (skip-chars-backward " a-zA-Z_")
> 	      (looking-at "[a-zA-Z_]+")

I'm also e-mailing Markus Heritsch (listed as the author).

As a general emacs style question; it would seem to be appropriate to
define a function (maybe ada-identifier-syntax?) to return this string
to be used wherever a regexp that matches an identifier is
needed. This does not seem to be a popular idea with gnuemacs code;
any comments?

I realize this string does not enforce not starting with a digit, nor
ending with an underscore. This is because it is only used to parse
gnatf output, which does enforce those restrictions.

- Stephe
--
Stephen Leake, NASA Goddard Space Flight Center
email: Stephen.Leake@gsfc.nasa.gov



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-17 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-17 20:53 bug in ada-xref.el Stephen A. Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox