7
|
1 " Vim syntax file
|
11062
|
2 " Language: terminfo(5) definition
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
7
|
5
|
375
|
6 if exists("b:current_syntax")
|
7
|
7 finish
|
|
8 endif
|
|
9
|
375
|
10 let s:cpo_save = &cpo
|
|
11 set cpo&vim
|
7
|
12
|
375
|
13 syn match terminfoKeywords '[,=#|]'
|
7
|
14
|
375
|
15 syn keyword terminfoTodo contained TODO FIXME XXX NOTE
|
7
|
16
|
389
|
17 syn region terminfoComment display oneline start='^#' end='$'
|
375
|
18 \ contains=terminfoTodo,@Spell
|
|
19
|
|
20 syn match terminfoNumbers '\<[0-9]\+\>'
|
7
|
21
|
375
|
22 syn match terminfoSpecialChar '\\\(\o\{3}\|[Eenlrtbfs^\,:0]\)'
|
|
23 syn match terminfoSpecialChar '\^\a'
|
7
|
24
|
375
|
25 syn match terminfoDelay '$<[0-9]\+>'
|
7
|
26
|
375
|
27 syn keyword terminfoBooleans bw am bce ccc xhp xhpa cpix crxw xt xenl eo gn
|
|
28 \ hc chts km daisy hs hls in lpix da db mir
|
|
29 \ msgr nxon xsb npc ndscr nrrmc os mc5i xcpa
|
|
30 \ sam eslok hz ul xon
|
7
|
31
|
375
|
32 syn keyword terminfoNumerics cols it lh lw lines lm xmc ma colors pairs wnum
|
|
33 \ ncv nlab pb vt wsl bitwin bitype bufsz btns
|
|
34 \ spinh spinv maddr mjump mcs npins orc orhi
|
|
35 \ orl orvi cps widcs
|
7
|
36
|
375
|
37 syn keyword terminfoStrings acsc cbt bel cr cpi lpi chr cvr csr rmp tbc mgc
|
|
38 \ clear el1 el ed hpa cmdch cwin cup cud1 home
|
|
39 \ civis cub1 mrcup cnorm cuf1 ll cuu1 cvvis
|
|
40 \ defc dch1 dl1 dial dsl dclk hd enacs smacs
|
|
41 \ smam blink bold smcup smdc dim swidm sdrfq
|
|
42 \ smir sitm slm smicm snlq snrmq prot rev
|
|
43 \ invis sshm smso ssubm ssupm smul sum smxon
|
|
44 \ ech rmacs rmam sgr0 rmcup rmdc rwidm rmir
|
|
45 \ ritm rlm rmicm rshm rmso rsubm rsupm rmul
|
|
46 \ rum rmxon pause hook flash ff fsl wingo hup
|
|
47 \ is1 is2 is3 if iprog initc initp ich1 il1 ip
|
|
48 \ ka1 ka3 kb2 kbs kbeg kcbt kc1 kc3 kcan ktbc
|
|
49 \ kclr kclo kcmd kcpy kcrt kctab kdch1 kdl1
|
|
50 \ kcud1 krmir kend kent kel ked kext kfnd khlp
|
|
51 \ khome kich1 kil1 kcub1 kll kmrk kmsg kmov
|
|
52 \ knxt knp kopn kopt kpp kprv kprt krdo kref
|
|
53 \ krfr krpl krst kres kcuf1 ksav kBEG kCAN
|
|
54 \ kCMD kCPY kCRT kDC kDL kslt kEND kEOL kEXT
|
|
55 \ kind kFND kHLP kHOM kIC kLFT kMSG kMOV kNXT
|
|
56 \ kOPT kPRV kPRT kri kRDO kRPL kRIT kRES kSAV
|
|
57 \ kSPD khts kUND kspd kund kcuu1 rmkx smkx
|
|
58 \ lf0 lf1 lf10 lf2 lf3 lf4 lf5 lf6 lf7 lf8 lf9
|
|
59 \ fln rmln smln rmm smm mhpa mcud1 mcub1 mcuf1
|
|
60 \ mvpa mcuu1 nel porder oc op pad dch dl cud
|
|
61 \ mcud ich indn il cub mcub cuf mcuf rin cuu
|
|
62 \ mccu pfkey pfloc pfx pln mc0 mc5p mc4 mc5
|
|
63 \ pulse qdial rmclk rep rfi rs1 rs2 rs3 rf rc
|
|
64 \ vpa sc ind ri scs sgr setbsmgb smgbp sclk
|
|
65 \ scp setb setf smgl smglp smgr smgrp hts smgt
|
|
66 \ smgtp wind sbim scsd rbim rcsd subcs supcs
|
|
67 \ ht docr tsl tone uc hu u0 u1 u2 u3 u4 u5 u6
|
|
68 \ u7 u8 u9 wait xoffc xonc zerom scesa bicr
|
|
69 \ binel birep csnm csin colornm defbi devt
|
|
70 \ dispc endbi smpch smsc rmpch rmsc getm kmous
|
|
71 \ minfo pctrm pfxl reqmp scesc s0ds s1ds s2ds
|
|
72 \ s3ds setab setaf setcolor smglr slines smgtb
|
|
73 \ ehhlm elhlm erhlm ethlm evhlm sgr1 slengthsL
|
|
74 syn match terminfoStrings display '\<kf\([0-9]\|[0-5][0-9]\|6[0-3]\)\>'
|
7
|
75
|
375
|
76 syn match terminfoParameters '%[%dcspl+*/mAO&|^=<>!~i?te;-]'
|
839
|
77 syn match terminfoParameters "%\('[A-Z]'\|{[0-9]\{1,2}}\|p[1-9]\|P[a-z]\|g[A-Z]\)"
|
7
|
78
|
375
|
79 hi def link terminfoComment Comment
|
|
80 hi def link terminfoTodo Todo
|
|
81 hi def link terminfoNumbers Number
|
|
82 hi def link terminfoSpecialChar SpecialChar
|
|
83 hi def link terminfoDelay Special
|
|
84 hi def link terminfoBooleans Type
|
|
85 hi def link terminfoNumerics Type
|
|
86 hi def link terminfoStrings Type
|
|
87 hi def link terminfoParameters Keyword
|
|
88 hi def link terminfoKeywords Keyword
|
7
|
89
|
|
90 let b:current_syntax = "terminfo"
|
|
91
|
375
|
92 let &cpo = s:cpo_save
|
|
93 unlet s:cpo_save
|