7
|
1 " Vim syntax file
|
375
|
2 " Language: screen(1) configuration file
|
839
|
3 " 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 screenEscape '\\.'
|
7
|
14
|
375
|
15 syn keyword screenTodo contained TODO FIXME XXX NOTE
|
7
|
16
|
389
|
17 syn region screenComment display oneline start='#' end='$'
|
|
18 \ contains=screenTodo,@Spell
|
7
|
19
|
389
|
20 syn region screenString display oneline start=+"+ skip=+\\"+ end=+"+
|
375
|
21 \ contains=screenVariable,screenSpecial
|
7
|
22
|
389
|
23 syn region screenLiteral display oneline start=+'+ skip=+\\'+ end=+'+
|
7
|
24
|
375
|
25 syn match screenVariable contained display '$\(\h\w*\|{\h\w*}\)'
|
|
26
|
|
27 syn keyword screenBoolean on off
|
7
|
28
|
375
|
29 syn match screenNumbers display '\<\d\+\>'
|
|
30
|
|
31 syn match screenSpecials contained
|
|
32 \ '%\([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)'
|
7
|
33
|
375
|
34 syn keyword screenCommands acladd aclchg acldel aclgrp aclumask activity
|
|
35 \ addacl allpartial at attrcolor autodetach
|
|
36 \ bell_msg bind bindkey bufferfile caption chacl
|
|
37 \ chdir clear colon command compacthist console
|
|
38 \ copy copy_regcrlf debug detach digraph dinfo
|
|
39 \ crlf displays dumptermcap echo exec fit focus
|
|
40 \ height help history info kill lastmsg license
|
|
41 \ lockscreen markkeys meta msgminwait msgwait
|
|
42 \ multiuser nethack next nonblock number only
|
|
43 \ other partial_state password paste pastefont
|
|
44 \ pow_break pow_detach_msg prev printcmd process
|
|
45 \ quit readbuf readreg redisplay register
|
|
46 \ remove removebuf reset resize screen select
|
|
47 \ sessionname setenv shelltitle silencewait
|
|
48 \ verbose sleep sorendition split startup_message
|
|
49 \ stuff su suspend time title umask version wall
|
|
50 \ width writebuf xoff xon defmode hardstatus
|
|
51 \ altscreen break breaktype copy_reg defbreaktype
|
|
52 \ defencoding deflog encoding eval ignorecase
|
|
53 \ ins_reg maxwin partial pow_detach setsid source
|
|
54 \ unsetenv windowlist windows defautonuke autonuke
|
|
55 \ defbce bce defc1 c1 defcharset charset defescape
|
|
56 \ escape defflow flow defkanji kanji deflogin
|
|
57 \ login defmonitor monitor defhstatus hstatus
|
|
58 \ defobuflimit obuflimit defscrollback scrollback
|
|
59 \ defshell shell defsilence silence defslowpaste
|
|
60 \ slowpaste defutf8 utf8 defwrap wrap defwritelock
|
|
61 \ writelock defzombie zombie defgr gr hardcopy
|
|
62 \ hardcopy_append hardcopydir hardstatus log
|
|
63 \ logfile login logtstamp mapdefault mapnotnext
|
|
64 \ maptimeout term termcap terminfo termcapinfo
|
|
65 \ vbell vbell_msg vbellwait
|
7
|
66
|
375
|
67 hi def link screenEscape Special
|
|
68 hi def link screenComment Comment
|
|
69 hi def link screenTodo Todo
|
|
70 hi def link screenString String
|
|
71 hi def link screenLiteral String
|
|
72 hi def link screenVariable Identifier
|
|
73 hi def link screenBoolean Boolean
|
|
74 hi def link screenNumbers Number
|
|
75 hi def link screenSpecials Special
|
|
76 hi def link screenCommands Keyword
|
7
|
77
|
|
78 let b:current_syntax = "screen"
|
|
79
|
375
|
80 let &cpo = s:cpo_save
|
|
81 unlet s:cpo_save
|