~ubuntu-branches/debian/lenny/octave3.0/lenny

« back to all changes in this revision

Viewing changes to debian/octave.st

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2007-12-23 16:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071223160415-jfriqav7corvoi9d
Tags: 3.0.0-1
The "Seasons Greetings" release

* New upstream release.  A big thanks to John W. Eaton and all the
  Octave development team for this most awaited release.

* debian/in/control, debian/rules: Replaced most of the references to
  octave2.9 by octave3.0.  Made all octave3.0* packages
  provide/replace/conflict with the respective octave2.9* packages.
* debian/patches/02_prelease_warning.dpatch: Dropped patch, since this
  is the real 3.0 release
* debian/in/control: Dropped the build-conflict with atlas3-base-dev.
  This will make the autobuilders happy.
* debian/in/control: Dropped the empty octave package.  This will allow
  releasing octave3.0 without an epoch in its version number.  We will
  reintroduce this package later, if necessary (anyway, octave3.0
  provides octave).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Name: octave
 
3
 * Description: Octave programming language.
 
4
 * Author: Rafael Laboissiere <rafael@laboissiere.net>
 
5
 * (based on the Matlab version by Jack Dunn <h.j.dunn@larc.nasa.gov>)
 
6
 */
 
7
 
 
8
octave_keyword_re =
 
9
/\b(break|cl(ear|ose)|e(nd|lse|lseif|rror)|end(if|f(or|unction)|switch|while)|f(or|unction)|if|keyboard|otherwise \
 
10
|quit|return|switch|while)\b/;
 
11
 
 
12
/* Taken fron the Matlab Function Reference, version 5.2 */
 
13
octave_type_re =
 
