Glitch in Ada syntax highlighting
Brought to you by:
tringali
In the Ada syntax highlighting pattern, if the with'ed
or use'd package has a single letter then it isn't
caught by the pattern.
Example
with Ada.Strings.Unbounded
with C.Strings
(works OK, but)
with Interfaces.C.Strings
use Interfaces.C
(neither works because of the single "C")
I'll see if I can parse the regexps well enough to fix
this myself.
Logged In: YES
user_id=119143
Could you come up with a short example where this can be
seen? I don't know Ada and neither do I see a difference
between the two cases.
Logged In: YES
user_id=119143
I can see the C here as highlightted. What effect do you
expect? What effect do you get?
Logged In: YES
user_id=612097
Now I see what's wrong. I forgot the semicolons at the end
in the examples. Compare
...
with Interfaces.C.Strings;
use Interfaces.C;
...
with the text
...
with Ada.Strings.Unbounded;
with C.Strings;
...
and you'll see what I mean. They are both package
inclusions, should be highlighted identically.
The bug is in the "withs use" subpattern, but I'm not so
good with regexps, I didn't manage to fix it :-(
If you don't see it I can upload a screenshot.
Logged In: YES
user_id=119143
For the record: Here is what NEdit sees:
http://www.vranx.de/nedit/wrongpattern.ada.html
Logged In: YES
user_id=119143
I attached a possible fix for this. I still don't know Ada,
so please check this pattern in situation where it might break.
A short description how to handle the pattern file is in the
pattern file. Let me know if any problem comes up.
Logged In: YES
user_id=119143
No response, so it seems to be fixed. The bug is left open
until the new pattern set is brought into CVS.