annotate runtime/syntax/screen.vim @ 216:da182deebec7

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