7
|
1 " Vim syntax file
|
|
2 " Language: TealInfo source files (*.tli)
|
|
3 " Maintainer: Kurt W. Andrews <kandrews@fastrans.net>
|
|
4 " Last Change: 2001 May 10
|
|
5 " Version: 1.0
|
|
6
|
|
7 " For version 5.x: Clear all syntax items
|
|
8 " For version 6.x: Quit when a syntax file was already loaded
|
|
9 if version < 600
|
|
10 syntax clear
|
|
11 elseif exists("b:current_syntax")
|
|
12 finish
|
|
13 endif
|
|
14
|
|
15 " TealInfo Objects
|
|
16
|
|
17 syn keyword tliObject LIST POPLIST WINDOW POPWINDOW OUTLINE CHECKMARK GOTO
|
|
18 syn keyword tliObject LABEL IMAGE RECT TRES PASSWORD POPEDIT POPIMAGE CHECKLIST
|
|
19
|
|
20 " TealInfo Fields
|
|
21
|
|
22 syn keyword tliField X Y W H BX BY BW BH SX SY FONT BFONT CYCLE DELAY TABS
|
|
23 syn keyword tliField STYLE BTEXT RECORD DATABASE KEY TARGET DEFAULT TEXT
|
|
24 syn keyword tliField LINKS MAXVAL
|
|
25
|
|
26 " TealInfo Styles
|
|
27
|
|
28 syn keyword tliStyle INVERTED HORIZ_RULE VERT_RULE NO_SCROLL NO_BORDER BOLD_BORDER
|
|
29 syn keyword tliStyle ROUND_BORDER ALIGN_RIGHT ALIGN_CENTER ALIGN_LEFT_START ALIGN_RIGHT_START
|
|
30 syn keyword tliStyle ALIGN_CENTER_START ALIGN_LEFT_END ALIGN_RIGHT_END ALIGN_CENTER_END
|
|
31 syn keyword tliStyle LOCKOUT BUTTON_SCROLL BUTTON_SELECT STROKE_FIND FILLED REGISTER
|
|
32
|
|
33 " String and Character constants
|
|
34
|
|
35 syn match tliSpecial "@"
|
|
36 syn region tliString start=+"+ end=+"+
|
|
37
|
|
38 "TealInfo Numbers, identifiers and comments
|
|
39
|
|
40 syn case ignore
|
|
41 syn match tliNumber "\d*"
|
|
42 syn match tliIdentifier "\<\h\w*\>"
|
|
43 syn match tliComment "#.*"
|
|
44 syn case match
|
|
45
|
|
46 " Define the default highlighting.
|
|
47 " For version 5.7 and earlier: only when not done already
|
|
48 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
49 if version >= 508 || !exists("did_tli_syntax_inits")
|
|
50 if version < 508
|
|
51 let did_tli_syntax_inits = 1
|
|
52 command -nargs=+ HiLink hi link <args>
|
|
53 else
|
|
54 command -nargs=+ HiLink hi def link <args>
|
|
55 endif
|
|
56
|
|
57 HiLink tliNumber Number
|
|
58 HiLink tliString String
|
|
59 HiLink tliComment Comment
|
|
60 HiLink tliSpecial SpecialChar
|
|
61 HiLink tliIdentifier Identifier
|
|
62 HiLink tliObject Statement
|
|
63 HiLink tliField Type
|
|
64 HiLink tliStyle PreProc
|
|
65
|
|
66 delcommand HiLink
|
|
67 endif
|
|
68
|
|
69 let b:current_syntax = "tli"
|
|
70
|
|
71 " vim: ts=8
|