summaryrefslogtreecommitdiff
path: root/runtime/syntax/terminfo.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-29 22:40:58 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-29 22:40:58 +0000
commit42eeac3552c5a5ea10f24373f76b93633b6c8604 (patch)
tree902f3158470a3e9c53850708cf982c85c6338796 /runtime/syntax/terminfo.vim
parent24bbcfe8fe62ea43b1cea86243be4fdc8794140b (diff)
downloadvim-42eeac3552c5a5ea10f24373f76b93633b6c8604.zip
updated for version 7.0097
Diffstat (limited to 'runtime/syntax/terminfo.vim')
-rw-r--r--runtime/syntax/terminfo.vim170
1 files changed, 74 insertions, 96 deletions
diff --git a/runtime/syntax/terminfo.vim b/runtime/syntax/terminfo.vim
index 6ac7ffaf3..c83a3a3f4 100644
--- a/runtime/syntax/terminfo.vim
+++ b/runtime/syntax/terminfo.vim
@@ -1,115 +1,93 @@
" Vim syntax file
-" Language: Terminfo definition
-" Maintainer: Nikolai Weibull <source@pcppopper.org>
-" URL: http://www.pcppopper.org/vim/syntax/pcp/terminfo/
-" Latest Revision: 2004-05-22
-" arch-tag: 8464dd47-0c5a-47d5-87ed-a2ad99e1196f
+" Language: terminfo(5) definition
+" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
+" Latest Revision: 2005-06-29
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
+if exists("b:current_syntax")
finish
endif
-" keywords (define first as to not mess up comments
-syn match terminfoKeywords "[,=#|]"
+let s:cpo_save = &cpo
+set cpo&vim
-" todo
-syn keyword terminfoTodo contained TODO FIXME XXX NOTE
+syn match terminfoKeywords '[,=#|]'
-" comments
-syn region terminfoComment matchgroup=terminfoComment start="^#" end="$" contains=terminfoTodo
+syn keyword terminfoTodo contained TODO FIXME XXX NOTE
-" numbers
-syn match terminfoNumbers "\<[0-9]\+\>"
+syn region terminfoComment matchgroup=terminfoComment start='^#' end='$'
+ \ contains=terminfoTodo,@Spell
-" special keys
-syn match terminfoSpecialChar "\\\(\o\{3}\|[Eenlrtbfs^\,:0]\)"
-syn match terminfoSpecialChar "\^\a"
+syn match terminfoNumbers '\<[0-9]\+\>'
-" delays
-syn match terminfoDelay "$<[0-9]\+>"
+syn match terminfoSpecialChar '\\\(\o\{3}\|[Eenlrtbfs^\,:0]\)'
+syn match terminfoSpecialChar '\^\a'
-" boolean capabilities
-syn keyword terminfoBooleans bw am bce ccc xhp xhpa cpix crxw xt xenl eo gn
-syn keyword terminfoBooleans hc chts km daisy hs hls in lpix da db mir msgr
-syn keyword terminfoBooleans nxon xsb npc ndscr nrrmc os mc5i xcpa sam eslok
-syn keyword terminfoBooleans hz ul xon
+syn match terminfoDelay '$<[0-9]\+>'
-" numeric capabilities
-syn keyword terminfoNumerics cols it lh lw lines lm xmc ma colors pairs wnum
-syn keyword terminfoNumerics ncv nlab pb vt wsl bitwin bitype bufsz btns
-syn keyword terminfoNumerics spinh spinv maddr mjump mcs npins orc orhi orl
-syn keyword terminfoNumerics orvi cps widcs
+syn keyword terminfoBooleans bw am bce ccc xhp xhpa cpix crxw xt xenl eo gn
+ \ hc chts km daisy hs hls in lpix da db mir
+ \ msgr nxon xsb npc ndscr nrrmc os mc5i xcpa
+ \ sam eslok hz ul xon
-" string capabilities
-syn keyword terminfoStrings acsc cbt bel cr cpi lpi chr cvr csr rmp tbc mgc
-syn keyword terminfoStrings clear el1 el ed hpa cmdch cwin cup cud1 home
-syn keyword terminfoStrings civis cub1 mrcup cnorm cuf1 ll cuu1 cvvis defc
-syn keyword terminfoStrings dch1 dl1 dial dsl dclk hd enacs smacs smam blink
-syn keyword terminfoStrings bold smcup smdc dim swidm sdrfq smir sitm slm
-syn keyword terminfoStrings smicm snlq snrmq prot rev invis sshm smso ssubm
-syn keyword terminfoStrings ssupm smul sum smxon ech rmacs rmam sgr0 rmcup
-syn keyword terminfoStrings rmdc rwidm rmir ritm rlm rmicm rshm rmso rsubm
-syn keyword terminfoStrings rsupm rmul rum rmxon pause hook flash ff fsl
-syn keyword terminfoStrings wingo hup is1 is2 is3 if iprog initc initp ich1
-syn keyword terminfoStrings il1 ip ka1 ka3 kb2 kbs kbeg kcbt kc1 kc3 kcan
-syn keyword terminfoStrings ktbc kclr kclo kcmd kcpy kcrt kctab kdch1 kdl1
-syn keyword terminfoStrings kcud1 krmir kend kent kel ked kext
-syn match terminfoStrings "\<kf\([0-9]\|[0-5][0-9]\|6[0-3]\)\>"
-syn keyword terminfoStrings kfnd khlp khome kich1 kil1 kcub1 kll kmrk
-syn keyword terminfoStrings kmsg kmov knxt knp kopn kopt kpp kprv kprt krdo
-syn keyword terminfoStrings kref krfr krpl krst kres kcuf1 ksav kBEG kCAN
-syn keyword terminfoStrings kCMD kCPY kCRT kDC kDL kslt kEND kEOL kEXT kind
-syn keyword terminfoStrings kFND kHLP kHOM kIC kLFT kMSG kMOV kNXT kOPT kPRV
-syn keyword terminfoStrings kPRT kri kRDO kRPL kRIT kRES kSAV kSPD khts kUND
-syn keyword terminfoStrings kspd kund kcuu1 rmkx smkx lf0 lf1 lf10 lf2 lf3
-syn keyword terminfoStrings lf4 lf5 lf6 lf7 lf8 lf9 fln rmln smln rmm smm
-syn keyword terminfoStrings mhpa mcud1 mcub1 mcuf1 mvpa mcuu1 nel porder oc
-syn keyword terminfoStrings op pad dch dl cud mcud ich indn il cub mcub cuf
-syn keyword terminfoStrings mcuf rin cuu mccu pfkey pfloc pfx pln mc0 mc5p
-syn keyword terminfoStrings mc4 mc5 pulse qdial rmclk rep rfi rs1 rs2 rs3 rf
-syn keyword terminfoStrings rc vpa sc ind ri scs sgr setbsmgb smgbp sclk scp
-syn keyword terminfoStrings setb setf smgl smglp smgr smgrp hts smgt smgtp
-syn keyword terminfoStrings wind sbim scsd rbim rcsd subcs supcs ht docr
-syn keyword terminfoStrings tsl tone uc hu
-syn match terminfoStrings "\<u[0-9]\>"
-syn keyword terminfoStrings wait xoffc xonc zerom
-syn keyword terminfoStrings scesa bicr binel birep csnm csin colornm defbi
-syn keyword terminfoStrings devt dispc endbi smpch smsc rmpch rmsc getm
-syn keyword terminfoStrings kmous minfo pctrm pfxl reqmp scesc s0ds s1ds
-syn keyword terminfoStrings s2ds s3ds setab setaf setcolor smglr slines
-syn keyword terminfoStrings smgtb ehhlm elhlm erhlm ethlm evhlm sgr1
-syn keyword terminfoStrings slengthsL
+syn keyword terminfoNumerics cols it lh lw lines lm xmc ma colors pairs wnum
+ \ ncv nlab pb vt wsl bitwin bitype bufsz btns
+ \ spinh spinv maddr mjump mcs npins orc orhi
+ \ orl orvi cps widcs
-" parameterized strings
-syn match terminfoParameters "%[%dcspl+*/mAO&|^=<>!~i?te;-]"
-syn match terminfoParameters "%\('[A-Z]'\|{[0-9]\{1,2}}\|p[1-9]\|P[a-z]\|g[A-Z]\)"
+syn keyword terminfoStrings acsc cbt bel cr cpi lpi chr cvr csr rmp tbc mgc
+ \ clear el1 el ed hpa cmdch cwin cup cud1 home
+ \ civis cub1 mrcup cnorm cuf1 ll cuu1 cvvis
+ \ defc dch1 dl1 dial dsl dclk hd enacs smacs
+ \ smam blink bold smcup smdc dim swidm sdrfq
+ \ smir sitm slm smicm snlq snrmq prot rev
+ \ invis sshm smso ssubm ssupm smul sum smxon
+ \ ech rmacs rmam sgr0 rmcup rmdc rwidm rmir
+ \ ritm rlm rmicm rshm rmso rsubm rsupm rmul
+ \ rum rmxon pause hook flash ff fsl wingo hup
+ \ is1 is2 is3 if iprog initc initp ich1 il1 ip
+ \ ka1 ka3 kb2 kbs kbeg kcbt kc1 kc3 kcan ktbc
+ \ kclr kclo kcmd kcpy kcrt kctab kdch1 kdl1
+ \ kcud1 krmir kend kent kel ked kext kfnd khlp
+ \ khome kich1 kil1 kcub1 kll kmrk kmsg kmov
+ \ knxt knp kopn kopt kpp kprv kprt krdo kref
+ \ krfr krpl krst kres kcuf1 ksav kBEG kCAN
+ \ kCMD kCPY kCRT kDC kDL kslt kEND kEOL kEXT
+ \ kind kFND kHLP kHOM kIC kLFT kMSG kMOV kNXT
+ \ kOPT kPRV kPRT kri kRDO kRPL kRIT kRES kSAV
+ \ kSPD khts kUND kspd kund kcuu1 rmkx smkx
+ \ lf0 lf1 lf10 lf2 lf3 lf4 lf5 lf6 lf7 lf8 lf9
+ \ fln rmln smln rmm smm mhpa mcud1 mcub1 mcuf1
+ \ mvpa mcuu1 nel porder oc op pad dch dl cud
+ \ mcud ich indn il cub mcub cuf mcuf rin cuu
+ \ mccu pfkey pfloc pfx pln mc0 mc5p mc4 mc5
+ \ pulse qdial rmclk rep rfi rs1 rs2 rs3 rf rc
+ \ vpa sc ind ri scs sgr setbsmgb smgbp sclk
+ \ scp setb setf smgl smglp smgr smgrp hts smgt
+ \ smgtp wind sbim scsd rbim rcsd subcs supcs
+ \ ht docr tsl tone uc hu u0 u1 u2 u3 u4 u5 u6
+ \ u7 u8 u9 wait xoffc xonc zerom scesa bicr
+ \ binel birep csnm csin colornm defbi devt
+ \ dispc endbi smpch smsc rmpch rmsc getm kmous
+ \ minfo pctrm pfxl reqmp scesc s0ds s1ds s2ds
+ \ s3ds setab setaf setcolor smglr slines smgtb
+ \ ehhlm elhlm erhlm ethlm evhlm sgr1 slengthsL
+syn match terminfoStrings display '\<kf\([0-9]\|[0-5][0-9]\|6[0-3]\)\>'
-" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_terminfo_syn_inits")
- if version < 508
- let did_terminfo_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
+syn match terminfoParameters '%[%dcspl+*/mAO&|^=<>!~i?te;-]'
+syn match terminfoParameters '%\('[A-Z]'\|{[0-9]\{1,2}}\|p[1-9]\|P[a-z]\|g[A-Z]\)'
- HiLink terminfoComment Comment
- HiLink terminfoTodo Todo
- HiLink terminfoNumbers Number
- HiLink terminfoSpecialChar SpecialChar
- HiLink terminfoDelay Special
- HiLink terminfoBooleans Type
- HiLink terminfoNumerics Type
- HiLink terminfoStrings Type
- HiLink terminfoParameters Keyword
- HiLink terminfoKeywords Keyword
- delcommand HiLink
-endif
+hi def link terminfoComment Comment
+hi def link terminfoTodo Todo
+hi def link terminfoNumbers Number
+hi def link terminfoSpecialChar SpecialChar
+hi def link terminfoDelay Special
+hi def link terminfoBooleans Type
+hi def link terminfoNumerics Type
+hi def link terminfoStrings Type
+hi def link terminfoParameters Keyword
+hi def link terminfoKeywords Keyword
let b:current_syntax = "terminfo"
-" vim: set sts=2 sw=2:
+let &cpo = s:cpo_save
+unlet s:cpo_save