1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-16 06:47:52 +01:00
vim/runtime/syntax/screen.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

261 lines
8.9 KiB
VimL
Raw Permalink Normal View History

2004-06-13 20:20:40 +00:00
" Vim syntax file
2015-09-25 20:34:21 +02:00
" Language: screen(1) configuration file
" Maintainer: Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com>
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2015-09-24
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
if exists("b:current_syntax")
2004-06-13 20:20:40 +00:00
finish
endif
2005-06-29 22:40:58 +00:00
let s:cpo_save = &cpo
set cpo&vim
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
syn match screenEscape '\\.'
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
syn keyword screenTodo contained TODO FIXME XXX NOTE
2004-06-13 20:20:40 +00:00
2005-07-04 22:49:24 +00:00
syn region screenComment display oneline start='#' end='$'
2010-01-12 21:31:21 +01:00
\ contains=screenTodo,@Spell
2004-06-13 20:20:40 +00:00
2005-07-04 22:49:24 +00:00
syn region screenString display oneline start=+"+ skip=+\\"+ end=+"+
2010-01-12 21:31:21 +01:00
\ contains=screenVariable,screenSpecial
2004-06-13 20:20:40 +00:00
2005-07-04 22:49:24 +00:00
syn region screenLiteral display oneline start=+'+ skip=+\\'+ end=+'+
2004-06-13 20:20:40 +00:00
2010-01-12 21:31:21 +01:00
syn match screenVariable contained display '$\%(\h\w*\|{\h\w*}\)'
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
syn keyword screenBoolean on off
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
syn match screenNumbers display '\<\d\+\>'
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
syn match screenSpecials contained
2010-01-12 21:31:21 +01:00
\ '%\%([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)'
2004-06-13 20:20:40 +00:00
2010-01-12 21:31:21 +01:00
syn keyword screenCommands
\ acladd
\ aclchg
\ acldel
\ aclgrp
\ aclumask
\ activity
\ addacl
\ allpartial
\ altscreen
\ at
\ attrcolor
\ autodetach
\ autonuke
\ backtick
\ bce
\ bd_bc_down
\ bd_bc_left
\ bd_bc_right
\ bd_bc_up
\ bd_bell
\ bd_braille_table
\ bd_eightdot
\ bd_info
\ bd_link
\ bd_lower_left
\ bd_lower_right
\ bd_ncrc
\ bd_port
\ bd_scroll
\ bd_skip
\ bd_start_braille
\ bd_type
\ bd_upper_left
\ bd_upper_right
\ bd_width
\ bell
\ bell_msg
\ bind
\ bindkey
\ blanker
\ blankerprg
\ break
\ breaktype
\ bufferfile
2015-09-25 20:34:21 +02:00
\ bumpleft
\ bumpright
2010-01-12 21:31:21 +01:00
\ c1
\ caption
\ chacl
\ charset
\ chdir
2015-09-25 20:34:21 +02:00
\ cjkwidth
2010-01-12 21:31:21 +01:00
\ clear
2015-09-25 20:34:21 +02:00
\ collapse
2010-01-12 21:31:21 +01:00
\ colon
\ command
\ compacthist
\ console
\ copy
\ crlf
\ debug
\ defautonuke
\ defbce
\ defbreaktype
\ defc1
\ defcharset
\ defencoding
\ defescape
\ defflow
\ defgr
\ defhstatus
\ defkanji
\ deflog
\ deflogin
\ defmode
\ defmonitor
2015-09-25 20:34:21 +02:00
\ defmousetrack
2010-01-12 21:31:21 +01:00
\ defnonblock
\ defobuflimit
\ defscrollback
\ defshell
\ defsilence
\ defslowpaste
\ defutf8
\ defwrap
\ defwritelock
2015-09-25 20:34:21 +02:00
\ defzombie
2010-01-12 21:31:21 +01:00
\ detach
\ digraph
\ dinfo
\ displays
\ dumptermcap
\ echo
\ encoding
\ escape
\ eval
\ exec
\ fit
\ flow
\ focus
2015-09-25 20:34:21 +02:00
\ focusminsize
2010-01-12 21:31:21 +01:00
\ gr
2015-09-25 20:34:21 +02:00
\ group
2010-01-12 21:31:21 +01:00
\ hardcopy
\ hardcopy_append
\ hardcopydir
\ hardstatus
\ height
\ help
\ history
\ hstatus
\ idle
\ ignorecase
\ info
\ kanji
\ kill
\ lastmsg
\ layout
\ license
\ lockscreen
\ log
\ logfile
\ login
\ logtstamp
\ mapdefault
\ mapnotnext
\ maptimeout
\ markkeys
\ maxwin
\ meta
\ monitor
2015-09-25 20:34:21 +02:00
\ mousetrack
2010-01-12 21:31:21 +01:00
\ msgminwait
\ msgwait
\ multiuser
\ nethack
\ next
\ nonblock
\ number
\ obuflimit
\ only
\ other
\ partial
\ password
\ paste
\ pastefont
\ pow_break
\ pow_detach
\ pow_detach_msg
\ prev
\ printcmd
\ process
\ quit
\ readbuf
\ readreg
\ redisplay
\ register
\ remove
\ removebuf
2015-09-25 20:34:21 +02:00
\ rendition
2010-01-12 21:31:21 +01:00
\ reset
\ resize
\ screen
\ scrollback
\ select
\ sessionname
\ setenv
\ setsid
\ shell
\ shelltitle
\ silence
\ silencewait
\ sleep
\ slowpaste
\ sorendition
2015-09-25 20:34:21 +02:00
\ sort
2010-01-12 21:31:21 +01:00
\ source
\ split
\ startup_message
\ stuff
\ su
\ suspend
\ term
\ termcap
\ termcapinfo
\ terminfo
\ time
\ title
\ umask
2015-09-25 20:34:21 +02:00
\ unbindall
2010-01-12 21:31:21 +01:00
\ unsetenv
\ utf8
\ vbell
\ vbell_msg
\ vbellwait
\ verbose
\ version
\ wall
\ width
\ windowlist
\ windows
\ wrap
\ writebuf
\ writelock
\ xoff
\ xon
\ zmodem
\ zombie
2015-09-25 20:34:21 +02:00
\ zombie_timeout
2004-06-13 20:20:40 +00:00
2005-06-29 22:40:58 +00:00
hi def link screenEscape Special
hi def link screenComment Comment
hi def link screenTodo Todo
hi def link screenString String
hi def link screenLiteral String
hi def link screenVariable Identifier
hi def link screenBoolean Boolean
hi def link screenNumbers Number
hi def link screenSpecials Special
hi def link screenCommands Keyword
2004-06-13 20:20:40 +00:00
let b:current_syntax = "screen"
2005-06-29 22:40:58 +00:00
let &cpo = s:cpo_save
unlet s:cpo_save