[gtksourceview] octave.lang: update list of builtin functions.



commit 191d4bd69c1419acb7bb81a7554cd2bfb7f174d4
Author: Carnë Draug <carandraug+dev gmail com>
Date:   Tue Sep 1 13:00:07 2015 +0100

    octave.lang: update list of builtin functions.

 data/language-specs/octave.lang |  202 +++++++++++++++++++++++++++------------
 1 files changed, 140 insertions(+), 62 deletions(-)
---
diff --git a/data/language-specs/octave.lang b/data/language-specs/octave.lang
index 62e4ccb..221c781 100644
--- a/data/language-specs/octave.lang
+++ b/data/language-specs/octave.lang
@@ -56,7 +56,8 @@
 
   <definitions>
 
-    <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
+    <context id="block-comment" style-ref="comment" class="comment"
+             class-disabled="no-spell-check">
       <start>^\s*[#%]{\s*$</start>
       <end>^\s*[#%]}\s*$</end>
       <include>
@@ -65,7 +66,8 @@
       </include>
     </context>
 
-    <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" 
class-disabled="no-spell-check">
+    <context id="line-comment" style-ref="comment" end-at-line-end="true"
+             class="comment" class-disabled="no-spell-check">
       <start>#|%</start>
       <include>
         <context ref="def:in-comment"/>
@@ -84,7 +86,9 @@
       </include>
     </context>
 
-    <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" 
class-disabled="no-spell-check">
+    <context id="double-quoted-string" style-ref="string"
+             end-at-line-end="true" class="string"
+             class-disabled="no-spell-check">
       <start>"</start>
       <end>"</end>
       <include>
@@ -95,7 +99,9 @@
       </include>
     </context>
 
-    <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" 
class-disabled="no-spell-check">
+    <context id="single-quoted-string" style-ref="string"
+             end-at-line-end="true" class="string"
+             class-disabled="no-spell-check">
       <!--
          To do not misdetect the transpose operator ' as the start of a string
          we assert to not follow a variable name (letters, digits and underscores)
@@ -257,11 +263,78 @@
       <suffix>\%](?!\.)</suffix>
 
       <!--
-        The most reliable way to get a list of functions is to parse the
-        manual (grep -or '@DOCSTRING' doc/interpreter).
-        The alternative __list_functions__() skips many builtin functions
-        and mentions some that only exist to have help text.
+        To get a list of all Octave core functions, use the code below.
+        This code uses all functions in the current scope so it's important
+        to have no packages loaded, no functions in the current directory,
+        or anything defined on octaverc.
+
+          all_functions = {__builtins__(){:} __list_functions__(){:}};
+          all_functions(strmatch ("__", all_functions )) = [];
+          all_functions = sort (all_functions);
+          printf ("      <keyword>%s</keyword>\n", all_functions{:});
+
+        However, this will include things such as `ans' or `comma' which
+        have a m file for documentation purposes only.  An  alternative
+        is to parse the manual sources but that is also not complete since
+        functions such as bessel* have a single entry on the manual.
+
+          $ grep -rhoP '(?<= DOCSTRING\().*(?=\))' doc/interpreter/ | sort | uniq
+
+        In the end, manual curation from those two lists is required.
       -->
+      <keyword>EDITOR</keyword>
+      <keyword>EXEC_PATH</keyword>
+      <keyword>F_DUPFD</keyword>
+      <keyword>F_GETFD</keyword>
+      <keyword>F_GETFL</keyword>
+      <keyword>F_SETFD</keyword>
+      <keyword>F_SETFL</keyword>
+      <keyword>I</keyword>
+      <keyword>IMAGE_PATH</keyword>
+      <keyword>Inf</keyword>
+      <keyword>J</keyword>
+      <keyword>NA</keyword>
+      <keyword>NaN</keyword>
+      <keyword>OCTAVE_HOME</keyword>
+      <keyword>OCTAVE_VERSION</keyword>
+      <keyword>O_APPEND</keyword>
+      <keyword>O_ASYNC</keyword>
+      <keyword>O_CREAT</keyword>
+      <keyword>O_EXCL</keyword>
+      <keyword>O_NONBLOCK</keyword>
+      <keyword>O_RDONLY</keyword>
+      <keyword>O_RDWR</keyword>
+      <keyword>O_SYNC</keyword>
+      <keyword>O_TRUNC</keyword>
+      <keyword>O_WRONLY</keyword>
+      <keyword>PAGER</keyword>
+      <keyword>PAGER_FLAGS</keyword>
+      <keyword>PS1</keyword>
+      <keyword>PS2</keyword>
+      <keyword>PS4</keyword>
+      <keyword>P_tmpdir</keyword>
+      <keyword>SEEK_CUR</keyword>
+      <keyword>SEEK_END</keyword>
+      <keyword>SEEK_SET</keyword>
+      <keyword>SIG</keyword>
+      <keyword>S_ISBLK</keyword>
+      <keyword>S_ISCHR</keyword>
+      <keyword>S_ISDIR</keyword>
+      <keyword>S_ISFIFO</keyword>
+      <keyword>S_ISLNK</keyword>
+      <keyword>S_ISREG</keyword>
+      <keyword>S_ISSOCK</keyword>
+      <keyword>WCONTINUE</keyword>
+      <keyword>WCOREDUMP</keyword>
+      <keyword>WEXITSTATUS</keyword>
+      <keyword>WIFCONTINUED</keyword>
+      <keyword>WIFEXITED</keyword>
+      <keyword>WIFSIGNALED</keyword>
+      <keyword>WIFSTOPPED</keyword>
+      <keyword>WNOHANG</keyword>
+      <keyword>WSTOPSIG</keyword>
+      <keyword>WTERMSIG</keyword>
+      <keyword>WUNTRACED</keyword>
       <keyword>abs</keyword>
       <keyword>accumarray</keyword>
       <keyword>accumdim</keyword>
@@ -287,7 +360,10 @@
       <keyword>amd</keyword>
       <keyword>ancestor</keyword>
       <keyword>and</keyword>
+      <keyword>angle</keyword>
+      <keyword>annotation</keyword>
       <keyword>anova</keyword>
+      <keyword>ans</keyword>
       <keyword>any</keyword>
       <keyword>arch_fit</keyword>
       <keyword>arch_rnd</keyword>
@@ -315,7 +391,9 @@
       <keyword>atexit</keyword>
       <keyword>audiodevinfo</keyword>
       <keyword>audioinfo</keyword>
+      <keyword>audioplayer</keyword>
       <keyword>audioread</keyword>
+      <keyword>audiorecorder</keyword>
       <keyword>audiowrite</keyword>
       <keyword>autoload</keyword>
       <keyword>autoreg_matrix</keyword>
@@ -334,7 +412,11 @@
       <keyword>base64_encode</keyword>
       <keyword>beep</keyword>
       <keyword>beep_on_error</keyword>
+      <keyword>besselh</keyword>
+      <keyword>besseli</keyword>
       <keyword>besselj</keyword>
+      <keyword>besselk</keyword>
+      <keyword>bessely</keyword>
       <keyword>beta</keyword>
       <keyword>betacdf</keyword>
       <keyword>betainc</keyword>
@@ -388,6 +470,7 @@
       <keyword>ccolamd</keyword>
       <keyword>cd</keyword>
       <keyword>ceil</keyword>
+      <keyword>cell</keyword>
       <keyword>cell2mat</keyword>
       <keyword>cell2struct</keyword>
       <keyword>celldisp</keyword>
@@ -397,6 +480,8 @@
       <keyword>cellstr</keyword>
       <keyword>center</keyword>
       <keyword>cgs</keyword>
+      <keyword>char</keyword>
+      <keyword>chdir</keyword>
       <keyword>chi2cdf</keyword>
       <keyword>chi2inv</keyword>
       <keyword>chi2pdf</keyword>
@@ -507,19 +592,7 @@
       <keyword>datetick</keyword>
       <keyword>datevec</keyword>
       <keyword>dawson</keyword>
-      <keyword>dbclear</keyword>
-      <keyword>dbcont</keyword>
-      <keyword>dbdown</keyword>
-      <keyword>dblist</keyword>
       <keyword>dblquad</keyword>
-      <keyword>dbquit</keyword>
-      <keyword>dbstack</keyword>
-      <keyword>dbstatus</keyword>
-      <keyword>dbstep</keyword>
-      <keyword>dbstop</keyword>
-      <keyword>dbtype</keyword>
-      <keyword>dbup</keyword>
-      <keyword>dbwhere</keyword>
       <keyword>deal</keyword>
       <keyword>deblank</keyword>
       <keyword>debug_java</keyword>
@@ -566,6 +639,7 @@
       <keyword>dos</keyword>
       <keyword>do_string_escapes</keyword>
       <keyword>dot</keyword>
+      <keyword>double</keyword>
       <keyword>drawnow</keyword>
       <keyword>dsearch</keyword>
       <keyword>dsearchn</keyword>
@@ -577,7 +651,6 @@
       <keyword>echo_executing_commands</keyword>
       <keyword>edit</keyword>
       <keyword>edit_history</keyword>
-      <keyword>EDITOR</keyword>
       <keyword>eig</keyword>
       <keyword>eigs</keyword>
       <keyword>ellipj</keyword>
@@ -603,7 +676,6 @@
       <keyword>error</keyword>
       <keyword>errorbar</keyword>
       <keyword>errordlg</keyword>
-      <keyword>error_ids</keyword>
       <keyword>etime</keyword>
       <keyword>etree</keyword>
       <keyword>etreeplot</keyword>
@@ -611,8 +683,8 @@
       <keyword>evalin</keyword>
       <keyword>example</keyword>
       <keyword>exec</keyword>
-      <keyword>EXEC_PATH</keyword>
       <keyword>exist</keyword>
+      <keyword>exit</keyword>
       <keyword>exp</keyword>
       <keyword>expcdf</keyword>
       <keyword>expint</keyword>
@@ -705,6 +777,7 @@
       <keyword>fsolve</keyword>
       <keyword>ftell</keyword>
       <keyword>f_test_regression</keyword>
+      <keyword>ftp</keyword>
       <keyword>full</keyword>
       <keyword>fullfile</keyword>
       <keyword>func2str</keyword>
@@ -716,6 +789,7 @@
       <keyword>gaminv</keyword>
       <keyword>gamma</keyword>
       <keyword>gammainc</keyword>
+      <keyword>gammaln</keyword>
       <keyword>gampdf</keyword>
       <keyword>gamrnd</keyword>
       <keyword>gca</keyword>
@@ -744,6 +818,7 @@
       <keyword>getgrnam</keyword>
       <keyword>get_help_text</keyword>
       <keyword>get_help_text_from_file</keyword>
+      <keyword>get_home_directory</keyword>
       <keyword>gethostname</keyword>
       <keyword>getpgrp</keyword>
       <keyword>getpid</keyword>
@@ -776,13 +851,13 @@
       <keyword>gtext</keyword>
       <keyword>guidata</keyword>
       <keyword>guihandles</keyword>
-      <keyword>gui_mode</keyword>
       <keyword>gunzip</keyword>
       <keyword>gzip</keyword>
       <keyword>hadamard</keyword>
       <keyword>hamming</keyword>
       <keyword>hankel</keyword>
       <keyword>hanning</keyword>
+      <keyword>have_window_system</keyword>
       <keyword>hdl2struct</keyword>
       <keyword>help</keyword>
       <keyword>helpdlg</keyword>
@@ -803,6 +878,7 @@
       <keyword>history_size</keyword>
       <keyword>history_timestamp_format_string</keyword>
       <keyword>hold</keyword>
+      <keyword>home</keyword>
       <keyword>horzcat</keyword>
       <keyword>hot</keyword>
       <keyword>hotelling_test</keyword>
@@ -816,7 +892,7 @@
       <keyword>hygepdf</keyword>
       <keyword>hygernd</keyword>
       <keyword>hypot</keyword>
-      <keyword>I</keyword>
+      <keyword>i</keyword>
       <keyword>ichol</keyword>
       <keyword>idivide</keyword>
       <keyword>ifft</keyword>
@@ -828,7 +904,6 @@
       <keyword>im2frame</keyword>
       <keyword>imag</keyword>
       <keyword>image</keyword>
-      <keyword>IMAGE_PATH</keyword>
       <keyword>imagesc</keyword>
       <keyword>imfinfo</keyword>
       <keyword>imformats</keyword>
@@ -840,7 +915,7 @@
       <keyword>ind2rgb</keyword>
       <keyword>ind2sub</keyword>
       <keyword>index</keyword>
-      <keyword>Inf</keyword>
+      <keyword>inf</keyword>
       <keyword>inferiorto</keyword>
       <keyword>info</keyword>
       <keyword>info_file</keyword>
@@ -851,7 +926,11 @@
       <keyword>inputdlg</keyword>
       <keyword>inputname</keyword>
       <keyword>inputParser</keyword>
+      <keyword>int16</keyword>
       <keyword>int2str</keyword>
+      <keyword>int32</keyword>
+      <keyword>int64</keyword>
+      <keyword>int8</keyword>
       <keyword>interp1</keyword>
       <keyword>interp2</keyword>
       <keyword>interp3</keyword>
@@ -861,6 +940,7 @@
       <keyword>intmax</keyword>
       <keyword>intmin</keyword>
       <keyword>inv</keyword>
+      <keyword>inverse</keyword>
       <keyword>invhilb</keyword>
       <keyword>ipermute</keyword>
       <keyword>iqr</keyword>
@@ -873,6 +953,7 @@
       <keyword>isascii</keyword>
       <keyword>isaxes</keyword>
       <keyword>isbanded</keyword>
+      <keyword>isbool</keyword>
       <keyword>iscell</keyword>
       <keyword>iscellstr</keyword>
       <keyword>ischar</keyword>
@@ -951,10 +1032,12 @@
       <keyword>isvarname</keyword>
       <keyword>isvector</keyword>
       <keyword>isxdigit</keyword>
+      <keyword>j</keyword>
       <keyword>javaaddpath</keyword>
       <keyword>javaArray</keyword>
       <keyword>javachk</keyword>
       <keyword>javaclasspath</keyword>
+      <keyword>java_convert_matrix</keyword>
       <keyword>java_get</keyword>
       <keyword>java_matrix_autoconversion</keyword>
       <keyword>javamem</keyword>
@@ -965,6 +1048,7 @@
       <keyword>java_unsigned_autoconversion</keyword>
       <keyword>jet</keyword>
       <keyword>jit_enable</keyword>
+      <keyword>jit_failcnt</keyword>
       <keyword>jit_startcnt</keyword>
       <keyword>kbhit</keyword>
       <keyword>kendall</keyword>
@@ -1004,7 +1088,6 @@
       <keyword>list_in_columns</keyword>
       <keyword>list_primes</keyword>
       <keyword>load</keyword>
-      <keyword>loadaudio</keyword>
       <keyword>loaded_graphics_toolkits</keyword>
       <keyword>loadobj</keyword>
       <keyword>localtime</keyword>
@@ -1012,6 +1095,7 @@
       <keyword>log10</keyword>
       <keyword>log1p</keyword>
       <keyword>log2</keyword>
+      <keyword>logical</keyword>
       <keyword>logistic_cdf</keyword>
       <keyword>logistic_inv</keyword>
       <keyword>logistic_pdf</keyword>
@@ -1028,6 +1112,7 @@
       <keyword>logspace</keyword>
       <keyword>lookfor</keyword>
       <keyword>lookup</keyword>
+      <keyword>lower</keyword>
       <keyword>ls</keyword>
       <keyword>ls_command</keyword>
       <keyword>lscov</keyword>
@@ -1081,7 +1166,6 @@
       <keyword>mode</keyword>
       <keyword>moment</keyword>
       <keyword>more</keyword>
-      <keyword>mouse_wheel_zoom</keyword>
       <keyword>movefile</keyword>
       <keyword>mpoles</keyword>
       <keyword>mpower</keyword>
@@ -1090,9 +1174,9 @@
       <keyword>mtimes</keyword>
       <keyword>mu2lin</keyword>
       <keyword>munlock</keyword>
-      <keyword>NA</keyword>
       <keyword>namelengthmax</keyword>
-      <keyword>NaN</keyword>
+      <keyword>nargchk</keyword>
+      <keyword>nan</keyword>
       <keyword>nargin</keyword>
       <keyword>narginchk</keyword>
       <keyword>nargout</keyword>
@@ -1136,8 +1220,6 @@
       <keyword>octave_core_file_limit</keyword>
       <keyword>octave_core_file_name</keyword>
       <keyword>octave_core_file_options</keyword>
-      <keyword>OCTAVE_HOME</keyword>
-      <keyword>OCTAVE_VERSION</keyword>
       <keyword>ols</keyword>
       <keyword>onCleanup</keyword>
       <keyword>onenormest</keyword>
@@ -1148,6 +1230,7 @@
       <keyword>optimset</keyword>
       <keyword>or</keyword>
       <keyword>orderfields</keyword>
+      <keyword>ordschur</keyword>
       <keyword>orient</keyword>
       <keyword>orth</keyword>
       <keyword>ostrsplit</keyword>
@@ -1155,8 +1238,6 @@
       <keyword>output_precision</keyword>
       <keyword>pack</keyword>
       <keyword>page_output_immediately</keyword>
-      <keyword>PAGER</keyword>
-      <keyword>PAGER_FLAGS</keyword>
       <keyword>page_screen_output</keyword>
       <keyword>pan</keyword>
       <keyword>pareto</keyword>
@@ -1186,7 +1267,6 @@
       <keyword>pipe</keyword>
       <keyword>pkg</keyword>
       <keyword>planerot</keyword>
-      <keyword>playaudio</keyword>
       <keyword>plot</keyword>
       <keyword>plot3</keyword>
       <keyword>plotmatrix</keyword>
@@ -1242,13 +1322,11 @@
       <keyword>program_invocation_name</keyword>
       <keyword>program_name</keyword>
       <keyword>prop_test_2</keyword>
-      <keyword>PS1</keyword>
-      <keyword>PS2</keyword>
-      <keyword>PS4</keyword>
-      <keyword>P_tmpdir</keyword>
+      <keyword>psi</keyword>
       <keyword>puts</keyword>
       <keyword>pwd</keyword>
       <keyword>python</keyword>
+      <keyword>qmr</keyword>
       <keyword>qp</keyword>
       <keyword>qqplot</keyword>
       <keyword>qr</keyword>
@@ -1349,7 +1427,6 @@
       <keyword>runtests</keyword>
       <keyword>save</keyword>
       <keyword>saveas</keyword>
-      <keyword>saveaudio</keyword>
       <keyword>save_default_options</keyword>
       <keyword>save_header_format_string</keyword>
       <keyword>saveobj</keyword>
@@ -1362,14 +1439,12 @@
       <keyword>sec</keyword>
       <keyword>secd</keyword>
       <keyword>sech</keyword>
-      <keyword>SEEK_SET</keyword>
       <keyword>semilogx</keyword>
       <keyword>semilogxerr</keyword>
       <keyword>semilogy</keyword>
       <keyword>semilogyerr</keyword>
       <keyword>set</keyword>
       <keyword>setappdata</keyword>
-      <keyword>setaudio</keyword>
       <keyword>setdiff</keyword>
       <keyword>setenv</keyword>
       <keyword>setfield</keyword>
@@ -1382,7 +1457,6 @@
       <keyword>shift</keyword>
       <keyword>shiftdim</keyword>
       <keyword>shrinkfaces</keyword>
-      <keyword>SIG</keyword>
       <keyword>sighup_dumps_octave_core</keyword>
       <keyword>sign</keyword>
       <keyword>signbit</keyword>
@@ -1394,14 +1468,8 @@
       <keyword>sind</keyword>
       <keyword>sinetone</keyword>
       <keyword>sinewave</keyword>
+      <keyword>single</keyword>
       <keyword>sinh</keyword>
-      <keyword>S_ISBLK</keyword>
-      <keyword>S_ISCHR</keyword>
-      <keyword>S_ISDIR</keyword>
-      <keyword>S_ISFIFO</keyword>
-      <keyword>S_ISLNK</keyword>
-      <keyword>S_ISREG</keyword>
-      <keyword>S_ISSOCK</keyword>
       <keyword>size</keyword>
       <keyword>size_equal</keyword>
       <keyword>sizemax</keyword>
@@ -1412,6 +1480,8 @@
       <keyword>sombrero</keyword>
       <keyword>sort</keyword>
       <keyword>sortrows</keyword>
+      <keyword>sound</keyword>
+      <keyword>soundsc</keyword>
       <keyword>source</keyword>
       <keyword>spalloc</keyword>
       <keyword>sparse</keyword>
@@ -1475,6 +1545,7 @@
       <keyword>string_fill_char</keyword>
       <keyword>strjoin</keyword>
       <keyword>strjust</keyword>
+      <keyword>strmatch</keyword>
       <keyword>strncmp</keyword>
       <keyword>strncmpi</keyword>
       <keyword>strptime</keyword>
@@ -1484,6 +1555,7 @@
       <keyword>strtok</keyword>
       <keyword>strtrim</keyword>
       <keyword>strtrunc</keyword>
+      <keyword>struct</keyword>
       <keyword>struct2cell</keyword>
       <keyword>struct2hdl</keyword>
       <keyword>structfun</keyword>
@@ -1541,7 +1613,9 @@
       <keyword>tinv</keyword>
       <keyword>title</keyword>
       <keyword>tmpfile</keyword>
+      <keyword>tmpnam</keyword>
       <keyword>toascii</keyword>
+      <keyword>toc</keyword>
       <keyword>toeplitz</keyword>
       <keyword>tolower</keyword>
       <keyword>toupper</keyword>
@@ -1566,11 +1640,21 @@
       <keyword>type</keyword>
       <keyword>typecast</keyword>
       <keyword>typeinfo</keyword>
+      <keyword>uicontextmenu</keyword>
+      <keyword>uicontrol</keyword>
       <keyword>uigetdir</keyword>
       <keyword>uigetfile</keyword>
       <keyword>uimenu</keyword>
+      <keyword>uint16</keyword>
+      <keyword>uint32</keyword>
+      <keyword>uint64</keyword>
+      <keyword>uint8</keyword>
+      <keyword>uipanel</keyword>
+      <keyword>uipushtool</keyword>
       <keyword>uiputfile</keyword>
       <keyword>uiresume</keyword>
+      <keyword>uitoggletool</keyword>
+      <keyword>uitoolbar</keyword>
       <keyword>uiwait</keyword>
       <keyword>umask</keyword>
       <keyword>uminus</keyword>
@@ -1596,6 +1680,7 @@
       <keyword>unwrap</keyword>
       <keyword>unzip</keyword>
       <keyword>uplus</keyword>
+      <keyword>upper</keyword>
       <keyword>urlread</keyword>
       <keyword>urlwrite</keyword>
       <keyword>usejava</keyword>
@@ -1630,11 +1715,8 @@
       <keyword>wblinv</keyword>
       <keyword>wblpdf</keyword>
       <keyword>wblrnd</keyword>
-      <keyword>WCONTINUE</keyword>
-      <keyword>WCOREDUMP</keyword>
       <keyword>weekday</keyword>
       <keyword>welch_test</keyword>
-      <keyword>WEXITSTATUS</keyword>
       <keyword>what</keyword>
       <keyword>which</keyword>
       <keyword>white</keyword>
@@ -1643,24 +1725,20 @@
       <keyword>whos</keyword>
       <keyword>whos_line_format</keyword>
       <keyword>wienrnd</keyword>
-      <keyword>WIFCONTINUED</keyword>
-      <keyword>WIFEXITED</keyword>
-      <keyword>WIFSIGNALED</keyword>
-      <keyword>WIFSTOPPED</keyword>
       <keyword>wilcoxon_test</keyword>
       <keyword>wilkinson</keyword>
       <keyword>winter</keyword>
-      <keyword>WNOHANG</keyword>
-      <keyword>WSTOPSIG</keyword>
-      <keyword>WTERMSIG</keyword>
-      <keyword>WUNTRACED</keyword>
       <keyword>xlabel</keyword>
       <keyword>xlim</keyword>
       <keyword>xor</keyword>
       <keyword>yes_or_no</keyword>
+      <keyword>ylabel</keyword>
+      <keyword>ylim</keyword>
       <keyword>yulewalker</keyword>
       <keyword>zeros</keyword>
       <keyword>zip</keyword>
+      <keyword>zlabel</keyword>
+      <keyword>zlim</keyword>
       <keyword>zoom</keyword>
       <keyword>zscore</keyword>
       <keyword>z_test</keyword>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]