Mercurial > vim
annotate runtime/syntax/swig.vim @ 34366:1f5f3d58ed28
Added tag v9.1.0113 for changeset 8303936dbd64eca2d06b4f57b9da7a17e7496e27
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 15 Feb 2024 20:30:06 +0100 |
parents | d515e012d713 |
children |
rev | line source |
---|---|
33825
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Vim syntax file |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " Language: SWIG |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " Maintainer: Julien Marrec <julien.marrec 'at' gmail com> |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " Last Change: 2023 November 23 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 if exists("b:current_syntax") |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 finish |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 endif |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 " Read the C++ syntax to start with |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 runtime! syntax/cpp.vim |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 unlet b:current_syntax |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 " SWIG extentions |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 syn keyword swigInclude %include %import %importfile %includefile %module |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 syn keyword swigMostCommonDirective %alias %apply %beginfile %clear %constant %define %echo %enddef %endoffile |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 syn keyword swigMostCommonDirective %extend %feature %director %fragment %ignore %inline |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 syn keyword swigMostCommonDirective %keyword %name %namewarn %native %newobject %parms %pragma |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 syn keyword swigMostCommonDirective %rename %template %typedef %typemap %types %varargs |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 " SWIG: Language specific macros |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 syn keyword swigOtherLanguageSpecific %luacode %go_import |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 syn keyword swigCSharp %csattributes %csconst %csconstvalue %csmethodmodifiers %csnothrowexception |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 syn keyword swigCSharp %dconstvalue %dmanifestconst %dmethodmodifiers |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 syn keyword swigJava %javaconstvalue %javaexception %javamethodmodifiers %javaconst %nojavaexception |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 syn keyword swigGuile %multiple_values %values_as_list %values_as_vector |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
31 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
32 syn keyword swigPHP %rinit %rshutdown %minit %mshutdown |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 syn keyword swigPython %pybinoperator %pybuffer_binary %pybuffer_mutable_binary %pybuffer_mutable_string %pybuffer_string |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
35 syn keyword swigPython %pythonappend %pythonbegin %pythoncode %pythondynamic %pythonnondynamic %pythonprepend |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
36 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
37 syn keyword swigRuby %markfunc %trackobjects %bang |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
38 syn keyword swigScilab %scilabconst |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
39 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
40 " SWIG: Insertion |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
41 syn keyword swigInsertSection %insert %begin %runtime %header %wrapper %init |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
42 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
43 " SWIG: Other directives |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
44 syn keyword swigCstring %cstring_bounded_mutable %cstring_bounded_output %cstring_chunk_output %cstring_input_binary %cstring_mutable |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 syn keyword swigCstring %cstring_output_allocate %cstring_output_allocate_size %cstring_output_maxsize %cstring_output_withsize |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
46 syn keyword swigCWstring %cwstring_bounded_mutable %cwstring_bounded_output %cwstring_chunk_output %cwstring_input_binary %cwstring_mutable |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
47 syn keyword swigCWstring %cwstring_output_allocate %cwstring_output_allocate_size %cwstring_output_maxsize %cwstring_output_withsize |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
48 syn keyword swigCMalloc %malloc %calloc %realloc %free %sizeof %allocators |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
49 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
50 syn keyword swigExceptionHandling %catches %raise %allowexception %exceptionclass %warn %warnfilter %exception |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
51 syn keyword swigContract %contract %aggregate_check |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
53 syn keyword swigDirective %addmethods %array_class %array_functions %attribute %attribute2 %attribute2ref |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
54 syn keyword swigDirective %attribute_ref %attributeref %attributestring %attributeval %auto_ptr %callback |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
55 syn keyword swigDirective %delete_array %delobject %extend_smart_pointer %factory %fastdispatch %freefunc %immutable |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
56 syn keyword swigDirective %implicit %implicitconv %interface %interface_custom %interface_impl %intrusive_ptr %intrusive_ptr_no_wrap |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
57 syn keyword swigDirective %mutable %naturalvar %nocallback %nocopyctor %nodefaultctor %nodefaultdtor %nonaturalvar %nonspace |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
58 syn keyword swigDirective %nspace %pointer_cast %pointer_class %pointer_functions %predicate %proxycode |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
59 syn keyword swigDirective %refobject %set_output %shared_ptr %std_comp_methods |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
60 syn keyword swigDirective %std_nodefconst_type %typecheck %typemaps_string %unique_ptr %unrefobject %valuewrapper |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
61 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
62 syn match swigVerbatimStartEnd "%[{}]" |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
63 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
64 syn match swigUserDef "%\w\+" |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
65 syn match swigVerbatimMacro "^\s*%#\w\+\%( .*\)\?$" |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
66 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
67 " SWIG: typemap var and typemap macros (eg: $1, $*1_type, $&n_ltype, $self) |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
68 syn match swigTypeMapVars "\$[*&_a-zA-Z0-9]\+" |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
69 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
70 " Default highlighting |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
71 hi def link swigInclude Include |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
72 hi def link swigMostCommonDirective Structure |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
73 hi def link swigDirective Macro |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
74 hi def link swigContract swigExceptionHandling |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
75 hi def link swigExceptionHandling Exception |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
76 hi def link swigUserDef Function |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
77 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
78 hi def link swigCMalloc Statement |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
79 hi def link swigCstring Type |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
80 hi def link swigCWstring Type |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
81 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
82 hi def link swigCSharp swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
83 hi def link swigJava swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
84 hi def link swigGuile swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
85 hi def link swigPHP swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
86 hi def link swigPython swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
87 hi def link swigRuby swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
88 hi def link swigScilab swigOtherLanguageSpecific |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
89 hi def link swigOtherLanguageSpecific Special |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
90 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
91 hi def link swigInsertSection PreProc |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
92 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
93 hi def link swigVerbatimStartEnd Statement |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
94 hi def link swigVerbatimMacro Macro |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
95 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
96 hi def link swigTypeMapVars SpecialChar |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
97 |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
98 let b:current_syntax = "swig" |
d515e012d713
patch 9.0.2128: runtime(swig): add syntax and filetype plugins
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
99 " vim: ts=8 |