blob: 2fd60cc5471e345dce6c3425737e5f9a68dc437e (
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
|
" Vim syntax file
" Language: PalmOS
" Maintainer: René Neumann aka Necoro <necoro@zakarum.de>
" Last Change: 2004 May 29
" 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
" PalmOS extentions
syn keyword palmGenType UInt8 UInt16 UInt32 Int8 Int16 Int32 Boolean Char MemHandle MemPtr DmOpenRef WChar Err
syn keyword palmUsefulTypes ListType ControlType FormType FieldType ScrollBarType TableType DateType DateTimeType RectangleType EventType
syn keyword palmUsefulPtrs ListPtr ControlPtr FormPtr FieldPtr ScrollBarPtr TablePtr DatePtr DateTimePtr RectanglePtr EventPtr
syn keyword palmNetTypes NetSocketRef NetSocketAddrType NetSocketAddrINType NetHostInfoBufType
syn keyword palmNoDeleteNew delete new
syn keyword palmExceptions ErrThrow ErrCatch ErrEndCatch ErrTry
command -nargs=+ HiLink hi def link <args>
HiLink palmExceptions Exception
HiLink palmNoDeleteNew ErrorMsg
HiLink palmGenType Type
HiLink palmUsefulTypes Type
HiLink palmUsefulPtrs Type
HiLink palmNetTypes Type
delcommand HiLink
let b:current_syntax = "palmos"
|