summaryrefslogtreecommitdiff
path: root/.vim/syntax/swig.vim
blob: 90666c870741b822b62b54c01318609d25141cca (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
" Vim syntax file
" Language:	SWIG
" Maintainer:	Roman Stanchak (rstanchak@yahoo.com)
" Last Change:	2006 July 25

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
  syntax clear
elseif exists("b:current_syntax")
  finish
endif

" Read the C++ syntax to start with
if version < 600
  so <sfile>:p:h/cpp.vim
else
  runtime! syntax/cpp.vim
  unlet b:current_syntax
endif

" SWIG extentions
syn keyword swigDirective %typemap %define %apply %fragment %include %enddef %extend %newobject %name 
syn keyword swigDirective %rename %ignore %keyword %typemap %define %apply %fragment %include 
syn keyword swigDirective %enddef %extend %newobject %name %rename %ignore %template %module %constant
syn match swigDirective "%\({\|}\)"
syn match swigUserDef "%[-_a-zA-Z0-9]\+"

" Default highlighting
if version >= 508 || !exists("did_swig_syntax_inits")
  if version < 508
    let did_cpp_syntax_inits = 1
    command -nargs=+ HiLink hi link <args>
  else
    command -nargs=+ HiLink hi def link <args>
  endif
  HiLink swigDirective      Exception 
  HiLink swigUserDef 		PreProc
  delcommand HiLink
endif

let b:current_syntax = "swig"

" vim: ts=8
ss='insertions'>+15 2008-06-23Fixed name of gpytage pluginRené 'Necoro' Neumann1-1/+1 2008-06-23Moved GtkThread to gui.utilsRené 'Necoro' Neumann5-29/+25 2008-06-22Implemented the mail sendingRené 'Necoro' Neumann2-3/+63 2008-06-22First mail window draftRené 'Necoro' Neumann3-0/+220 2008-06-10Added gpytage pluginRené 'Necoro' Neumann2-0/+29 2008-06-10Modified plugin.xsd so it allows also menu-only pluginsRené 'Necoro' Neumann2-7/+8 2008-06-10Fixed the default handlingRené 'Necoro' Neumann1-1/+1 2008-06-10Allowed default for session; load 'app-portage/portato' as default for select...René 'Necoro' Neumann2-10/+18 2008-06-09Fixed 'kill' in the systray popupRené 'Necoro' Neumann1-2/+2 2008-06-09Fixed error messageRené 'Necoro' Neumann2-4/+1 2008-06-08Make blocks way more intelligentRené 'Necoro' Neumann3-45/+107