2 " Language: TealInfo source files (*.tli)
3 " Maintainer: Kurt W. Andrews <kandrews@fastrans.net>
4 " Last Change: 2001 May 10
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
17 syn keyword tliObject LIST POPLIST WINDOW POPWINDOW OUTLINE CHECKMARK GOTO
18 syn keyword tliObject LABEL IMAGE RECT TRES PASSWORD POPEDIT POPIMAGE CHECKLIST
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
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
33 " String and Character constants
35 syn match tliSpecial "@"
36 syn region tliString start=+"+ end=+"+
38 "TealInfo Numbers, identifiers and comments
41 syn match tliNumber "\d*"
42 syn match tliIdentifier "\<\h\w*\>"
43 syn match tliComment "#.*"
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")
51 let did_tli_syntax_inits = 1
52 command -nargs=+ HiLink hi link <args>
54 command -nargs=+ HiLink hi def link <args>
57 HiLink tliNumber Number
58 HiLink tliString String
59 HiLink tliComment Comment
60 HiLink tliSpecial SpecialChar
61 HiLink tliIdentifier Identifier
62 HiLink tliObject Statement
64 HiLink tliStyle PreProc
69 let b:current_syntax = "tli"