Hi I made one more change. The function handle @ is now also highlighted as data type.
I went through the list of functions and decided to use all functions that exist in both octave and matlab. I'm guessing those are unlikely to go away. The list of functions that seemed to exist in octave only are also attached. If you see there any function that it's very unlikely to be deprecated or removed please tell me so I can add it to the lang file. More opinions are also welcomed, Thanks in advance, Carnë Draug On 16 March 2010 12:57, Carnë Draug <[email protected]> wrote: > > I asked on the help mailing list and they told me it is a feature for > compatibility with MatLab and not a bug. I kept making changes on the > lang file, here's what I changed more > > *On pkg as preprocessor > Now it only highlights 'pkg' and its commands (no longer everything > up to the end of the line) > If "pkg" is called like a function "pkg ("load",...)" then it's > highlighted as a function > > *On constants/functions > Functions such as Inf, pi, NaN which can be called with no arguments > to return constant value, are highlighted as constants in those > situations but still as functions if followed by opening parenthesis. > I only know about eps, (I|i), (Inf|inf), (NaN|nan), NA, ones, pi and > zeros. Is there other ones? > > *On keywords > added the keywords, persistent, replot, static, varargin, varargout > removed the keywords assert, nargin, nargout and moved them to > builtin functions > > *On block comments > highlights correctly when block comments are nested > > *On builtin function > just to make it look pretty I mixed some very similar functions names > into one such as "(a)?sin(d|h)?" > > here's what I am doing to deal with the problem of functions being > removed in the future and keep being highlighted. I removed all > functions from the list that appear in the folder deprecated. Then, > I'll keep all functions that also exist in matlab. With the rest of > functions, I'll see later what to do with them. > > Carnë Draug >
octave.lang
Description: Binary data
is_oct_only
Description: Binary data
------------------------------------------------------------------------------ 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
