1" Vim syntax file 2" Language: TealInfo source files (*.tli) 3" Maintainer: Kurt W. Andrews <[email protected]> 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 9if version < 600 10 syntax clear 11elseif exists("b:current_syntax") 12 finish 13endif 14 15" TealInfo Objects 16 17syn keyword tliObject LIST POPLIST WINDOW POPWINDOW OUTLINE CHECKMARK GOTO 18syn keyword tliObject LABEL IMAGE RECT TRES PASSWORD POPEDIT POPIMAGE CHECKLIST 19 20" TealInfo Fields 21 22syn keyword tliField X Y W H BX BY BW BH SX SY FONT BFONT CYCLE DELAY TABS 23syn keyword tliField STYLE BTEXT RECORD DATABASE KEY TARGET DEFAULT TEXT 24syn keyword tliField LINKS MAXVAL 25 26" TealInfo Styles 27 28syn keyword tliStyle INVERTED HORIZ_RULE VERT_RULE NO_SCROLL NO_BORDER BOLD_BORDER 29syn keyword tliStyle ROUND_BORDER ALIGN_RIGHT ALIGN_CENTER ALIGN_LEFT_START ALIGN_RIGHT_START 30syn keyword tliStyle ALIGN_CENTER_START ALIGN_LEFT_END ALIGN_RIGHT_END ALIGN_CENTER_END 31syn keyword tliStyle LOCKOUT BUTTON_SCROLL BUTTON_SELECT STROKE_FIND FILLED REGISTER 32 33" String and Character constants 34 35syn match tliSpecial "@" 36syn region tliString start=+"+ end=+"+ 37 38"TealInfo Numbers, identifiers and comments 39 40syn case ignore 41syn match tliNumber "\d*" 42syn match tliIdentifier "\<\h\w*\>" 43syn match tliComment "#.*" 44syn 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 49if 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 67endif 68 69let b:current_syntax = "tli" 70 71" vim: ts=8 72