Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pyrex.vim52 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Pyrex3" Maintainer:	Marco Barisione <marco.bari@people.it>4" URL:		http://marcobari.altervista.org/pyrex_vim.html5" Last Change:	2009 Nov 096 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9  finish10endif11 12" Read the Python syntax to start with13runtime! syntax/python.vim14unlet b:current_syntax15 16" Pyrex extentions17syn keyword pyrexStatement      cdef typedef ctypedef sizeof18syn keyword pyrexType		int long short float double char object void19syn keyword pyrexType		signed unsigned20syn keyword pyrexStructure	struct union enum21syn keyword pyrexInclude	include cimport22syn keyword pyrexAccess		public private property readonly extern23" If someome wants Python's built-ins highlighted probably he24" also wants Pyrex's built-ins highlighted25if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins")26    syn keyword pyrexBuiltin    NULL27endif28 29" This deletes "from" from the keywords and re-adds it as a30" match with lower priority than pyrexForFrom31syn clear   pythonInclude32syn keyword pythonInclude     import33syn match   pythonInclude     "from"34 35" With "for[^:]*\zsfrom" VIM does not match "for" anymore, so36" I used the slower "\@<=" form37syn match   pyrexForFrom        "\(for[^:]*\)\@<=from"38 39" Default highlighting40hi def link pyrexStatement		Statement41hi def link pyrexType		Type42hi def link pyrexStructure		Structure43hi def link pyrexInclude		PreCondit44hi def link pyrexAccess		pyrexStatement45if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins")46hi def link pyrexBuiltin	Function47endif48hi def link pyrexForFrom		Statement49 50 51let b:current_syntax = "pyrex"52 
codekingpro/portable-devtools · Team Ai