On 20 March 2010 18:32, Søren Hauberg <[email protected]> wrote:
> It would be nice if you could also highlight the function name coming
> after the '@', so when I write '@sin' all for characters get the same
> colour. This should, however, only happen when the following characters
> is a legal function name. Specifically, I think we should highlight
> anonymous functions different, so when I type '@(x)' only the '@' gets
> highlighted.
>
> Søren
>
Hmmm... This is easy to do but I can't think of a way that looks smart
at the same time. And the documentation for gtksourceview doesn't help
much when trying to do tricky things like this. As soon as the the
developers are free (they said to wait until the 30th of this month to
make the commit) I'll ask them this as well as other stuff such as the
metadata block.
The easy way to do would be to turn functions in a regexp, and then
also call it here. If the regex would have an id='functions-list',
then I guess the regexp to match this would be
@(\(%{functions-list})\()?
A really cool thing that I noticed is that exists an erroneous
construct style. If you can thing of a common error that should be
highlighted like that, please tell me.
Also, you mentioned before that it would be preferable to use octave #
and #{ to insert comments automatically. Is there any chance that
octave will ever accept # better than % ? Although I from one point I
can understand that we'd like to mark it and use the #, if other users
share their code with matlab users in a regular basis, they might have
problems. Either way, it makes no difference to me. What's your
opinion?
Carnẽ Draug
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev