2 # User Sturla Molden <sturla@molden.no>
3 # Date 1256723843 25200
4 # Node ID 0a6ce52272f641d58c874fa007187778d4c2c81c
5 # Parent db4133d43a7ee34d4f172aced054785acba65a57
6 Syntax highlighting for Cython and NumPy for KATE and KDevelop.
8 diff -r db4133d43a7e -r 0a6ce52272f6 Tools/cython-numpy-mode-kate.xml
9 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10 +++ b/Tools/cython-numpy-mode-kate.xml Wed Oct 28 02:57:23 2009 -0700
12 +<?xml version="1.0" encoding="UTF-8"?>
14 +<!-- Python syntax highlightning v0.9 by Per Wigren -->
15 +<!-- Python syntax highlighting v1.9 by Michael Bueker (improved keyword differentiation) -->
16 +<!-- Python syntax highlighting v1.97 by Paul Giannaros -->
17 +<!-- Pyrex syntax highlighting v0.1 by Matthew Marshall -->
18 +<!-- Cython syntax highlighting v1.0 by Martin Gysel -->
19 +<!-- Cython syntax highlighting v2.0 by Sturla Molden -->
23 +Disclaimer: IANAL. This file is a derivative work of KDE's Python
24 +syntax file. KDE does not specify a license for the syntax file python.xml
25 +in it's katepart component. However, katepart and KATE as a whole is
26 +released with LGPL v2. Assuing python.xml is LGPL'd, this file is hereby
27 +released with the same license. Note that this only applies to this XML
28 +file. It does not apply to any work written using this file to highlighting
29 +syntax. Any changes you make to this file will be covered by the LGPL,
30 +but it does not to my knowledge taint your source code. At least not
31 +any more than using KDE would do. Sturla Molden
35 +This library is free software; you can redistribute it and/or
36 +modify it under the terms of the GNU Library General Public
37 +License as published by the Free Software Foundation; either
38 +version 2 of the License, or (at your option) any later version.
40 +This library is distributed in the hope that it will be useful,
41 +but WITHOUT ANY WARRANTY; without even the implied warranty of
42 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
43 +Library General Public License for more details.
45 +You should have received a copy of the GNU Library General Public
46 +License along with this library; if not, write to the
47 +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
48 +Boston, MA 02110-1301, USA.
54 +<language name="Cython with NumPy" version="1.1" kateversion="2.4" section="Sources" extensions="*.pyx;*.pxi;*.pxd" mimetype="application/x-cython;text/x-cython" casesensitive="1" author="Sturla Molden" license="LGPL">
59 + <list name="imports">
60 + <item> cimport </item>
61 + <item> import </item>
70 + <item> include </item>
73 + <item> class </item>
74 + <item> cpdef </item>
79 + <item> ctypedef </item>
82 + <item> extern </item>
85 + <item> global </item>
86 + <item> property </item>
87 + <item> nogil </item>
89 + <item> inline </item>
91 + <list name="access">
92 + <item> readonly </item>
93 + <item> public </item>
95 + <list name="operators">
97 + <item> assert </item>
103 + <item> sizeof </item>
105 + <list name="commands">
106 + <!-- <item> exec </item> -->
107 + <item> print </item>
110 + <item> break </item>
111 + <item> continue </item>
112 + <item> elif </item>
113 + <item> else </item>
114 + <item> except </item>
115 + <item> finally </item>
118 + <item> pass </item>
119 + <item> raise </item>
120 + <item> return </item>
122 + <item> while </item>
123 + <item> with </item>
124 + <!-- <item> yield </item> -->
126 + <list name="builtinfuncs">
127 + <item> __import__ </item>
131 + <item> apply </item>
132 + <item> basestring </item>
133 + <item> buffer </item>
134 + <item> callable </item>
136 + <item> classmethod </item>
138 + <item> coerce </item>
139 + <item> compile </item>
140 + <item> delattr </item>
142 + <item> divmod </item>
143 + <item> enumerate </item>
144 + <item> eval </item>
145 + <item> execfile </item>
146 + <item> filter </item>
147 + <item> getattr </item>
148 + <!-- <item> globals </item> -->
149 + <item> hasattr </item>
150 + <item> hash </item>
153 + <item> input </item>
154 + <item> intern </item>
155 + <item> isinstance </item>
156 + <item> issubclass </item>
157 + <item> iter </item>
159 + <!-- <item> locals </item> -->
164 + <item> open </item>
167 + <!-- <item> property </item> -->
168 + <item> range </item>
169 + <item> raw_input </item>
170 + <item> reduce </item>
171 + <item> reload </item>
172 + <item> repr </item>
173 + <item> reversed </item>
174 + <item> round </item>
175 + <item> setattr </item>
176 + <item> sorted </item>
177 + <item> staticmethod </item>
179 + <item> super </item>
180 + <item> type </item>
181 + <item> unichr </item>
182 + <item> unicode </item>
183 + <!-- <item> vars </item> -->
184 + <item> xrange </item>
187 + <list name="ctypes">
188 + <!-- native types -->
189 + <item> unsigned </item>
190 + <item> void </item>
191 + <item> enum </item>
192 + <item> double </item>
193 + <item> long </item>
194 + <item> short </item>
195 + <item> char </item>
196 + <item> Py_ssize_t </item>
197 + <item> Py_intptr_t </item>
198 + <item> Py_buffer </item>
199 + <item> bint </item>
200 + <item> struct </item>
201 + <item> union </item>
202 + <item> enum </item>
203 + <!-- python types -->
205 + <list name="pytypes">
207 + <item> float </item>
208 + <item> object </item>
209 + <item> list </item>
210 + <item> tuple </item>
212 + <item> dict </item>
214 + <item> frozenset </item>
215 + <item> slice </item>
216 + <item> bool </item>
217 + <item> complex </item>
218 + <item> file </item>
219 + <!-- numpy types -->
221 + <list name="numpyselector">
223 + <item> numpy </item>
225 + <list name="numpymodule">
226 + <item> numpy </item>
228 + <list name="cythonmodule">
229 + <item> cython </item>
231 + <list name="numpytypes">
232 + <item> dtype </item>
233 + <item> flatiter </item>
234 + <item> broadcast </item>
235 + <item> ndarray </item>
236 + <item> int8_t </item>
237 + <item> int16_t </item>
238 + <item> int32_t </item>
239 + <item> int64_t </item>
240 + <item> uint8_t </item>
241 + <item> uint16_t </item>
242 + <item> uint32_t </item>
243 + <item> uint64_t </item>
244 + <item> float32_t </item>
245 + <item> float64_t </item>
246 + <item> complex64_t </item>
247 + <item> complex128_t </item>
248 + <item> int_t </item>
249 + <item> long_t </item>
250 + <item> uint_t </item>
251 + <item> ulong_t </item>
252 + <item> float_t </item>
253 + <item> double_t </item>
254 + <item> longdouble_t </item>
255 + <item> cfloat_t </item>
256 + <item> cdouble_t </item>
257 + <item> clongdouble_t </item>
258 + <item> complex_t </item>
259 + <item> npy_int8 </item>
260 + <item> npy_int16 </item>
261 + <item> npy_int32 </item>
262 + <item> npy_int64 </item>
263 + <item> npy_int96 </item>
264 + <item> npy_int128 </item>
265 + <item> npy_uint8 </item>
266 + <item> npy_uint16 </item>
267 + <item> npy_uint32 </item>
268 + <item> npy_uint64 </item>
269 + <item> npy_uint96 </item>
270 + <item> npy_uint128 </item>
271 + <item> npy_float32 </item>
272 + <item> npy_float64 </item>
273 + <item> npy_float80 </item>
274 + <item> npy_float96 </item>
275 + <item> npy_float128 </item>
276 + <item> npy_complex64 </item>
277 + <item> npy_complex128 </item>
278 + <item> npy_complex120 </item>
279 + <item> npy_complex192 </item>
280 + <item> npy_complex256 </item>
281 + <item> npy_cfloat </item>
282 + <item> npy_cdouble </item>
283 + <item> npy_clongdouble </item>
284 + <item> npy_bool </item>
285 + <item> npy_byte </item>
286 + <item> npy_short </item>
287 + <item> npy_int </item>
288 + <item> npy_long </item>
289 + <item> npy_longlong </item>
290 + <item> npy_ubyte </item>
291 + <item> npy_ushort </item>
292 + <item> npy_uint </item>
293 + <item> npy_ulong </item>
294 + <item> npy_ulonglong </item>
295 + <item> npy_float </item>
296 + <item> npy_double </item>
297 + <item> npy_longdouble </item>
298 + <item> npy_intp </item>
300 + <list name="numpyfuncs">
301 + <item> DataSource </item>
302 + <item> MachAr </item>
303 + <item> PackageLoader </item>
304 + <item> RankWarning </item>
305 + <item> Tester </item>
307 + <item> absolute </item>
309 + <item> add_docstring </item>
310 + <item> add_newdoc </item>
311 + <item> alen </item>
313 + <item> allclose </item>
314 + <item> alltrue </item>
315 + <item> alterdot </item>
316 + <item> amax </item>
317 + <item> amin </item>
318 + <item> angle </item>
320 + <item> append </item>
321 + <item> apply_along_axis </item>
322 + <item> apply_over_axes </item>
323 + <item> arange </item>
324 + <item> arccos </item>
325 + <item> arccosh </item>
326 + <item> arcsin </item>
327 + <item> arcsinh </item>
328 + <item> arctan </item>
329 + <item> arctan2 </item>
330 + <item> arctanh </item>
331 + <item> argmax </item>
332 + <item> argmin </item>
333 + <item> argsort </item>
334 + <item> argwhere </item>
335 + <item> around </item>
336 + <item> array </item>
337 + <item> array2string </item>
338 + <item> array_equal </item>
339 + <item> array_equiv </item>
340 + <item> array_repr </item>
341 + <item> array_split </item>
342 + <item> array_str </item>
343 + <item> asanyarray </item>
344 + <item> asarray </item>
345 + <item> asarray_chkfinite </item>
346 + <item> ascontiguousarray </item>
347 + <item> asfarray </item>
348 + <item> asfortranarray </item>
349 + <item> asmatrix </item>
350 + <item> asscalar </item>
351 + <item> atleast_1d </item>
352 + <item> atleast_2d </item>
353 + <item> atleast_3d </item>
354 + <item> average </item>
355 + <item> bartlett </item>
356 + <item> base_repr </item>
357 + <item> bench </item>
358 + <item> binary_repr </item>
359 + <item> bincount </item>
360 + <item> bitwise_and </item>
361 + <item> bitwise_not </item>
362 + <item> bitwise_or </item>
363 + <item> bitwise_xor </item>
364 + <item> blackman </item>
365 + <item> bmat </item>
366 + <item> bool </item>
367 + <item> bool8 </item>
368 + <item> bool_ </item>
369 + <item> broadcast </item>
370 + <item> broadcast_arrays </item>
371 + <item> byte </item>
372 + <item> byte_bounds </item>
373 + <item> can_cast </item>
374 + <item> cdouble </item>
375 + <item> ceil </item>
376 + <item> cfloat </item>
377 + <item> character </item>
378 + <item> chararray </item>
379 + <item> choose </item>
380 + <item> clip </item>
381 + <item> clongdouble </item>
382 + <item> clongfloat </item>
383 + <item> column_stack </item>
384 + <item> common_type </item>
385 + <item> compare_chararrays </item>
386 + <item> complex </item>
387 + <item> complex128 </item>
388 + <item> complex192 </item>
389 + <item> complex64 </item>
390 + <item> complex_ </item>
391 + <item> complexfloating </item>
392 + <item> compress </item>
393 + <item> concatenate </item>
394 + <item> conj </item>
395 + <item> conjugate </item>
396 + <item> convolve </item>
397 + <item> copy </item>
398 + <item> corrcoef </item>
399 + <item> correlate </item>
401 + <item> cosh </item>
403 + <item> cross </item>
404 + <item> csingle </item>
405 + <item> cumprod </item>
406 + <item> cumproduct </item>
407 + <item> cumsum </item>
408 + <item> deg2rad </item>
409 + <item> degrees </item>
410 + <item> delete </item>
411 + <item> deprecate </item>
412 + <item> deprecate_with_doc </item>
413 + <item> diag </item>
414 + <item> diagflat </item>
415 + <item> diagonal </item>
416 + <item> diff </item>
417 + <item> digitize </item>
418 + <item> disp </item>
419 + <item> divide </item>
421 + <item> double </item>
422 + <item> dsplit </item>
423 + <item> dstack </item>
424 + <item> dtype </item>
425 + <item> ediff1d </item>
426 + <item> empty </item>
427 + <item> empty_like </item>
428 + <item> equal </item>
429 + <item> errstate </item>
431 + <item> exp2 </item>
432 + <item> expand_dims </item>
433 + <item> expm1 </item>
434 + <item> extract </item>
436 + <item> fabs </item>
437 + <item> fastCopyAndTranspose </item>
438 + <item> find_common_type </item>
439 + <item> finfo </item>
441 + <item> flatiter </item>
442 + <item> flatnonzero </item>
443 + <item> flexible </item>
444 + <item> fliplr </item>
445 + <item> flipud </item>
446 + <item> float </item>
447 + <item> float32 </item>
448 + <item> float64 </item>
449 + <item> float96 </item>
450 + <item> float_ </item>
451 + <item> floating </item>
452 + <item> floor </item>
453 + <item> floor_divide </item>
454 + <item> fmax </item>
455 + <item> fmin </item>
456 + <item> fmod </item>
457 + <item> frexp </item>
458 + <item> frombuffer </item>
459 + <item> fromfile </item>
460 + <item> fromfunction </item>
461 + <item> fromiter </item>
462 + <item> frompyfunc </item>
463 + <item> fromregex </item>
464 + <item> fromstring </item>
466 + <item> generic </item>
467 + <item> genfromtxt </item>
468 + <item> get_array_wrap </item>
469 + <item> get_include </item>
470 + <item> get_numarray_include </item>
471 + <item> get_numpy_include </item>
472 + <item> get_printoptions </item>
473 + <item> getbuffer </item>
474 + <item> getbufsize </item>
475 + <item> geterr </item>
476 + <item> geterrcall </item>
477 + <item> geterrobj </item>
478 + <item> gradient </item>
479 + <item> greater </item>
480 + <item> greater_equal </item>
481 + <item> hamming </item>
482 + <item> hanning </item>
483 + <item> histogram </item>
484 + <item> histogram2d </item>
485 + <item> histogramdd </item>
486 + <item> hsplit </item>
487 + <item> hstack </item>
488 + <item> hypot </item>
490 + <item> identity </item>
491 + <item> imag </item>
492 + <item> indices </item>
493 + <item> inexact </item>
494 + <item> info </item>
495 + <item> inner </item>
496 + <item> insert </item>
498 + <item> int0 </item>
499 + <item> int16 </item>
500 + <item> int32 </item>
501 + <item> int64 </item>
502 + <item> int8 </item>
503 + <item> int_ </item>
504 + <item> int_asbuffer </item>
505 + <item> intc </item>
506 + <item> integer </item>
507 + <item> interp </item>
508 + <item> intersect1d </item>
509 + <item> intersect1d_nu </item>
510 + <item> intp </item>
511 + <item> invert </item>
512 + <item> ipmt </item>
514 + <item> iscomplex </item>
515 + <item> iscomplexobj </item>
516 + <item> isfinite </item>
517 + <item> isfortran </item>
518 + <item> isinf </item>
519 + <item> isnan </item>
520 + <item> isneginf </item>
521 + <item> isposinf </item>
522 + <item> isreal </item>
523 + <item> isrealobj </item>
524 + <item> isscalar </item>
525 + <item> issctype </item>
526 + <item> issubclass_ </item>
527 + <item> issubdtype </item>
528 + <item> issubsctype </item>
529 + <item> iterable </item>
531 + <item> kaiser </item>
532 + <item> kron </item>
533 + <item> ldexp </item>
534 + <item> left_shift </item>
535 + <item> less </item>
536 + <item> less_equal </item>
537 + <item> lexsort </item>
538 + <item> linspace </item>
539 + <item> load </item>
540 + <item> loads </item>
541 + <item> loadtxt </item>
543 + <item> log10 </item>
544 + <item> log1p </item>
545 + <item> log2 </item>
546 + <item> logaddexp </item>
547 + <item> logaddexp2 </item>
548 + <item> logical_and </item>
549 + <item> logical_not </item>
550 + <item> logical_or </item>
551 + <item> logical_xor </item>
552 + <item> logspace </item>
553 + <item> long </item>
554 + <item> longcomplex </item>
555 + <item> longdouble </item>
556 + <item> longfloat </item>
557 + <item> longlong </item>
558 + <item> lookfor </item>
559 + <item> mafromtxt </item>
561 + <item> matrix </item>
563 + <item> maximum </item>
564 + <item> maximum_sctype </item>
565 + <item> may_share_memory </item>
566 + <item> mean </item>
567 + <item> median </item>
568 + <item> memmap </item>
569 + <item> meshgrid </item>
571 + <item> minimum </item>
572 + <item> mintypecode </item>
573 + <item> mirr </item>
575 + <item> modf </item>
576 + <item> msort </item>
577 + <item> multiply </item>
578 + <item> nan_to_num </item>
579 + <item> nanargmax </item>
580 + <item> nanargmin </item>
581 + <item> nanmax </item>
582 + <item> nanmin </item>
583 + <item> nansum </item>
584 + <item> ndarray </item>
585 + <item> ndenumerate </item>
586 + <item> ndfromtxt </item>
587 + <item> ndim </item>
588 + <item> ndindex </item>
589 + <item> negative </item>
590 + <item> newbuffer </item>
591 + <item> nonzero </item>
592 + <item> not_equal </item>
593 + <item> nper </item>
595 + <item> number </item>
596 + <item> obj2sctype </item>
597 + <item> object </item>
598 + <item> object0 </item>
599 + <item> object_ </item>
600 + <item> ones </item>
601 + <item> ones_like </item>
602 + <item> outer </item>
603 + <item> packbits </item>
604 + <item> piecewise </item>
605 + <item> pkgload </item>
606 + <item> place </item>
608 + <item> poly </item>
609 + <item> poly1d </item>
610 + <item> polyadd </item>
611 + <item> polyder </item>
612 + <item> polydiv </item>
613 + <item> polyfit </item>
614 + <item> polyint </item>
615 + <item> polymul </item>
616 + <item> polysub </item>
617 + <item> polyval </item>
618 + <item> power </item>
619 + <item> ppmt </item>
620 + <item> prod </item>
621 + <item> product </item>
624 + <item> putmask </item>
626 + <item> rad2deg </item>
627 + <item> radians </item>
628 + <item> rank </item>
629 + <item> rate </item>
630 + <item> ravel </item>
631 + <item> real </item>
632 + <item> real_if_close </item>
633 + <item> recarray </item>
634 + <item> recfromcsv </item>
635 + <item> recfromtxt </item>
636 + <item> reciprocal </item>
637 + <item> record </item>
638 + <item> remainder </item>
639 + <item> repeat </item>
640 + <item> require </item>
641 + <item> reshape </item>
642 + <item> resize </item>
643 + <item> restoredot </item>
644 + <item> right_shift </item>
645 + <item> rint </item>
646 + <item> roll </item>
647 + <item> rollaxis </item>
648 + <item> roots </item>
649 + <item> rot90 </item>
650 + <item> round </item>
651 + <item> round_ </item>
652 + <item> row_stack </item>
653 + <item> safe_eval </item>
654 + <item> save </item>
655 + <item> savetxt </item>
656 + <item> savez </item>
657 + <item> sctype2char </item>
658 + <item> searchsorted </item>
659 + <item> select </item>
660 + <item> set_numeric_ops </item>
661 + <item> set_printoptions </item>
662 + <item> set_string_function </item>
663 + <item> setbufsize </item>
664 + <item> setdiff1d </item>
665 + <item> seterr </item>
666 + <item> seterrcall </item>
667 + <item> seterrobj </item>
668 + <item> setmember1d </item>
669 + <item> setxor1d </item>
670 + <item> shape </item>
671 + <item> short </item>
672 + <item> show_config </item>
673 + <item> sign </item>
674 + <item> signbit </item>
675 + <item> signedinteger </item>
677 + <item> sinc </item>
678 + <item> single </item>
679 + <item> singlecomplex </item>
680 + <item> sinh </item>
681 + <item> size </item>
682 + <item> sometrue </item>
683 + <item> sort </item>
684 + <item> sort_complex </item>
685 + <item> source </item>
686 + <item> split </item>
687 + <item> sqrt </item>
688 + <item> square </item>
689 + <item> squeeze </item>
692 + <item> str_ </item>
693 + <item> string0 </item>
694 + <item> string_ </item>
695 + <item> subtract </item>
697 + <item> swapaxes </item>
698 + <item> take </item>
700 + <item> tanh </item>
701 + <item> tensordot </item>
702 + <item> test </item>
703 + <item> tile </item>
704 + <item> trace </item>
705 + <item> transpose </item>
706 + <item> trapz </item>
708 + <item> tril </item>
709 + <item> trim_zeros </item>
710 + <item> triu </item>
711 + <item> true_divide </item>
712 + <item> trunc </item>
713 + <item> typename </item>
714 + <item> ubyte </item>
715 + <item> ufunc </item>
716 + <item> uint </item>
717 + <item> uint0 </item>
718 + <item> uint16 </item>
719 + <item> uint32 </item>
720 + <item> uint64 </item>
721 + <item> uint8 </item>
722 + <item> uintc </item>
723 + <item> uintp </item>
724 + <item> ulonglong </item>
725 + <item> unicode </item>
726 + <item> unicode0 </item>
727 + <item> unicode_ </item>
728 + <item> union1d </item>
729 + <item> unique </item>
730 + <item> unique1d </item>
731 + <item> unpackbits </item>
732 + <item> unravel_index </item>
733 + <item> unsignedinteger </item>
734 + <item> unwrap </item>
735 + <item> ushort </item>
736 + <item> vander </item>
738 + <item> vdot </item>
739 + <item> vectorize </item>
740 + <item> void </item>
741 + <item> void0 </item>
742 + <item> vsplit </item>
743 + <item> vstack </item>
744 + <item> where </item>
746 + <item> zeros </item>
747 + <item> zeros_like </item>
749 + <list name="specialvars">
750 + <item> __future__ </item>
751 + <item> __import__ </item>
752 + <item> __name__ </item>
753 + <item> __cythonbufferdefaults__ </item>
754 + <item> __weakref__ </item>
755 + <item> None </item>
756 + <item> self </item>
757 + <item> True </item>
758 + <item> False </item>
759 + <item> NotImplemented </item>
760 + <item> Ellipsis </item>
761 + <item> NULL </item>
763 + <list name="overloaders">
764 + <item>__new__</item>
765 + <item>__init__</item>
766 + <item> __cinit__ </item>
767 + <item> __dealloc__ </item>
768 + <item> __cmp__ </item>
769 + <item> __richcmp__ </item>
770 + <item> __str__ </item>
771 + <item> __repr__ </item>
772 + <item> __hash__ </item>
773 + <item> __call__ </item>
774 + <item> __iter__ </item>
775 + <item> __getattr__ </item>
776 + <item> __setattr__ </item>
777 + <item> __delattr__ </item>
778 + <item> __add__ </item>
779 + <item> __sub__ </item>
780 + <item> __mul__ </item>
781 + <item> __div__ </item>
782 + <item> __floordiv__ </item>
783 + <item> __truediv__ </item>
784 + <item> __mod__ </item>
785 + <item> __divmod__ </item>
786 + <item> __pow__ </item>
787 + <item> __neg__ </item>
788 + <item> __pos__ </item>
789 + <item> __abs__ </item>
790 + <item> __nonzero__ </item>
791 + <item> __invert__ </item>
792 + <item> __lshift__ </item>
793 + <item> __rshift__ </item>
794 + <item> __and__ </item>
795 + <item> __or__ </item>
796 + <item> __xor__ </item>
797 + <item> __int__ </item>
798 + <item> __long__ </item>
799 + <item> __float__ </item>
800 + <item> __oct__ </item>
801 + <item> __hex__ </item>
802 + <item> __index__ </item>
803 + <item> __iadd__ </item>
804 + <item> __isub__ </item>
805 + <item> __imul__ </item>
806 + <item> __idiv__ </item>
807 + <item> __ifloordiv__ </item>
808 + <item> __itruediv__ </item>
809 + <item> __imod__ </item>
810 + <item> __ipow__ </item>
811 + <item> __ilshift__ </item>
812 + <item> __irshift__ </item>
813 + <item> __iand__ </item>
814 + <item> __ior__ </item>
815 + <item> __ixor__ </item>
816 + <item> __len__ </item>
817 + <item> __getitem__ </item>
818 + <item> __setitem__ </item>
819 + <item> __delitem__ </item>
820 + <item> __getslice__ </item>
821 + <item> __setslice__ </item>
822 + <item> __delslice__ </item>
823 + <item> __contains__ </item>
824 + <item> __next__ </item>
825 + <item> __getreadbuffer__ </item>
826 + <item> __getwritebuffer__ </item>
827 + <item> __getsegcount__ </item>
828 + <item> __getcharbuffer__ </item>
829 + <item> __get__ </item>
830 + <item> __set__ </item>
831 + <item> __delete__ </item>
832 + <item> __getbuffer__ </item>
833 + <item> __releasebuffer__ </item>
835 + <list name="exceptions">
836 + <item>ArithmeticError</item>
837 + <item>AssertionError</item>
838 + <item>AttributeError</item>
839 + <item>BaseException</item>
840 + <item>DeprecationWarning</item>
841 + <item>EnvironmentError</item>
842 + <item>EOFError</item>
843 + <item>Exception</item>
844 + <item>FloatingPointError</item>
845 + <item>FutureWarning</item>
846 + <item>GeneratorExit</item>
847 + <item>IOError</item>
848 + <item>ImportError</item>
849 + <item>ImportWarning</item>
850 + <item>IndexError</item>
851 + <item>KeyError</item>
852 + <item>KeyboardInterrupt</item>
853 + <item>LookupError</item>
854 + <item>MemoryError</item>
855 + <item>NameError</item>
856 + <item>NotImplementedError</item>
857 + <item>OSError</item>
858 + <item>OverflowError</item>
859 + <item>PendingDeprecationWarning</item>
860 + <item>ReferenceError</item>
861 + <item>RuntimeError</item>
862 + <item>RuntimeWarning</item>
863 + <item>StandardError</item>
864 + <item>StopIteration</item>
865 + <item>SyntaxError</item>
866 + <item>SyntaxWarning</item>
867 + <item>SystemError</item>
868 + <item>SystemExit</item>
869 + <item>TypeError</item>
870 + <item>UnboundLocalError</item>
871 + <item>UserWarning</item>
872 + <item>UnicodeError</item>
873 + <item>UnicodeWarning</item>
874 + <item>UnicodeEncodeError</item>
875 + <item>UnicodeDecodeError</item>
876 + <item>UnicodeTranslateError</item>
877 + <item>ValueError</item>
878 + <item>Warning</item>
879 + <item>WindowsError</item>
880 + <item>ZeroDivisionError</item>
885 + <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
887 + <keyword attribute="Definition Keyword" String="cdef" context="cdefname"/>
888 + <keyword attribute="Definition Keyword" String="defs" context="defname"/>
889 + <keyword attribute="Definition Keyword" String="keyw" context="#stay"/>
891 + <keyword attribute="Import Keyword" String="imports" context="#stay"/>
892 + <keyword attribute="Preprocessor" String="prep" context="#stay"/>
893 + <keyword attribute="Operator" String="operators" context="#stay"/>
894 + <keyword attribute="Command Keyword" String="commands" context="#stay"/>
895 + <keyword attribute="Flow Control Keyword" String="flow" context="#stay"/>
896 + <keyword attribute="Builtin Function" String="builtinfuncs" context="#stay"/>
898 + <keyword attribute="Special Variable" String="specialvars" context="#stay"/>
899 + <keyword attribute="Special Variable" String="exceptions" context="#stay"/>
900 + <keyword attribute="Special Variable" String="overloaders" context="#stay"/>
902 + <keyword attribute="C Type" context="#stay" String="ctypes" />
903 + <keyword attribute="Python Type" context="#stay" String="pytypes" />
905 + <RegExpr attribute="Hex" String="0[Xx][0-9a-fA-F]+" context="#stay"/>
906 + <RegExpr attribute="Octal" String="0[1-9][0-9]*" context="#stay"/>
907 + <RegExpr attribute="Binary" String="0[Bb][0-9a-fA-F]+" context="#stay"/>
909 + <RegExpr attribute="Complex" String=" ((([0-9]*\.[0-9]+|[0-9]+\.)|([0-9]+|([0-9]*\.[0-9]+|[0-9]+\.))[eE](\+|-)?[0-9]+)|[0-9]+)[jJ]" context="#stay"/>
910 + <RegExpr attribute="Float" String="([0-9]+\.[0-9]*|\.[0-9]+)([eE][0-9]+)?" context="#stay"/>
912 + <RegExpr attribute="Int" String="([1-9][0-9]*([eE][0-9]+)?|0)" context="#stay"/>
913 + <RegExpr attribute="Long" String="[1-9][0-9]*([eE][0-9.]+)?[Ll]" context="#stay"/>
915 + <keyword attribute="NumPyAttr" String="numpyselector" context="numpy"/>
917 + <RegExpr attribute="Decorator" String="@[a-zA-Z_][a-zA-Z_0-9\.]+" context="#stay"/>
919 + <RegExpr attribute="Normal" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/>
921 + <RegExpr attribute="Raw String" String="[rR]'''" context="Raw Tripple A-string"/>
922 + <RegExpr attribute="Raw String" String="[rR]"""" context="Raw Tripple Q-string"/>
924 + <RegExpr attribute="Raw String" String="[rR]'" context="Raw A-string"/>
925 + <RegExpr attribute="Raw String" String="[rR]"" context="Raw Q-string"/>
927 + <RegExpr attribute="Comment" String="#.*$" context="#stay"/>
928 + <RegExpr attribute="Comment" String="^\s*'''" context="Tripple A-comment" beginRegion="Tripple A-region"/>
929 + <RegExpr attribute="Comment" String="^\s*"""" context="Tripple Q-comment" beginRegion="Tripple Q-region"/>
931 + <StringDetect attribute="String" String="'''" context="Tripple A-string" beginRegion="Tripple A-region"/>
932 + <StringDetect attribute="String" String=""""" context="Tripple Q-string" beginRegion="Tripple Q-region"/>
933 + <DetectChar attribute="String" char="'" context="Single A-string"/>
934 + <DetectChar attribute="String" char=""" context="Single Q-string"/>
937 + <DetectChar attribute="Operator" char="(" context="parenthesis" />
939 + <DetectChar attribute="Operator" char="[" context="bracet" />
941 + <DetectChar attribute="Operator" char="{" context="dict" />
943 + <RegExpr attribute="Operator" String="[+*/%\|=;\!<>!^&~-]" context="#stay"/>
945 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
949 + <context name="numpy" attribute="Normal Text" lineEndContext="#pop" noIndentationBasedFolding="True">
950 + <!-- highlight types in numpy.pxd after cimport numpy -->
951 + <keyword attribute="Import Keyword" context="#pop" String="as" />
952 + <DetectChar attribute="Dot" context="#stay" char="." />
953 + <keyword attribute="NumPy Type" context="#pop" String="numpytypes" />
954 + <keyword attribute="NumPy Function" context="#pop" String="numpyfuncs" />
957 + <context name="parenthesis" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
958 + <DetectChar attribute="Operator" char=")" context="#pop" />
959 + <IncludeRules context="Normal" />
962 + <context name="bracet" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
963 + <StringDetect attribute="Normal" String="readonly" context="#stay" />
964 + <DetectChar attribute="Operator" char="]" context="#pop" />
965 + <IncludeRules context="Normal" />
968 + <context name="dict" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
969 + <DetectChar attribute="Operator" char="}" context="#pop" />
970 + <IncludeRules context="Normal" />
973 + <context name="defname" attribute="Normal Text" lineEndContext="#pop" noIndentationBasedFolding="True">
974 + <RegExpr attribute="Definition Name" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/>
975 + <DetectChar attribute="Operator" char="(" context="callargs" />
976 + <DetectChar attribute="Operator" char="[" context="callbracket" />
977 + <IncludeRules context="Normal" />
980 + <context name="callargs" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
981 + <DetectChar attribute="Operator" char=")" context="#pop#pop" />
982 + <IncludeRules context="Normal" />
985 + <context name="callbracket" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
986 + <DetectChar attribute="Operator" char="]" context="#pop#pop" />
987 + <IncludeRules context="Normal" />
991 + <context name="cdefname" attribute="Normal Text" lineEndContext="#pop" noIndentationBasedFolding="True">
992 + <keyword attribute="Definition Keyword" String="defs" context="defname"/>
993 + <keyword attribute="Definition Keyword" String="keyw" context="#stay"/>
994 + <keyword attribute="Definition Keyword" String="access" context="#stay"/>
995 + <keyword attribute="Import Keyword" String="imports" context="#stay"/>
996 + <keyword attribute="Special Variable" String="specialvars" context="#stay"/>
998 + <keyword attribute="C Type" context="#pop" String="ctypes" />
999 + <keyword attribute="Python Type" context="#pop" String="pytypes" />
1001 + <RegExpr attribute="Hex" String="0[Xx][0-9a-fA-F]+" context="#stay"/>
1002 + <RegExpr attribute="Octal" String="0[1-9][0-9]*" context="#stay"/>
1003 + <RegExpr attribute="Binary" String="0[Bb][0-9a-fA-F]+" context="#stay"/>
1005 + <RegExpr attribute="Complex" String=" ((([0-9]*\.[0-9]+|[0-9]+\.)|([0-9]+|([0-9]*\.[0-9]+|[0-9]+\.))[eE](\+|-)?[0-9]+)|[0-9]+)[jJ]" context="#stay"/>
1006 + <RegExpr attribute="Float" String="([0-9]+\.[0-9]*|\.[0-9]+)([eE][0-9]+)?" context="#stay"/>
1008 + <RegExpr attribute="Int" String="([1-9][0-9]*([eE][0-9]+)?|0)" context="#stay"/>
1009 + <RegExpr attribute="Long" String="[1-9][0-9]*([eE][0-9.]+)?[Ll]" context="#stay"/>
1011 + <keyword attribute="NumPyAttr" String="numpyselector" context="numpy2"/>
1013 + <RegExpr attribute="C Definition Name" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/>
1014 + <DetectChar attribute="Operator" char="(" context="callargs" />
1015 + <IncludeRules context="Normal" />
1018 + <context name="callargs" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
1019 + <DetectChar attribute="Operator" char=")" context="#pop#pop" />
1020 + <IncludeRules context="Normal" />
1030 + <context name="numpy2" attribute="Normal Text" lineEndContext="#pop" noIndentationBasedFolding="True">
1031 + <!-- highlight types in numpy.pxd after cimport numpy -->
1032 + <DetectChar attribute="Dot" context="#stay" char="." />
1033 + <keyword attribute="NumPy Type" context="#pop#pop" String="numpytypes" />
1039 + <context name="Tripple A-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="True">
1040 + <StringDetect attribute="Comment" String="'''" context="#pop" endRegion="Tripple A-region"/>
1042 + <context name="Tripple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="True">
1043 + <HlCChar attribute="Comment" context="#stay"/>
1044 + <RegExpr attribute="Comment" String=""""" context="#pop" endRegion="Tripple Q-region"/>
1046 + <context name="Tripple A-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="True">
1047 + <HlCStringChar attribute="String Char" context="#stay"/>
1048 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1049 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1050 + <RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
1052 + <context name="Raw Tripple A-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="True">
1053 + <HlCStringChar attribute="Raw String" context="#stay"/>
1054 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1055 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1056 + <RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
1058 + <context name="Tripple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="True">
1059 + <HlCStringChar attribute="String Char" context="#stay"/>
1060 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1061 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1062 + <RegExpr attribute="String" String=""""" context="#pop" endRegion="Tripple Q-region"/>
1064 + <context name="Raw Tripple Q-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="True">
1065 + <HlCStringChar attribute="Raw String" context="#stay"/>
1066 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1067 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1068 + <RegExpr attribute="String" String=""""" context="#pop" endRegion="Tripple Q-region"/>
1070 + <context name="Single A-comment" attribute="Comment" lineEndContext="#stay">
1071 + <HlCStringChar attribute="Comment" context="#stay"/>
1072 + <DetectChar attribute="Comment" char="'" context="#pop"/>
1074 + <context name="Single Q-comment" attribute="Comment" lineEndContext="#stay">
1075 + <HlCStringChar attribute="Comment" context="#stay"/>
1076 + <DetectChar attribute="Comment" char=""" context="#pop"/>
1078 + <context name="Single A-string" attribute="String" lineEndContext="#stay">
1079 + <HlCStringChar attribute="String Char" context="#stay"/>
1080 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1081 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1082 + <DetectChar attribute="String" char="'" context="#pop"/>
1084 + <context name="Single Q-string" attribute="String" lineEndContext="#stay">
1085 + <HlCStringChar attribute="String Char" context="#stay"/>
1086 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1087 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1088 + <DetectChar attribute="String" char=""" context="#pop"/>
1090 + <context name="Raw A-string" attribute="Raw String" lineEndContext="#stay">
1091 + <HlCStringChar attribute="Raw String" context="#stay"/>
1092 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1093 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1094 + <DetectChar attribute="Raw String" char="'" context="#pop"/>
1096 + <context name="Raw Q-string" attribute="Raw String" lineEndContext="#stay">
1097 + <HlCStringChar attribute="Raw String" context="#stay"/>
1098 + <RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
1099 + <RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
1100 + <DetectChar attribute="Raw String" char=""" context="#pop"/>
1104 + <itemData name="Normal Text" defStyleNum="dsNormal"/>
1105 + <itemData name="Import Keyword" defStyleNum="dsKeyword"/>
1106 + <itemData name="Definition Keyword" defStyleNum="dsKeyword"/>
1107 + <itemData name="Definition Name" defStyleNum="dsOthers"/>
1108 + <itemData name="Operator" defStyleNum="dsKeyword"/>
1109 + <itemData name="String Substitution" defStyleNum="dsNormal"/>
1110 + <itemData name="Command Keyword" defStyleNum="dsFunction"/>
1111 + <itemData name="Flow Control Keyword" defStyleNum="dsKeyword"/>
1112 + <itemData name="Builtin Function" defStyleNum="dsFunction"/>
1113 + <itemData name="C Type" defStyleNum="dsDataType"/>
1114 + <itemData name="Python Type" defStyleNum="dsDataType"/>
1115 + <itemData name="NumPy Type" defStyleNum="dsDataType"/>
1116 + <itemData name="NumPy Function" defStyleNum="dsFunction"/>
1117 + <itemData name="Special Variable" defStyleNum="dsOthers"/>
1118 + <itemData name="Preprocessor" defStyleNum="dsOthers"/>
1119 + <itemData name="Decorator" defStyleNum="dsFunction"/>
1120 + <itemData name="String Char" defStyleNum="dsChar"/>
1121 + <itemData name="Long" defStyleNum="dsOthers"/>
1122 + <itemData name="Float" defStyleNum="dsFloat"/>
1123 + <itemData name="Int" defStyleNum="dsDecVal"/>
1124 + <itemData name="Hex" defStyleNum="dsOthers"/>
1125 + <itemData name="Octal" defStyleNum="dsOthers"/>
1126 + <itemData name="Binary" defStyleNum="dsOthers"/>
1127 + <itemData name="Complex" defStyleNum="dsOthers"/>
1128 + <itemData name="Comment" defStyleNum="dsComment"/>
1129 + <itemData name="String" defStyleNum="dsString"/>
1130 + <itemData name="Raw String" defStyleNum="dsString"/>
1134 + <folding indentationsensitive="1" />
1136 + <emptyLine regexpr="\s+" casesensitive="false"/>
1137 + <emptyLine regexpr="\s*#.*$" casesensitive="false"/>
1140 + <comment name="singleLine" start="#" position="afterwhitespace"/>
1142 + <keywords casesensitive="1"/>