robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:a65741c: runtime(screen): Bring the syntax up to version 56f4ebdad80

master
10.6 KiB297 linesraw
1" Vim syntax file
2" Language:             screen(1) configuration file
3" Maintainer:           Aliaksei Budavei <0x000c70 AT gmail DOT com>
4" Previous Maintainers: Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com>
5"                       Nikolai Weibull <now@bitwi.se>
6" Latest Revision:      2026 Jun 29
7
8if exists("b:current_syntax")
9  finish
10endif
11
12let s:cpo_save = &cpo
13set cpo&vim
14
15syn match   screenEscape    '\\.' contains=screenOctalNumber
16
17syn keyword screenTodo      contained TODO FIXME XXX NOTE
18
19syn region  screenComment   display oneline start='#' end='$'
20                          \ contains=screenTodo,@Spell
21
22syn region  screenString    display oneline start=+"+ skip=+\\"+ end=+"+
23                          \ contains=screenVariable,screenSpecials,screenEscape
24
25syn region  screenLiteral   display oneline start=+'+ skip=+\\'+ end=+'+
26
27syn match   screenVariable  display '$\%(\h\w*\|{\h\w*}\)'
28
29syn keyword screenBoolean   on off
30
31syn match   screenDecimalNumber display '\<\d\+\>'
32syn match   screenOctalNumber display '\<0\o\+\>'
33
34" FIXME: Undocumented escape characters (winmsg.h): "g" (see commit
35" 945ad5414), "N" (49f592e21), "p" (6ead6f557), "T" (60893c465).
36syn region  screenSpecials  contained start=+%{+ end=+}+
37syn match   screenSpecials  contained '%[%aAdeEfFghHlmNPsStTuxXyY?:]'
38syn match   screenSpecials  contained '%\d*[n`=<>]' contains=screenSpecialsQualifier
39syn match   screenSpecials  contained '%0\?[cC]' contains=screenSpecialsQualifier
40syn match   screenSpecials  contained '%L\?[DMW]' contains=screenSpecialsQualifier
41syn match   screenSpecials  contained '%-\?O' contains=screenSpecialsQualifier
42syn match   screenSpecials  contained '%+\?p' contains=screenSpecialsQualifier
43syn match   screenSpecials  contained '%[-+]\?L\?[w=<>]' contains=screenSpecialsQualifier
44syn match   screenSpecialsQualifier contained '\d\+'
45syn match   screenSpecialsQualifier contained '[-+L]'
46
47syn keyword screenCommands
48                          \ acladd
49                          \ aclchg
50                          \ acldel
51                          \ aclgrp
52                          \ aclumask
53                          \ activity
54                          \ addacl
55                          \ allpartial
56                          \ altscreen
57                          \ at
58                          \ attrcolor
59                          \ autodetach
60                          \ autonuke
61                          \ backtick
62                          \ bce
63                          \ bell
64                          \ bell_msg
65                          \ bind
66                          \ bindkey
67                          \ blanker
68                          \ blankerprg
69                          \ break
70                          \ breaktype
71                          \ bufferfile
72                          \ bumpleft
73                          \ bumpright
74                          \ c1
75                          \ caption
76                          \ chacl
77                          \ charset
78                          \ chdir
79                          \ cjkwidth
80                          \ clear
81                          \ collapse
82                          \ colon
83                          \ command
84                          \ compacthist
85                          \ console
86                          \ copy
87                          \ crlf
88                          \ debug
89                          \ defautonuke
90                          \ defbce
91                          \ defbreaktype
92                          \ defc1
93                          \ defcharset
94                          \ defdynamictitle
95                          \ defencoding
96                          \ defescape
97                          \ defflow
98                          \ defgr
99                          \ defhstatus
100                          \ defkanji
101                          \ deflog
102                          \ deflogin
103                          \ defmode
104                          \ defmonitor
105                          \ defmousetrack
106                          \ defnonblock
107                          \ defobuflimit
108                          \ defscrollback
109                          \ defshell
110                          \ defsilence
111                          \ defslowpaste
112                          \ defutf8
113                          \ defwrap
114                          \ defwritelock
115                          \ detach
116                          \ digraph
117                          \ dinfo
118                          \ displays
119                          \ dumptermcap
120                          \ dynamictitle
121                          \ echo
122                          \ encoding
123                          \ escape
124                          \ eval
125                          \ exec
126                          \ fit
127                          \ flow
128                          \ focus
129                          \ focusminsize
130                          \ gr
131                          \ group
132                          \ hardcopy
133                          \ hardcopy_append
134                          \ hardcopydir
135                          \ hardstatus
136                          \ height
137                          \ help
138                          \ history
139                          \ hstatus
140                          \ idle
141                          \ ignorecase
142                          \ info
143                          \ kanji
144                          \ kill
145                          \ lastmsg
146                          \ layout
147                          \ license
148                          \ lockscreen
149                          \ log
150                          \ logfile
151                          \ login
152                          \ logtstamp
153                          \ mapdefault
154                          \ mapnotnext
155                          \ maptimeout
156                          \ markkeys
157                          \ maxwin
158                          \ meta
159                          \ monitor
160                          \ mousetrack
161                          \ msgminwait
162                          \ msgwait
163                          \ multiuser
164                          \ nethack
165                          \ next
166                          \ nonblock
167                          \ number
168                          \ obuflimit
169                          \ only
170                          \ other
171                          \ partial
172                          \ password
173                          \ paste
174                          \ pastefont
175                          \ pow_break
176                          \ pow_detach
177                          \ pow_detach_msg
178                          \ prev
179                          \ printcmd
180                          \ process
181                          \ quit
182                          \ readbuf
183                          \ readreg
184                          \ redisplay
185                          \ register
186                          \ remove
187                          \ removebuf
188                          \ rendition
189                          \ reset
190                          \ resize
191                          \ screen
192                          \ scrollback
193                          \ select
194                          \ sessionname
195                          \ setenv
196                          \ setsid
197                          \ shell
198                          \ shelltitle
199                          \ silence
200                          \ silencewait
201                          \ sleep
202                          \ slowpaste
203                          \ sorendition
204                          \ sort
205                          \ source
206                          \ split
207                          \ startup_message
208                          \ stuff
209                          \ su
210                          \ suspend
211                          \ term
212                          \ termcap
213                          \ termcapinfo
214                          \ terminfo
215                          \ time
216                          \ title
217                          \ umask
218                          \ unbindall
219                          \ unsetenv
220                          \ utf8
221                          \ vbell
222                          \ vbell_msg
223                          \ vbellwait
224                          \ verbose
225                          \ version
226                          \ wall
227                          \ width
228                          \ windowlist
229                          \ windows
230                          \ wrap
231                          \ writebuf
232                          \ writelock
233                          \ xoff
234                          \ xon
235                          \ zmodem
236                          \ zombie
237                          \ zombie_timeout
238
239syn keyword screenVersion5Commands
240                          \ auth
241                          \ multiinput
242                          \ status
243                          \ truecolor
244
245" Braille navigation commands from a superset program Dotscreen (see some
246" descriptions in doc/README.DOTSCREEN).
247syn keyword dotscreenCommands
248                          \ bd_bc_down
249                          \ bd_bc_left
250                          \ bd_bc_right
251                          \ bd_bc_up
252                          \ bd_bell
253                          \ bd_braille_table
254                          \ bd_eightdot
255                          \ bd_info
256                          \ bd_link
257                          \ bd_lower_left
258                          \ bd_lower_right
259                          \ bd_ncrc
260                          \ bd_port
261                          \ bd_scroll
262                          \ bd_skip
263                          \ bd_start_braille
264                          \ bd_type
265                          \ bd_upper_left
266                          \ bd_upper_right
267                          \ bd_width
268
269syn keyword screenDeprecatedCommands
270                          \ debug
271                          \ maxwin
272                          \ nethack
273                          \ password
274                          \ time
275
276hi def link screenEscape    Special
277hi def link screenComment   Comment
278hi def link screenTodo      Todo
279hi def link screenString    String
280hi def link screenLiteral   String
281hi def link screenVariable  Identifier
282hi def link screenBoolean   Boolean
283hi def link screenNumbers   Number
284hi def link screenDecimalNumber screenNumbers
285hi def link screenOctalNumber screenNumbers
286hi def link screenSpecials  Special
287hi def link screenCommands  Keyword
288hi def link screenSpecialsQualifier Underlined
289hi def link screenVersion5Commands screenCommands
290hi def link dotscreenCommands screenCommands
291
292let b:current_syntax = "screen"
293
294let &cpo = s:cpo_save
295unlet s:cpo_save
296
297" vim: sw=2 et