14
/\b(abs|acopy|acos|acosh|acot|acoth|acsc|acsch|addpath|airy|all|and|angle|ans|any\
 
15
|arc(cosecant|cosine|cotangent|secant|sine|tangent)|area\
 
16
|arename|asech|asin|asinh|atan(|2)|atanh|axes|axis|balance|bar(|3|3h|h)\
 
17
|base2dec|bessel(h|i|j|k|y)|beta(|inc|ln)\
 
18
|bicgstab|bin2dec|bit(and|cmp|get|max|or|set|shift|xor)|blanks\
 
19
|box|brighten|builtin|calendar|cam(dolly|light|lookat|orbit|pan|pos|proj\
 
20
|roll|target|up|va|zoom)|capture|case|cat(|ch)|caxis|cd|cdf2rdf\
 
21
|cell(|2struct|plot)|cgs|char|chol(|inc|update)|cla(|bel|ss)\
 
22
|clc|clf|clock|col(mmd|or(bar|map)|perm)|com(bs|et|et3|pa(n|ss))|computer\
 
23
|cond(|eig|est)|conj|con(tour(|3|c|f))|contrast|conv(|2)|convhull|conv\
 
24
|copy(file|obj)|corrcoef|cos|cosh|cot|coth|cov|cplxpair|cputime|cross\
 
25
|csc|csch|cum(prod|trapz)|cylinder|daspect|date|date(num|str|vec)\
 
26
|db(clear|cont|down|mex|quit|stack|status|step|stop|type|up)\
 
27
|dd(eadv|eexec|einit|epoke|ereq|eterm|eunadv)|de(al|blank|(c2(base|bin|hex))\
 
28
|conv)|default4|del2|delaunay|de(lete|t)|diag|diary|diff|dir|disp\
 
29
|dlm(read|writ)|dmperm|double|dragrect|drawnow|dsearch|echo|eig|eigs|ellipj\
 
30
|ellipke|eomday|eps|erf(|c|cx)|etime|eval|evalin|exist|exp|expint|expm|eye\
 
31
|ezplot|factor|fclose|feather|feof|ferror|feval|fft(|2|n|shift)\
 
32
|fget(l|s)|fid|figflag|figure|fileparts|fill|fill3|filter(|2)|find(|obj|str)\
 
33
|fix|flip(dim|lr|ud)|floor|flops|fmin(|s)|fopen|format|fplot|fprintf\
 
34
|frame(2im|edit)|fread|freqspace|frewind|fscanf|fseek|ftell|full|funm|fwrite\
 
35
|fzero|gallery|gamma(|inc|ln)|g(ca|cd|cf|co)|gestalt|get(|field|frame)\
 
36
|ginput|global|gmres|gplot|gradient|graymon|grid(|data)|gsvd|gtext|hadamard\
 
37
|hankel|hdf|help|hess|hex2(dec|num)|hidden|hilb|hist|hold|home|horzcat\
 
38
|hsv2rgb|i|ifft(|2|n|shift)|im2frame|imag|image|imagesc|im(finfo|read|write)\
 
39
|ind2sub|Inf|inferiorto|inline|inpolygon|input|int2str|interp(1|2|3|ft|n)\
 
40
|intersect|inv|invhilb|ipermute|is(a|cell(|str)|char|empty|equal|field\
 
41
|finite|global|handle|hold|ieee|inf|letter|logical|member|nan|numeric\
 
42
|object|ppc|prime|real|space|sparse|str|struct|student|unix|vms)\
 
43
|j|kron|last(err|warn)|lcm|ldivide|legend(|re)|length|light(|angle|ing)\
 
44
|lin2mu|line|linspace|load|log(|10|2|ical)|loglog(|m|space)|lookfor\
 
45
|lower|lscov|lu|luinc|magic|mat2str|material|max|mean|median|menu\
 
46
|mesh(|c|grid|z)|min|minus|mislocked|mkdir|ml(divide|ock)|mod|more|movie(|in)\
 
47
|mpower|mrdivide|mtimes|mu2lin|munlock|NaN|narg(chk|in|out)|nd(grid|ims)\
 
48
|newplot|nextpow2|nnls|nnz|nonzeros|norm|normest|not|now|null|num2(cell|str)\
 
49
|nzmax|ode(45|file|get|set)|ones|or|orient|orth|pack|pagedlg|pareto|pascal\
 
50
|patch|path|pause|pbaspect|pcg|pcode|pcolor|perms|permute|persistent\
 
51
|pi|pie(|,3)|pinv|plot(|3|matrix|yy)|plus|pol2cart|polar|poly(|area|der\
 
52
|eig|fit|val|valm)|pow2|power|primes|print(|dlg|frame|opt)|prod\
 
53
|profile|qmr|qr(|delete|insert)|qtwrite|quad|quad8|quiver(|3)|qz\
 
54
|rand(|n|perm)|rank|rat(|s)|rbbox|rcond|rdivide|readsnd|real(|max|min)\
 
55
|recordsound|refresh|rem|repmat|reset|reshape|residue|rgb(2hsv|plot)\
 
56
|ribbon|rmfield|rmpath|roots|rose|rot90|rotate(|3d)|round|rref(|movie)\
 
57
|rsf2csf|save|scatter(|3)|schur|script|sech|semilog(x|y)|set(|diff|feild|xor)\
 
58
|shading|shiftdim|sign|sin|sinh|size|slice|sliders|sort|sortrows|sound(|cap)\
 
59
|sp(alloc|arse|convert|diags|eak|eye|fun|h2cart|here|inmap|line\
 
60
|ones|parms|rand|randn|randsym|rintf|y)|sqrt(|m)|squeeze|sscanf|stairs\
 
61
|startup|std|stem(|3)|str(2(cell|num)|cat|cmp|cmpi|ings|just|match|ncmp\
 
62
|ncmpi|rep|tok|uct2cell,vcat)|sub(2ind|plot|s(asgn|pace|ref))|sum|superiorto\
 
63
|surf(|ace|c|l|norm)|svd(|s)|sym(mmd|rcm)|tan|tanh|tempdir|tempname\
 
64
|terminal|text|tic|times|title|toc|toeplitz|trace|transpose|trapz\
 
65
|tri(l|mesh|surf|u)|try|tsearch|type|ui(control|getfile|menu|nt8|putfile\
 
66
|resume|setcolor|setfont)|uminus|union|unique|unwrap|uplus|upper|varargout\
 
67
|vectorize|ver(|sion|tcat)|view|viewmtx|voronoi|wait(bar|for(|buttonpress))\
 
68
|warndlg|warning|waterfall|wav(read|write)|weekday|what(|snew)|which|who(|s)\
 
69
|wilkinson|wk1(read|write)|writesnd|xlabel|xlgetrange|xlim|xlsetrange|xor\
 
70
|ylabel|ylim|zeros|zlabel|zlim|zoom\
 
71
)\b/;
 
