2 " Language: screen(1) configuration file
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2010-01-03
6 if exists("b:current_syntax")
13 syn match screenEscape '\\.'
15 syn keyword screenTodo contained TODO FIXME XXX NOTE
17 syn region screenComment display oneline start='#' end='$'
18 \ contains=screenTodo,@Spell
20 syn region screenString display oneline start=+"+ skip=+\\"+ end=+"+
21 \ contains=screenVariable,screenSpecial
23 syn region screenLiteral display oneline start=+'+ skip=+\\'+ end=+'+
25 syn match screenVariable contained display '$\%(\h\w*\|{\h\w*}\)'
27 syn keyword screenBoolean on off
29 syn match screenNumbers display '\<\d\+\>'
31 syn match screenSpecials contained
32 \ '%\%([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)'
34 syn keyword screenCommands
232 hi def link screenEscape Special
233 hi def link screenComment Comment
234 hi def link screenTodo Todo
235 hi def link screenString String
236 hi def link screenLiteral String
237 hi def link screenVariable Identifier
238 hi def link screenBoolean Boolean
239 hi def link screenNumbers Number
240 hi def link screenSpecials Special
241 hi def link screenCommands Keyword
243 let b:current_syntax = "screen"
245 let &cpo = s:cpo_save