File: cython.st

package info (click to toggle)
cython 0.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,768 kB
  • sloc: python: 61,303; ansic: 11,484; cpp: 1,105; xml: 1,031; makefile: 397; lisp: 206; sed: 11; sh: 7
file content (26 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * Name: pyrex
 * Description: Pyrex - a Language for Writing Python Extension Modules
 * Author: Markku Rossi <mtr@iki.fi>
 */

state pyrex extends python
{
  /* Additional keywords.
     (build-re '( NULL as cdef char ctypedef double enum extern float
     include int long private public short signed sizeof struct union
     unsigned void )) */
  /\b(NULL|as|c(def|har|typedef)|double|e(num|xtern)|float|in(clude|t)\
|long|p(rivate|ublic)|s(hort|i(gned|zeof)|truct)|un(ion|signed)|void)\b/ {
    keyword_face(true);
    language_print($0);
    keyword_face(false);
  }
}


/*
Local variables:
mode: c
End:
*/