72
 
 
73
state octave_string_single_quotes extends Highlight
 
74
{
 
75
  /\\\\./ {
 
76
    language_print ($0);
 
77
  }
 
78
  /[\']/ {
 
79
    language_print ($0);
 
80
    return;
 
81
  }
 
82
}
 
83
 
 
84
state octave_string_double_quotes extends Highlight
 
85
{
 
86
  /\\\\./ {
 
87
    language_print ($0);
 
88
  }
 
89
  /"/ {
 
90
    language_print ($0);
 
91
    return;
 
92
  }
 
93
}
 
94
 
 
95
state octave extends HighlightEntry
 
96
{
 
97
  /* Comments. */
 
98
  /(%|#)/ {
 
99
    comment_face (true);
 
100
    language_print ($0);
 
101
    call (eat_one_line);
 
102
    comment_face (false);
 
103
  }
 
104
 
 
105
  /* Continuation. */
 
106
  /\.\.\./ {
 
107
    keyword_face (true);
 
108
    language_print ($0);
 
109
    keyword_face (false);
 
110
  }
 
111
 
 
112
  /* Matrix start.  */
 
113
  /\[/ {
 
114
    type_face (true);
 
115
    language_print ($0);
 
116
    type_face (false);
 
117
  }
 
118
 
 
119
  /* Matrix end. */
 
120
  /\]/ {
 
121
    type_face (true);
 
122
    language_print ($0);
 
123
    type_face (false);
 
124
  }
 
125
 
 
126
  octave_type_re {
 
127
    type_face (true);
 
128
    language_print ($0);
 
129
    type_face (false);
 
130
  }
 
131
 
 
132
  octave_keyword_re {
 
133
     keyword_face (true);
 
134
     language_print($0);
 
135
     keyword_face (false);
 
136
  }
 
137
 
 
138
  /* Transpose. */
 
139
  /* variable' or )' */
 
140
  /([a-zA-Z][a-zA-Z_0-9]*|\))([\'])/ {
 
141
    language_print ($1);
 
142
    keyword_face (true);
 
143
    language_print ($2);
 
144
    keyword_face (false);
 
145
  }
 
146
  /* ]' */
 
147
  /([a-zA-Z][a-zA-Z_0-9]*|])([\'])/ {
 
148
    type_face (true);
 
149
    language_print ($1);
 
150
    type_face (false);
 
151
    keyword_face (true);
 
152
    language_print ($2);
 
153
    keyword_face (false);
 
154
  }
 
155
 
 
156
  /* Strings. */
 
157
  /*  'any number of characters'  */
 
158
  /[\']/ {
 
159
    string_face (true);
 
160
    language_print ($0);
 
161
    call (octave_string_single_quotes);
 
162
    string_face (false);
 
163
  }
 
164
  /*  "any number of characters"  */
 
165
  /["]/ {
 
166
    string_face (true);
 
167
    language_print ($0);
 
168
    call (octave_string_double_quotes);
 
169
    string_face (false);
 
170
  }
 
171
}
 
172
 
 
173
 
 
174
/*
 
175
Local variables:
 
176
mode: c
 
177
End:
 
178
*/