summaryrefslogtreecommitdiff
path: root/.vim/syntax/palmos.vim
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-07 17:05:19 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-07 17:05:19 +0200
commitdd5427baaf49f8de4355abeb6bc8c6dd14f74e25 (patch)
tree46fcfc70bd792e80ceebaab89a7f8fc06bc29101 /.vim/syntax/palmos.vim
downloaddotfiles-dd5427baaf49f8de4355abeb6bc8c6dd14f74e25.tar.gz
dotfiles-dd5427baaf49f8de4355abeb6bc8c6dd14f74e25.tar.bz2
dotfiles-dd5427baaf49f8de4355abeb6bc8c6dd14f74e25.zip
Initial check-in of files
Diffstat (limited to '')
-rwxr-xr-x.vim/syntax/palmos.vim41
1 files changed, 41 insertions, 0 deletions
diff --git a/.vim/syntax/palmos.vim b/.vim/syntax/palmos.vim
new file mode 100755
index 0000000..2fd60cc
--- /dev/null
+++ b/.vim/syntax/palmos.vim
@@ -0,0 +1,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"