Attachment 'pyrex-mode.el'
Download 1 ;;;; `Pyrex' mode.
2
3 (add-to-list 'auto-mode-alist '("\\.pyx\\'" . pyrex-mode))
4 (add-to-list 'auto-mode-alist '("\\.pxi\\'" . pyrex-mode))
5 (add-to-list 'auto-mode-alist '("\\.pxd\\'" . pyrex-mode))
6
7 (define-derived-mode pyrex-mode python-mode "Pyrex"
8 (font-lock-add-keywords
9 nil
10 `((,(concat "\\<\\(NULL"
11 "\\|c\\(def\\|har\\|typedef\\|import\\)"
12 "\\|e\\(num\\|xtern\\)"
13 "\\|float"
14 "\\|in\\(clude\\|t\\)"
15 "\\|object\\|public\\|struct\\|type\\|union\\|void"
16 "\\)\\>")
17 1 font-lock-keyword-face t))))
18
19 (provide 'pyrex)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.