[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU Octave syntax highlighting files repository
From: |
John W. Eaton |
Subject: |
GNU Octave syntax highlighting files repository |
Date: |
Thu, 3 Nov 2011 13:10:56 -0400 |
On 3-Nov-2011, José Luis García Pallero wrote:
| For Octave developers: Could be possible to implement a function
| called function_names() or similar in order to obtain a list with all
| the Octave function names, keywords, etc.?
You could try __list_functions__.
How accurate do you expect highlighting to be?
Suppose you write some perfectly valid code like this:
save foo.dat bar
save ("foo.dat", "baz")
save = 1;
save
clear save
save ("foo.dat")
On which of the lines above should "save" be highlighted as a command,
a function, or a variable? Once a symbol has been used as a variable
in a given function or script, I suppose it should afterward be
highlighted as a variable unless it is cleared. What if the clearing
is done with something like
names_to_clear = {"save", ...};
clear (names_to_clear{:})
?
:-)
jwe