Mercurial > vim
comparison runtime/syntax/screen.vim @ 375:f14cbd913415 v7.0097
updated for version 7.0097
author | vimboss |
---|---|
date | Wed, 29 Jun 2005 22:40:58 +0000 |
parents | 3fc0f57ecb91 |
children | 4fe8e1a7758e |
comparison
equal
deleted
inserted
replaced
374:575dacb554d8 | 375:f14cbd913415 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Screen Virtual Terminal Emulator/Manager Configuration File | 2 " Language: screen(1) configuration file |
3 " Maintainer: Nikolai Weibull <source@pcppopper.org> | 3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> |
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/screen/ | 4 " Latest Revision: 2005-06-29 |
5 " Latest Revision: 2004-05-22 | |
6 " arch-tag: 6a97fb8f-fc88-497f-9c55-e946734ba034 | |
7 | 5 |
8 if version < 600 | 6 if exists("b:current_syntax") |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 7 finish |
12 endif | 8 endif |
13 | 9 |
14 " comments | 10 let s:cpo_save = &cpo |
15 syn region screenComment matchgroup=screenComment start="#" end="$" contains=screenTodo | 11 set cpo&vim |
16 | 12 |
17 " todo | 13 syn match screenEscape '\\.' |
18 syn keyword screenTodo contained TODO FIXME XXX NOTE | |
19 | 14 |
20 " string (can contain variables) | 15 syn keyword screenTodo contained TODO FIXME XXX NOTE |
21 syn region screenString matchgroup=screenString start='"' skip='\\"' end='"\|$' contains=screenVariable,screenSpecial | |
22 | 16 |
23 " literal string | 17 syn region screenComment display oneline matchgroup=screenComment |
24 syn region screenLiteral matchgroup=screenLiteral start="'" skip="\\'" end="'\|$" | 18 \ start='#' end='$' contains=screenTodo,@Spell |
25 | 19 |
26 " environment variables | 20 syn region screenString display oneline matchgroup=screenString |
27 syn match screenVariable contained "$\(\h\w*\|{\h\w*}\)" | 21 \ start=+"+ skip=+\\"+ end=+"\|$+ |
22 \ contains=screenVariable,screenSpecial | |
28 | 23 |
29 " booleans | 24 syn region screenLiteral display oneline matchgroup=screenLiteral |
30 syn keyword screenBoolean on off | 25 \ start=+'+ skip=+\\'+ end=+'\|$+ |
31 | 26 |
32 " numbers | 27 syn match screenVariable contained display '$\(\h\w*\|{\h\w*}\)' |
33 syn match screenNumbers "\<\d\+\>" | |
34 | 28 |
35 " specials | 29 syn keyword screenBoolean on off |
36 syn match screenSpecials contained "%\([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)" | |
37 | 30 |
38 " commands | 31 syn match screenNumbers display '\<\d\+\>' |
39 syn keyword screenCommands acladd aclchg acldel aclgrp aclumask activity addacl allpartial at attrcolor | |
40 syn keyword screenCommands autodetach bell_msg bind bindkey bufferfile caption chacl chdir clear colon | |
41 syn keyword screenCommands command compacthist console copy copy_regcrlf debug detach digraph dinfo crlf | |
42 syn keyword screenCommands displays dumptermcap echo exec fit focus height help history | |
43 syn keyword screenCommands info kill lastmsg license lockscreen markkeys meta msgminwait msgwait | |
44 syn keyword screenCommands multiuser nethack next nonblock number only other partial_state | |
45 syn keyword screenCommands password paste pastefont pow_break pow_detach_msg prev printcmd process | |
46 syn keyword screenCommands quit readbuf readreg redisplay register remove removebuf reset resize screen | |
47 syn keyword screenCommands select sessionname setenv shelltitle silencewait verbose | |
48 syn keyword screenCommands sleep sorendition split startup_message stuff su suspend time | |
49 syn keyword screenCommands title umask version wall width writebuf xoff xon defmode hardstatus | |
50 syn keyword screenCommands altscreen break breaktype copy_reg defbreaktype defencoding deflog encoding | |
51 syn keyword screenCommands eval ignorecase ins_reg maxwin partial pow_detach setsid source unsetenv | |
52 syn keyword screenCommands windowlist windows | |
53 syn match screenCommands "\<\(def\)\=\(autonuke\|bce\|c1\|charset\|escape\|flow\|kanji\|login\|monitor\|hstatus\|obuflimit\)\>" | |
54 syn match screenCommands "\<\(def\)\=\(scrollback\|shell\|silence\|slowpaste\|utf8\|wrap\|writelock\|zombie\|gr\)\>" | |
55 syn match screenCommands "\<hard\(copy\(_append\|dir\)\=\|status\)\>" | |
56 syn match screenCommands "\<log\(file\|in\|tstamp\)\=\>" | |
57 syn match screenCommands "\<map\(default\|notnext\|timeout\)\>" | |
58 syn match screenCommands "\<term\(cap\|info\|capinfo\)\=\>" | |
59 syn match screenCommands "\<vbell\(_msg\|wait\)\=\>" | |
60 | 32 |
61 if exists("screen_minlines") | 33 syn match screenSpecials contained |
62 let b:screen_minlines = screen_minlines | 34 \ '%\([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)' |
63 else | |
64 let b:screen_minlines = 10 | |
65 endif | |
66 exec "syn sync minlines=" . b:screen_minlines | |
67 | 35 |
68 " Define the default highlighting. | 36 syn keyword screenCommands acladd aclchg acldel aclgrp aclumask activity |
69 " For version 5.7 and earlier: only when not done already | 37 \ addacl allpartial at attrcolor autodetach |
70 " For version 5.8 and later: only when an item doesn't have highlighting yet | 38 \ bell_msg bind bindkey bufferfile caption chacl |
71 if version >= 508 || !exists("did_screen_syn_inits") | 39 \ chdir clear colon command compacthist console |
72 if version < 508 | 40 \ copy copy_regcrlf debug detach digraph dinfo |
73 let did_screen_syn_inits = 1 | 41 \ crlf displays dumptermcap echo exec fit focus |
74 command -nargs=+ HiLink hi link <args> | 42 \ height help history info kill lastmsg license |
75 else | 43 \ lockscreen markkeys meta msgminwait msgwait |
76 command -nargs=+ HiLink hi def link <args> | 44 \ multiuser nethack next nonblock number only |
77 endif | 45 \ other partial_state password paste pastefont |
46 \ pow_break pow_detach_msg prev printcmd process | |
47 \ quit readbuf readreg redisplay register | |
48 \ remove removebuf reset resize screen select | |
49 \ sessionname setenv shelltitle silencewait | |
50 \ verbose sleep sorendition split startup_message | |
51 \ stuff su suspend time title umask version wall | |
52 \ width writebuf xoff xon defmode hardstatus | |
53 \ altscreen break breaktype copy_reg defbreaktype | |
54 \ defencoding deflog encoding eval ignorecase | |
55 \ ins_reg maxwin partial pow_detach setsid source | |
56 \ unsetenv windowlist windows defautonuke autonuke | |
57 \ defbce bce defc1 c1 defcharset charset defescape | |
58 \ escape defflow flow defkanji kanji deflogin | |
59 \ login defmonitor monitor defhstatus hstatus | |
60 \ defobuflimit obuflimit defscrollback scrollback | |
61 \ defshell shell defsilence silence defslowpaste | |
62 \ slowpaste defutf8 utf8 defwrap wrap defwritelock | |
63 \ writelock defzombie zombie defgr gr hardcopy | |
64 \ hardcopy_append hardcopydir hardstatus log | |
65 \ logfile login logtstamp mapdefault mapnotnext | |
66 \ maptimeout term termcap terminfo termcapinfo | |
67 \ vbell vbell_msg vbellwait | |
78 | 68 |
79 HiLink screenComment Comment | 69 hi def link screenEscape Special |
80 HiLink screenTodo Todo | 70 hi def link screenComment Comment |
81 HiLink screenString String | 71 hi def link screenTodo Todo |
82 HiLink screenLiteral String | 72 hi def link screenString String |
83 HiLink screenVariable Identifier | 73 hi def link screenLiteral String |
84 HiLink screenBoolean Boolean | 74 hi def link screenVariable Identifier |
85 HiLink screenNumbers Number | 75 hi def link screenBoolean Boolean |
86 HiLink screenSpecials Special | 76 hi def link screenNumbers Number |
87 HiLink screenCommands Keyword | 77 hi def link screenSpecials Special |
88 delcommand HiLink | 78 hi def link screenCommands Keyword |
89 endif | |
90 | 79 |
91 let b:current_syntax = "screen" | 80 let b:current_syntax = "screen" |
92 | 81 |
93 " vim: set sts=2 sw=2: | 82 let &cpo = s:cpo_save |
83 unlet s:cpo_save |