annotate runtime/syntax/pilrc.vim @ 824:8dd456c1e283 v7.0c13

updated for version 7.0c13
author vimboss
date Sun, 09 Apr 2006 21:54:49 +0000
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: pilrc - a resource compiler for Palm OS development
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Brian Schau <brian@schau.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Available on: http://www.schau.com/pilrcvim/pilrc.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Remove any old syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Notes: TRANSPARENT, FONT and FONT ID are defined in the specials
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " section below. Beware of the order of the specials!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Look in the syntax.txt and usr_27.txt files in vim\vim{version}\doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " directory for regexps etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Keywords - basic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword pilrcKeyword ALERT APPLICATION APPLICATIONICONNAME AREA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword pilrcKeyword BITMAP BITMAPCOLOR BITMAPCOLOR16 BITMAPCOLOR16K
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword pilrcKeyword BITMAPFAMILY BITMAPFAMILYEX BITMAPFAMILYSPECIAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword pilrcKeyword BITMAPGREY BITMAPGREY16 BITMAPSCREENFAMILY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword pilrcKeyword BOOTSCREENFAMILY BUTTON BUTTONS BYTELIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword pilrcKeyword CATEGORIES CHECKBOX COUNTRYLOCALISATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword pilrcKeyword DATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword pilrcKeyword FEATURE FIELD FONTINDEX FORM FORMBITMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword pilrcKeyword GADGET GENERATEHEADER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword pilrcKeyword GRAFFITIINPUTAREA GRAFFITISTATEINDICATOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword pilrcKeyword HEX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword pilrcKeyword ICON ICONFAMILY ICONFAMILYEX INTEGER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword pilrcKeyword KEYBOARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword pilrcKeyword LABEL LAUNCHERCATEGORY LIST LONGWORDLIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword pilrcKeyword MENU MENUITEM MESSAGE MIDI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword pilrcKeyword PALETTETABLE POPUPLIST POPUPTRIGGER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword pilrcKeyword PULLDOWN PUSHBUTTON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword pilrcKeyword REPEATBUTTON RESETAUTOID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword pilrcKeyword SCROLLBAR SELECTORTRIGGER SLIDER SMALLICON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword pilrcKeyword SMALLICONFAMILY SMALLICONFAMILYEX STRING STRINGTABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword pilrcKeyword TABLE TITLE TRANSLATION TRAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword pilrcKeyword VERSION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword pilrcKeyword WORDLIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword pilrcType AT AUTOSHIFT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword pilrcType BACKGROUNDID BITMAPID BOLDFRAME BPP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword pilrcType CHECKED COLORTABLE COLUMNS COLUMNWIDTHS COMPRESS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword pilrcType COMPRESSBEST COMPRESSPACKBITS COMPRESSRLE COMPRESSSCANLINE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword pilrcType CONFIRMATION COUNTRY CREATOR CURRENCYDECIMALPLACES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword pilrcType CURRENCYNAME CURRENCYSYMBOL CURRENCYUNIQUESYMBOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword pilrcType DATEFORMAT DAYLIGHTSAVINGS DEFAULTBTNID DEFAULTBUTTON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword pilrcType DENSITY DISABLED DYNAMICSIZE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword pilrcType EDITABLE ENTRY ERROR EXTENDED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword pilrcType FEEDBACK FILE FONTID FORCECOMPRESS FRAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword pilrcType GRAFFITI GRAPHICAL GROUP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword pilrcType HASSCROLLBAR HELPID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword pilrcType ID INDEX INFORMATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword pilrcType KEYDOWNCHR KEYDOWNKEYCODE KEYDOWNMODIFIERS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword pilrcType LANGUAGE LEFTALIGN LEFTANCHOR LONGDATEFORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword pilrcType MAX MAXCHARS MEASUREMENTSYSTEM MENUID MIN LOCALE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword pilrcType MINUTESWESTOFGMT MODAL MULTIPLELINES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword pilrcType NAME NOCOLORTABLE NOCOMPRESS NOFRAME NONEDITABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword pilrcType NONEXTENDED NONUSABLE NOSAVEBEHIND NUMBER NUMBERFORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword pilrcType NUMERIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword pilrcType PAGESIZE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword pilrcType RECTFRAME RIGHTALIGN RIGHTANCHOR ROWS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword pilrcType SAVEBEHIND SEARCH SCREEN SELECTEDBITMAPID SINGLELINE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword pilrcType THUMBID TRANSPARENTINDEX TIMEFORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword pilrcType UNDERLINED USABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword pilrcType VALUE VERTICAL VISIBLEITEMS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword pilrcType WARNING WEEKSTARTDAY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " Country
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword pilrcCountry Australia Austria Belgium Brazil Canada Denmark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword pilrcCountry Finland France Germany HongKong Iceland Indian
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword pilrcCountry Indonesia Ireland Italy Japan Korea Luxembourg Malaysia
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword pilrcCountry Mexico Netherlands NewZealand Norway Philippines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword pilrcCountry RepChina Singapore Spain Sweden Switzerland Thailand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword pilrcCountry Taiwan UnitedKingdom UnitedStates
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " Language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword pilrcLanguage English French German Italian Japanese Spanish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match pilrcString "\"[^"]*\""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn match pilrcNumber "\<0x\x\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match pilrcNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn region pilrcComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn region pilrcComment start="//" end="$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " Constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword pilrcConstant AUTO AUTOID BOTTOM CENTER PREVBOTTOM PREVHEIGHT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword pilrcConstant PREVLEFT PREVRIGHT PREVTOP PREVWIDTH RIGHT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword pilrcConstant SEPARATOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 " Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match pilrcIdentifier "\<\h\w*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 " Specials
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match pilrcType "\<FONT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn match pilrcKeyword "\<FONT\>\s*\<ID\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match pilrcType "\<TRANSPARENT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword pilrcFunction BEGIN END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 " Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn match pilrcInclude "\#include"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match pilrcInclude "\#define"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword pilrcInclude equ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword pilrcInclude package
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn region pilrcInclude start="public class" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn sync ccomment pilrcComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 if version >= 508 || !exists("did_pilrc_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 let did_pilrc_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " The default methods for highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 HiLink pilrcKeyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 HiLink pilrcType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 HiLink pilrcError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 HiLink pilrcCountry SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 HiLink pilrcLanguage SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 HiLink pilrcString SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 HiLink pilrcNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 HiLink pilrcComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 HiLink pilrcConstant Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 HiLink pilrcFunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 HiLink pilrcInclude SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 HiLink pilrcIdentifier Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 let b:current_syntax = "pilrc"