<?xml version="1.0" encoding="UTF-8"?>
<!--

 This file is part of GtkSourceView

 Authors: Søren Hauberg, Muthiah Annamalai, Carnë Draug
 Copyright (C) 2006 Søren Hauberg <soren@hauberg.org>
 Copyright (C) 2006 Muthiah Annamalai <gnumuthu@users.sf.net>
 Copyright (C) 2010 Carnë Draug <carandraug+dev@gmail.com>

 GtkSourceView is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 GtkSourceView is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

-->
<language id="octave" _name="Octave" version="2.0" _section="Scientific">
  <metadata>
    <property name="mimetypes">text/x-octave;text/x-matlab</property>
    <property name="globs">*.m</property>
    <property name="line-comment-start">#</property>
  </metadata>

  <styles>
    <style id="base-n-integer"    _name="Base-N Integer"      map-to="def:base-n-integer"/>
    <style id="boolean"           _name="Boolean"             map-to="def:boolean"/>
    <style id="builtin"           _name="Builtin"             map-to="def:builtin"/>
    <style id="comment"           _name="Comment"             map-to="def:comment"/>
    <style id="data-type"         _name="Data type"           map-to="def:type"/>
    <style id="decimal"           _name="Decimal"             map-to="def:decimal"/>
    <style id="escape"            _name="Escaped Characters"  map-to="def:special-char"/>
    <style id="floating-point"    _name="Floating Point"      map-to="def:floating-point"/>
    <style id="keyword"           _name="Keyword"             map-to="def:keyword"/>
    <style id="operator"          _name="Operator"            map-to="def:operator"/>
    <style id="package-manager"   _name="Package Manager"     map-to="def:preprocessor"/>
    <style id="printf-format"     _name="Printf Format"       map-to="def:special-char"/>
    <style id="reserved-constant" _name="Reserved Constant"   map-to="def:special-constant"/>
    <style id="string"            _name="String"              map-to="def:string"/>
    <style id="variable"          _name="variables"           map-to="def:identifiers"/>
  </styles>

  <definitions>

    <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
      <start>^\s*(#|%){\s*$</start>
      <end>^\s*(#|%)}\s*$</end>
      <include>
        <context ref="block-comment"/>
        <context ref="def:in-comment"/>
      </include>
    </context>

    <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"/>
      </include>
    </context>

    <!-- Different from the line continue in the defaults.-->
    <!-- Continuation line can be ... or \ optionally followed by whitespace
         and comments after # or %-->
    <context id="line-continue" style-ref="comment" class="comment" class-disabled="no-spell-check">
      <start>\.\.\.(\s)*$|\.\.\.(\s)*(#|%)+|\\(\s)*$|\\(\s)*(#|%)+</start>
      <end>^</end>
      <include>
        <context ref="def:in-comment"/>
      </include>
    </context>

    <!-- Shamelessly copied from c.lang-->
    <context id="printf-format" style-ref="printf-format" extend-parent="false">
      <match extended="true">
        \%\%|\%
        (?:[1-9][0-9]*\$)?        # argument
        [#0\-\ \+\'I]*            # flags
        (?:[1-9][0-9]*|\*)?       # width
        (?:\.\-?(?:[0-9]+|\*))?   # precision
        (?:hh|ll|[hlLqjzt])?      # length modifier
        [diouxXeEfFgGaAcsCSpnm]   # conversion specifier
      </match>
    </context>

    <!-- Shamelessly copied from c.lang-->
    <context id="escape" style-ref="escape">
      <match extended="true">
        \\(                     # leading backslash
        [\\\"\'nrbtfav\?] |     # escaped character
        [0-7]{1,3} |            # one, two, or three octal digits
        x[0-9A-Fa-f]+           # 'x' followed by hex digits
        )
      </match>
    </context>

    <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>
        <context ref="printf-format"/>
        <context ref="escape"/>
        <context ref="line-continue"/>
      </include>
    </context>

    <!-- Unlike double quoted string, in octave single quote strings do not
        allow continuation lines.-->
    <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)
       or a closing bracket (round, square or curly) or a dot (to form the
       array transpose operator ".'" ). -->
      <start>(?&lt;![0-9a-zA-Z_)\]}\.])'</start>
      <end>'</end>
      <include>
        <context style-ref="def:special-char">
          <match>''</match>
        </context>
      </include>
    </context>

    <!--To see the list of operators, use the function __operators__-->
    <context id="operator" style-ref="operator">
      <match extended="true">
        (\.)?\+{1,2}?(?!\+) |   # arithmetic operators
        (\.)?\-{1,2}?(?!\-) |   # already counting
        (\.)?\*{1,2}?(?!\*) |   # with auto increment,
        (\.)?\/(?!\^) |         # element by element,
        (\.)?\\(?!\^) |         # left division
        (\.)?\^(?!\^) |         # and both exp
        (?&lt;=[0-9a-zA-Z_)\]}])(\.)?' |                  # transpose operator
        &lt;=? | &gt;=? | != | ~= | == | &lt;&gt; |       # comparison operators
        &amp;{1,2}?(?!&amp;) | \|{1,2}?(?!\|) | ! | ~ |   # boolean operators
        = |                                               # assignment operator
        : |                                               # range operator
      </match>
    </context>

    <context id="data-type" style-ref="data-type" class="type">
      <keyword>cell(str)?</keyword>
      <keyword>char</keyword>
      <keyword>double</keyword>
      <keyword>(u)?int(8|16|32|64)</keyword>
      <keyword>logical</keyword>
      <keyword>single</keyword>
      <keyword>struct</keyword>
    </context>

    <context id="function-handle" style-ref="data-type" class="type">
      <match>@([A-Za-z_][A-Za-z1-9_]*)?</match>
    </context>

    <context id="boolean" style-ref="boolean" class="boolean">
      <suffix>\b(?!(\s)*\()</suffix>
      <keyword>false</keyword>
      <keyword>true</keyword>
    </context>

    <context id="decimal" style-ref="decimal">
      <match>\b([1-9][0-9]*|0)([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
    </context>

    <context id="floating-point-number" style-ref="floating-point">
      <match>\b([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFlL]?</match>
    </context>

    <context id="octal-number" style-ref="base-n-integer">
      <match>\b0[0-7]+([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
    </context>

    <context id="hex-number" style-ref="base-n-integer">
      <match>\b0[xX][0-9a-fA-F]+([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
    </context>

    <context id="variables" style-ref="variable">
      <keyword>ans</keyword>
    </context>

    <context id="reserved-constant" style-ref="reserved-constant">
      <suffix>\b(?!(\s)*\()</suffix>
      <keyword>e</keyword>
      <keyword>eps</keyword>
      <keyword>(J|j|I|i)</keyword>
      <keyword>(Inf|inf)</keyword>
      <keyword>(NaN|nan)</keyword>
      <keyword>NA</keyword>
      <keyword>ones</keyword>
      <keyword>pi</keyword>
      <keyword>rand</keyword>
      <keyword>randn</keyword>
      <keyword>zeros</keyword>
    </context>

    <context id="package-manager" style-ref="package-manager">
      <match extended="true">
        (\b)pkg(?!(\s)*\()(\s)+
        (((un)?install|(un)?load|list|(global|local)_list|describe|prefix|(re)?build)(\b))?
      </match>
    </context>

    <!--To see the list of keywords, use the function __keywords__-->
    <context id="keyword" style-ref="keyword">
      <keyword>break</keyword>
      <keyword>case</keyword>
      <keyword>catch</keyword>
      <keyword>continue</keyword>
      <keyword>do</keyword>
      <keyword>else(if)?</keyword>
      <keyword>end(_try_catch|_unwind_protect|for|function|if|switch|while)?</keyword>
      <keyword>for</keyword>
      <keyword>function</keyword>
      <keyword>global</keyword>
      <keyword>if</keyword>
      <keyword>otherwise</keyword>
      <keyword>persistent</keyword>
      <keyword>return</keyword>
      <keyword>static</keyword>
      <keyword>switch</keyword>
      <keyword>try</keyword>
      <keyword>until</keyword>
      <keyword>unwind_protect(_cleanup)?</keyword>
      <keyword>vararg(in|out)</keyword>
      <keyword>while</keyword>
    </context>

    <define-regex id="is-type-functions" extended="true">
      a | method | object |
      cell(str)? | char | field | float | integer | logical | numeric | real |
      dir |
      empty |
      equal(withequalnans)? |
      finite | inf | letter | member | na(n)? | prime | space |
      global |
      (hg)?handle |
      hold |
      keyword |
      mac | pc | unix |
      scalar | sparse | vector |
      sorted |
      str(prop|uct)? |
      varname
    </define-regex>

    <!--While there are many more builtin functions in octave, only some
    are listed here. This is to avoid maintenance problems specially in the
    case of functions that may later be removed. Extra functions can easily
     be added manually. Function __list_functions__ lists them all -->
    <context id="builtin" style-ref="builtin">
      <prefix>(?&lt;!\.)\%[</prefix>
      <suffix>\%](?!\.)</suffix>
      
      <keyword>(and|or|xor|lt|gt|le|ge|eq|ne|not)</keyword>
      <keyword>bar(h)?</keyword>
      <keyword>bessel(h|i|j|k|y)</keyword>
      <keyword>(beta|gamma)(inc|ln)?</keyword>
      <keyword>bit(and|cmp|or|xor)</keyword>
      <keyword>bit(get|max|set|shift)</keyword>
      <keyword>(horz|vert)?cat</keyword>
      <keyword>cart2(pol|sph)</keyword>
      <keyword>cell2(mat|struct)</keyword>
      <keyword>close(req)?</keyword>
      <keyword>col(amd|perm)</keyword>
      <keyword>cond(est)?</keyword>
      <keyword>contour(3|c|f)?</keyword>
      <keyword>conv(2|hull(n)?|n)?</keyword>
      <keyword>(a)?cos(d|h)?</keyword>
      <keyword>(a)?cot(d|h)?</keyword>
      <keyword>(a)?csc(d|h)?</keyword>
      <keyword>(m)?(r|l)divide</keyword>
      <keyword>csv(read|write)</keyword>
      <keyword>(cum)?(max|min|prod|sum|trapz)</keyword>
      <keyword>date(num|str|tick|vec)?</keyword>
      <keyword>db(clear|stack|status|stop|type|where)</keyword>
      <keyword>db(cont|down|next|quit|step|up)</keyword>
      <keyword>dec2(base|bin|hex)</keyword>
      <keyword>delaunay(3|n)?</keyword>
      <keyword>dlm(read|write)</keyword>
      <keyword>eig(s)?</keyword>
      <keyword>erf(c|cx|cinv|inv)?</keyword>
      <keyword>eval(in)?</keyword>
      <keyword>exp(int|m|m1)?</keyword>
      <keyword>ez(contour(f)?|mesh(c)?|plot(3)?|polar|surf(c)?)</keyword>
      <keyword>(i)?fft(2|n|shift)?</keyword>
      <keyword>f(close|open|read|seek|tell|write)</keyword>
      <keyword>fget(l|s)</keyword>
      <keyword>file(attrib|marker|parts|sep)</keyword>
      <keyword>filter(2)?</keyword>
      <keyword>flip(dim|lr|ud)</keyword>
      <keyword>gcb(f|o)</keyword>
      <keyword>grid(data|data3|datan)?</keyword>
      <keyword>hex2(dec|num)</keyword>
      <keyword>hist(c)?</keyword>
      <keyword>(I|i|J|j)</keyword>
      <keyword>image(sc)?</keyword>
      <keyword>im(finfo|read|show|write)</keyword>
      <keyword>ind2(rgb|sub)</keyword>
      <keyword>(g)?input</keyword>
      <keyword>(Inf|inf)</keyword>
      <keyword>int(min|max)</keyword>
      <keyword>interp(1|1q|2|3|ft|n)</keyword>
      <keyword>inv(erse)?</keyword>
      <keyword>is\%{is-type-functions}</keyword>
      <keyword>iso(colors|normals|surface)</keyword>
      <keyword>(x|y|z)label</keyword>
      <keyword>last(err|error|warn)</keyword>
      <keyword>(x|y|z)lim</keyword>
      <keyword>load(obj)?</keyword>
      <keyword>log(10|1p|2|space|m)?</keyword>
      <keyword>lu(inc)?</keyword>
      <keyword>mat2(cell|str)</keyword>
      <keyword>mesh(grid|c|z)?</keyword>
      <keyword>mkoctfile</keyword>
      <keyword>(NaN|nan)</keyword>
      <keyword>narg(in|out)</keyword>
      <keyword>narg(out)?chk</keyword>
      <keyword>num2(cell|hex|str)</keyword>
      <keyword>optim(get|set)</keyword>
      <keyword>(i)?permute</keyword>
      <keyword>((g|tree)(?=plot)|etree)(plot)?</keyword>
      <keyword>(new|sub)?plot</keyword>
      <keyword>(f(?=plot\b))?plot(3|matrix|yy)?</keyword>
      <keyword>poly(der(inv)?|fit|int|val|valm)?</keyword>
      <keyword>(f|s(?=printf))?print(f)?</keyword>
      <keyword>qr(delete|insert|update)?</keyword>
      <keyword>((db|triple)?quad)|(quad(gk|l|v)?)</keyword>
      <keyword>quiver(3)?</keyword>
      <keyword>rand(n|perm)?</keyword>
      <keyword>rat(s)?</keyword>
      <keyword>real(log|max|min|pow|sqrt)?</keyword>
      <keyword>regexp(i|rep|translate)?</keyword>
      <keyword>rgb2(hsv|ind)</keyword>
      <keyword>save(obj|path)?</keyword>
      <keyword>(f|s)?scanf</keyword>
      <keyword>scatter(3)?</keyword>
      <keyword>(d|t)search(n)?</keyword>
      <keyword>(a)?sec(d|h)?</keyword>
      <keyword>semilog(x|y)</keyword>
      <keyword>(a)?sin(d|h)?</keyword>
      <keyword>sprand(n|sym)?</keyword>
      <keyword>sqrt(m)?</keyword>
      <keyword>stem(3)?</keyword>
      <keyword>str2(double|func|mat|num)</keyword>
      <keyword>str(cat|(n)?cmp(i)?|find|just|match|rep|tok|trim)</keyword>
      <keyword>surf(ace|c|l|norm)?</keyword>
      <keyword>(a)?tan(d|h)?</keyword>
      <keyword>(un)?tar</keyword>
      <keyword>temp(dir|name)</keyword>
      <keyword>t(i|o)c</keyword>
      <keyword>(m)?times</keyword>
      <keyword>(inferior|superior)to</keyword>
      <keyword>(c)?transpose</keyword>
      <keyword>tri(mesh|plot|surf)</keyword>
      <keyword>url(read|write)</keyword>
      <keyword>voronoi(n)?</keyword>
      <keyword>who(s)?</keyword>
      <keyword>wav(read|write)</keyword>
      <keyword>(g|gun|un)?zip</keyword>
      <keyword>(b|bun)zip2</keyword>
      <keyword>abs</keyword>
      <keyword>accumarray</keyword>
      <keyword>addlistener</keyword>
      <keyword>addpath</keyword>
      <keyword>addproperty</keyword>
      <keyword>addtodate</keyword>
      <keyword>airy</keyword>
      <keyword>all</keyword>
      <keyword>allchild</keyword>
      <keyword>amd</keyword>
      <keyword>ancestor</keyword>
      <keyword>angle</keyword>
      <keyword>any</keyword>
      <keyword>area</keyword>
      <keyword>arrayfun</keyword>
      <keyword>assert</keyword>
      <keyword>assignin</keyword>
      <keyword>atan2</keyword>
      <keyword>axes</keyword>
      <keyword>axis</keyword>
      <keyword>balance</keyword>
      <keyword>base2dec</keyword>
      <keyword>beep</keyword>
      <keyword>bicgstab</keyword>
      <keyword>bin2dec</keyword>
      <keyword>blanks</keyword>
      <keyword>blkdiag</keyword>
      <keyword>box</keyword>
      <keyword>brighten</keyword>
      <keyword>bsxfun</keyword>
      <keyword>builtin</keyword>
      <keyword>calendar</keyword>
      <keyword>cast</keyword>
      <keyword>caxis</keyword>
      <keyword>cd</keyword>
      <keyword>ceil</keyword>
      <keyword>celldisp</keyword>
      <keyword>cellfun</keyword>
      <keyword>cgs</keyword>
      <keyword>char</keyword>
      <keyword>chol</keyword>
      <keyword>cholupdate</keyword>
      <keyword>circshift</keyword>
      <keyword>cla</keyword>
      <keyword>clabel</keyword>
      <keyword>class</keyword>
      <keyword>clc</keyword>
      <keyword>clear</keyword>
      <keyword>clf</keyword>
      <keyword>clock</keyword>
      <keyword>colorbar</keyword>
      <keyword>colormap</keyword>
      <keyword>columns</keyword>
      <keyword>comet</keyword>
      <keyword>compan</keyword>
      <keyword>compass</keyword>
      <keyword>complex</keyword>
      <keyword>computer</keyword>
      <keyword>conj</keyword>
      <keyword>contrast</keyword>
      <keyword>copyfile</keyword>
      <keyword>corrcoef</keyword>
      <keyword>cov</keyword>
      <keyword>cplxpair</keyword>
      <keyword>cputime</keyword>
      <keyword>cross</keyword>
      <keyword>cylinder</keyword>
      <keyword>deal</keyword>
      <keyword>deblank</keyword>
      <keyword>deconv</keyword>
      <keyword>del2</keyword>
      <keyword>demo</keyword>
      <keyword>det</keyword>
      <keyword>detrend</keyword>
      <keyword>diag</keyword>
      <keyword>diary</keyword>
      <keyword>diff</keyword>
      <keyword>diffuse</keyword>
      <keyword>dir</keyword>
      <keyword>disp</keyword>
      <keyword>display</keyword>
      <keyword>dmperm</keyword>
      <keyword>doc</keyword>
      <keyword>dos</keyword>
      <keyword>dot</keyword>
      <keyword>double</keyword>
      <keyword>drawnow</keyword>
      <keyword>echo</keyword>
      <keyword>edit</keyword>
      <keyword>ellipsoid</keyword>
      <keyword>eomday</keyword>
      <keyword>eps</keyword>
      <keyword>error</keyword>
      <keyword>errorbar</keyword>
      <keyword>etime</keyword>
      <keyword>exist</keyword>
      <keyword>exit</keyword>
      <keyword>eye</keyword>
      <keyword>factor</keyword>
      <keyword>factorial</keyword>
      <keyword>false</keyword>
      <keyword>feather</keyword>
      <keyword>feof</keyword>
      <keyword>ferror</keyword>
      <keyword>feval</keyword>
      <keyword>fftw</keyword>
      <keyword>fieldnames</keyword>
      <keyword>figure</keyword>
      <keyword>fill</keyword>
      <keyword>find</keyword>
      <keyword>findall</keyword>
      <keyword>findobj</keyword>
      <keyword>findstr</keyword>
      <keyword>fix</keyword>
      <keyword>floor</keyword>
      <keyword>format</keyword>
      <keyword>frewind</keyword>
      <keyword>fsolve</keyword>
      <keyword>full</keyword>
      <keyword>fullfile</keyword>
      <keyword>func2str</keyword>
      <keyword>functions</keyword>
      <keyword>fzero</keyword>
      <keyword>gca</keyword>
      <keyword>gcd</keyword>
      <keyword>gcf</keyword>
      <keyword>genpath</keyword>
      <keyword>genvarname</keyword>
      <keyword>get</keyword>
      <keyword>getenv</keyword>
      <keyword>getfield</keyword>
      <keyword>gradient</keyword>
      <keyword>gtext</keyword>
      <keyword>hadamard</keyword>
      <keyword>hankel</keyword>
      <keyword>help</keyword>
      <keyword>hess</keyword>
      <keyword>hggroup</keyword>
      <keyword>hidden</keyword>
      <keyword>hilb</keyword>
      <keyword>hold</keyword>
      <keyword>home</keyword>
      <keyword>hsv2rgb</keyword>
      <keyword>hypot</keyword>
      <keyword>idivide</keyword>
      <keyword>info</keyword>
      <keyword>inline</keyword>
      <keyword>inpolygon</keyword>
      <keyword>inputname</keyword>
      <keyword>int2str</keyword>
      <keyword>intersect</keyword>
      <keyword>intwarning</keyword>
      <keyword>invhilb</keyword>
      <keyword>iqr</keyword>
      <keyword>jet</keyword>
      <keyword>keyboard</keyword>
      <keyword>kron</keyword>
      <keyword>lcm</keyword>
      <keyword>legend</keyword>
      <keyword>legendre</keyword>
      <keyword>length</keyword>
      <keyword>license</keyword>
      <keyword>lin2mu</keyword>
      <keyword>line</keyword>
      <keyword>linkprop</keyword>
      <keyword>linspace</keyword>
      <keyword>list</keyword>
      <keyword>loglog</keyword>
      <keyword>lookfor</keyword>
      <keyword>lower</keyword>
      <keyword>ls</keyword>
      <keyword>lsqnonneg</keyword>
      <keyword>magic</keyword>
      <keyword>matlabroot</keyword>
      <keyword>mean</keyword>
      <keyword>median</keyword>
      <keyword>menu</keyword>
      <keyword>methods</keyword>
      <keyword>mex</keyword>
      <keyword>mexext</keyword>
      <keyword>mfilename</keyword>
      <keyword>minus</keyword>
      <keyword>mislocked</keyword>
      <keyword>mkdir</keyword>
      <keyword>mkpp</keyword>
      <keyword>mlock</keyword>
      <keyword>mod</keyword>
      <keyword>mode</keyword>
      <keyword>more</keyword>
      <keyword>movefile</keyword>
      <keyword>mu2lin</keyword>
      <keyword>munlock</keyword>
      <keyword>NA</keyword>
      <keyword>namelengthmax</keyword>
      <keyword>nchoosek</keyword>
      <keyword>ndgrid</keyword>
      <keyword>ndims</keyword>
      <keyword>nextpow2</keyword>
      <keyword>nnz</keyword>
      <keyword>nonzeros</keyword>
      <keyword>norm</keyword>
      <keyword>normest</keyword>
      <keyword>now</keyword>
      <keyword>nthroot</keyword>
      <keyword>null</keyword>
      <keyword>numel</keyword>
      <keyword>nzmax</keyword>
      <keyword>ones</keyword>
      <keyword>orderfields</keyword>
      <keyword>orient</keyword>
      <keyword>orth</keyword>
      <keyword>pack</keyword>
      <keyword>pareto</keyword>
      <keyword>pascal</keyword>
      <keyword>patch</keyword>
      <keyword>path</keyword>
      <keyword>pathsep</keyword>
      <keyword>pause</keyword>
      <keyword>pcg</keyword>
      <keyword>pchip</keyword>
      <keyword>pcolor</keyword>
      <keyword>peaks</keyword>
      <keyword>perl</keyword>
      <keyword>perms</keyword>
      <keyword>pi</keyword>
      <keyword>pie</keyword>
      <keyword>pinv</keyword>
      <keyword>pkg</keyword>
      <keyword>planerot</keyword>
      <keyword>pol2cart</keyword>
      <keyword>polar</keyword>
      <keyword>polyarea</keyword>
      <keyword>pow2</keyword>
      <keyword>power</keyword>
      <keyword>ppval</keyword>
      <keyword>primes</keyword>
      <keyword>print_usage</keyword>
      <keyword>psi</keyword>
      <keyword>pwd</keyword>
      <keyword>quit</keyword>
      <keyword>qz</keyword>
      <keyword>rank</keyword>
      <keyword>rcond</keyword>
      <keyword>record</keyword>
      <keyword>rectint</keyword>
      <keyword>refresh</keyword>
      <keyword>refreshdata</keyword>
      <keyword>rehash</keyword>
      <keyword>rem</keyword>
      <keyword>rename</keyword>
      <keyword>repmat</keyword>
      <keyword>reshape</keyword>
      <keyword>residue</keyword>
      <keyword>restoredefaultpath</keyword>
      <keyword>ribbon</keyword>
      <keyword>rmdir</keyword>
      <keyword>rmfield</keyword>
      <keyword>rmpath</keyword>
      <keyword>roots</keyword>
      <keyword>rose</keyword>
      <keyword>rosser</keyword>
      <keyword>rot90</keyword>
      <keyword>round</keyword>
      <keyword>rows</keyword>
      <keyword>rref</keyword>
      <keyword>run</keyword>
      <keyword>schur</keyword>
      <keyword>set</keyword>
      <keyword>setdiff</keyword>
      <keyword>setenv</keyword>
      <keyword>setfield</keyword>
      <keyword>setstr</keyword>
      <keyword>setxor</keyword>
      <keyword>shading</keyword>
      <keyword>shg</keyword>
      <keyword>shiftdim</keyword>
      <keyword>sign</keyword>
      <keyword>size</keyword>
      <keyword>slice</keyword>
      <keyword>sort</keyword>
      <keyword>sortrows</keyword>
      <keyword>spalloc</keyword>
      <keyword>sparse</keyword>
      <keyword>spaugment</keyword>
      <keyword>spconvert</keyword>
      <keyword>spdiags</keyword>
      <keyword>specular</keyword>
      <keyword>speye</keyword>
      <keyword>spfun</keyword>
      <keyword>sph2cart</keyword>
      <keyword>sphere</keyword>
      <keyword>spinmap</keyword>
      <keyword>spline</keyword>
      <keyword>spones</keyword>
      <keyword>spparms</keyword>
      <keyword>sprank</keyword>
      <keyword>spy</keyword>
      <keyword>squeeze</keyword>
      <keyword>stairs</keyword>
      <keyword>std</keyword>
      <keyword>struct</keyword>
      <keyword>struct2cell</keyword>
      <keyword>structfun</keyword>
      <keyword>strvcat</keyword>
      <keyword>sub2ind</keyword>
      <keyword>subsasgn</keyword>
      <keyword>subsindex</keyword>
      <keyword>subspace</keyword>
      <keyword>subsref</keyword>
      <keyword>substruct</keyword>
      <keyword>svd</keyword>
      <keyword>svds</keyword>
      <keyword>swapbytes</keyword>
      <keyword>symamd</keyword>
      <keyword>symbfact</keyword>
      <keyword>symrcm</keyword>
      <keyword>symvar</keyword>
      <keyword>system</keyword>
      <keyword>text</keyword>
      <keyword>time</keyword>
      <keyword>title</keyword>
      <keyword>toeplitz</keyword>
      <keyword>trace</keyword>
      <keyword>treelayout</keyword>
      <keyword>tril</keyword>
      <keyword>triu</keyword>
      <keyword>true</keyword>
      <keyword>type</keyword>
      <keyword>typecast</keyword>
      <keyword>union</keyword>
      <keyword>unique</keyword>
      <keyword>unix</keyword>
      <keyword>unmkpp</keyword>
      <keyword>unwrap</keyword>
      <keyword>upper</keyword>
      <keyword>validatestring</keyword>
      <keyword>values</keyword>
      <keyword>vander</keyword>
      <keyword>var</keyword>
      <keyword>vectorize</keyword>
      <keyword>ver</keyword>
      <keyword>version</keyword>
      <keyword>view</keyword>
      <keyword>waitforbuttonpress</keyword>
      <keyword>warning</keyword>
      <keyword>weekday</keyword>
      <keyword>what</keyword>
      <keyword>wilkinson</keyword>
      <keyword>zeros</keyword>
    </context>

    <context id="octave" class="no-spell-check">
      <include>
        <context ref="def:shebang"/>
        <context ref="block-comment"/>
        <context ref="line-comment"/>
        <context ref="line-continue"/>
        <context ref="printf-format"/>
        <context ref="escape"/>
        <context ref="double-quoted-string"/>
        <context ref="single-quoted-string"/>
        <context ref="operator"/>
        <context ref="data-type"/>
        <context ref="function-handle"/>
        <context ref="boolean"/>
        <context ref="decimal"/>
        <context ref="floating-point-number"/>
        <context ref="octal-number"/>
        <context ref="hex-number"/>
        <context ref="variables"/>
        <context ref="reserved-constant"/>
        <context ref="package-manager"/>
        <context ref="keyword"/>
        <context ref="builtin"/>
      </include>
    </context>
  </definitions>
</language>
