On Mon, 24 Oct 2016, Henrique Andrade wrote:
Em 24 de outubro de 2016, Allin Cottrell escreveu:
On Mon, 24 Oct 2016, Artur T. wrote:
Hi all,
it seems that only the "$h" but not the "uge" part of the $huge accessor
is colored in the script editor. This is the case for the latest git
version using ubuntu. Hope that helps.
Thanks. This isn't platform- or version-specific. It's because the "$h"
accessor (GARCH conditional variance) is pre-empting $huge. We'll need to
make some sort of adjustment to our gtksourceview language file,
gretl.lang. Anyone who's particularly handy with regexps could probably
help!
(There are a few other instances of spurious or incomplete highlighting
that could do with fixing.)
Dear Allin, where in the git is gretl.lang?
Ah, good question. It's actually an auto-generated file, built by the mklang program (source: gui2/mklang.c).
However, if anyone is inclined and able to help with this, they could work directly on the generated gretl.lang (which should appear in the gui2 directory of the build tree). I could then "backport" any changes to mklang.c so they get preserved in future versions of the lang file.
The "lang" file specifications for gtksourceview can be found at
https://developer.gnome.org/gtksourceview/stable/pt02.html
That said, I just took a look at the current gretl.lang and I see that "huge" is not listed among the accessors, so it seems my diagnosis above in response to Artur was not correct. The problem seems to be a different one: "huge" is not being picked up, as it should, by the "mklang" mechanism. I'll look into that.
Allin
_______________________________________________
Gretl-devel mailing list
Gretl-devel@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel