On 16/04/2010, Søren Hauberg <[email protected]> wrote:
> fre, 16 04 2010 kl. 14:08 -0400, skrev Carnë Draug:
>> pkg () is not being highlighted as function (I'm pretty sure it was at
>> a certain point, so I may have messed it up during other changes.
>>
>> Variable or function names that start by pkg (such as pkg_i or
>> pkg_description), get the pkg and the underscore highlighted as
>> preprocess.
>
> I must admit that I'm not good with regular expressions, so I can't be
> of much help. If I where you, I would simply drop the special-case for
> 'pkg' and just treat it like any other function, but that's just me
> being lazy, I guess...


Can't be something that hard. I'll look into it tomorrow.

>> Altough I can't avoid getting variables highlighted as functions if
>> they have the same name of a function, if they are structure fields,
>> they shouldn't be highlighted as such. Is it possible in any way, for
>> a function to be preceded by a dot?
>
> No. Function names cannot start with a dot.

I didn't meant the name start by a dot. I mean to somehow have a dot
before it. For example, while a function name can't start by semicolon
it can have one right before or after it's name. Or an apostrophe, to
transpose the output of whatever function that may be called without
arguments. Can you foresee the possibility to use the dot?

Carnẽ

------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to