Mercurial > vim
comparison runtime/syntax/pyrex.vim @ 2034:7bc41231fbc7
Update runtime files.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 06 Jan 2010 20:54:52 +0100 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
2033:de5a43c5eedc | 2034:7bc41231fbc7 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Pyrex | 2 " Language: Pyrex |
3 " Maintainer: Marco Barisione <marco.bari@people.it> | 3 " Maintainer: Marco Barisione <marco.bari@people.it> |
4 " URL: http://marcobari.altervista.org/pyrex_vim.html | 4 " URL: http://marcobari.altervista.org/pyrex_vim.html |
5 " Last Change: 2004 May 16 | 5 " Last Change: 2009 Nov 09 |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " For version 5.x: Clear all syntax items |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 " For version 6.x: Quit when a syntax file was already loaded |
9 if version < 600 | 9 if version < 600 |
10 syntax clear | 10 syntax clear |
23 " Pyrex extentions | 23 " Pyrex extentions |
24 syn keyword pyrexStatement cdef typedef ctypedef sizeof | 24 syn keyword pyrexStatement cdef typedef ctypedef sizeof |
25 syn keyword pyrexType int long short float double char object void | 25 syn keyword pyrexType int long short float double char object void |
26 syn keyword pyrexType signed unsigned | 26 syn keyword pyrexType signed unsigned |
27 syn keyword pyrexStructure struct union enum | 27 syn keyword pyrexStructure struct union enum |
28 syn keyword pyrexPrecondit include cimport | 28 syn keyword pyrexInclude include cimport |
29 syn keyword pyrexAccess public private property readonly extern | 29 syn keyword pyrexAccess public private property readonly extern |
30 " If someome wants Python's built-ins highlighted probably he | 30 " If someome wants Python's built-ins highlighted probably he |
31 " also wants Pyrex's built-ins highlighted | 31 " also wants Pyrex's built-ins highlighted |
32 if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins") | 32 if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins") |
33 syn keyword pyrexBuiltin NULL | 33 syn keyword pyrexBuiltin NULL |
34 endif | 34 endif |
35 | 35 |
36 " This deletes "from" from the keywords and re-adds it as a | 36 " This deletes "from" from the keywords and re-adds it as a |
37 " match with lower priority than pyrexForFrom | 37 " match with lower priority than pyrexForFrom |
38 syn clear pythonPreCondit | 38 syn clear pythonInclude |
39 syn keyword pythonPreCondit import | 39 syn keyword pythonInclude import |
40 syn match pythonPreCondit "from" | 40 syn match pythonInclude "from" |
41 | 41 |
42 " With "for[^:]*\zsfrom" VIM does not match "for" anymore, so | 42 " With "for[^:]*\zsfrom" VIM does not match "for" anymore, so |
43 " I used the slower "\@<=" form | 43 " I used the slower "\@<=" form |
44 syn match pyrexForFrom "\(for[^:]*\)\@<=from" | 44 syn match pyrexForFrom "\(for[^:]*\)\@<=from" |
45 | 45 |
52 command -nargs=+ HiLink hi def link <args> | 52 command -nargs=+ HiLink hi def link <args> |
53 endif | 53 endif |
54 HiLink pyrexStatement Statement | 54 HiLink pyrexStatement Statement |
55 HiLink pyrexType Type | 55 HiLink pyrexType Type |
56 HiLink pyrexStructure Structure | 56 HiLink pyrexStructure Structure |
57 HiLink pyrexPrecondit PreCondit | 57 HiLink pyrexInclude PreCondit |
58 HiLink pyrexAccess pyrexStatement | 58 HiLink pyrexAccess pyrexStatement |
59 if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins") | 59 if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins") |
60 HiLink pyrexBuiltin Function | 60 HiLink pyrexBuiltin Function |
61 endif | 61 endif |
62 HiLink pyrexForFrom Statement | 62 HiLink pyrexForFrom Statement |