On Sat, 19 Oct 2013, Artur T. wrote:
as far as I know "modeltab clear" was replaced by
"modeltab free".
Yes, that's what the help for modeltab says.
But using the old "clear" command does not result in an
error message.
It should give an error, that's about to be fixed in CVS.
Furthermore "free" is not highlighted, but
"clear" is within the
"modeltab" command
<hansl>
open denmark
ols LRM 0 LRY
modeltab add
modeltab show
modeltab clear # -> no error
modeltab free # "free" is not highlighted
</hansl>
This is a limitation of the "lang" file we're using with gtksourceview.
The word "clear" is being highlighted not because it's a valid
accompaniment to modeltab, but because it's a gretl command in its own
right. We need a smarter regular expression for this sort of context, to
avoid "false positives". (Note that it's OK for a gretl command word to
follow another word in some contexts, such as "catch", "end" and
"name
<-".)
I just had a quick try at constructing a better regexp, but it made a
worse mess than the status quo -- so that's a project for another day!
Allin