vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

screen.vim (10848B)


      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 
      8 if exists("b:current_syntax")
      9   finish
     10 endif
     11 
     12 let s:cpo_save = &cpo
     13 set cpo&vim
     14 
     15 syn match   screenEscape    '\\.' contains=screenOctalNumber
     16 
     17 syn keyword screenTodo      contained TODO FIXME XXX NOTE
     18 
     19 syn region  screenComment   display oneline start='#' end='$'
     20                           \ contains=screenTodo,@Spell
     21 
     22 syn region  screenString    display oneline start=+"+ skip=+\\"+ end=+"+
     23                           \ contains=screenVariable,screenSpecials,screenEscape
     24 
     25 syn region  screenLiteral   display oneline start=+'+ skip=+\\'+ end=+'+
     26 
     27 syn match   screenVariable  display '$\%(\h\w*\|{\h\w*}\)'
     28 
     29 syn keyword screenBoolean   on off
     30 
     31 syn match   screenDecimalNumber display '\<\d\+\>'
     32 syn match   screenOctalNumber display '\<0\o\+\>'
     33 
     34 " FIXME: Undocumented escape characters (winmsg.h): "g" (see commit
     35 " 945ad5414), "N" (49f592e21), "p" (6ead6f557), "T" (60893c465).
     36 syn region  screenSpecials  contained start=+%{+ end=+}+
     37 syn match   screenSpecials  contained '%[%aAdeEfFghHlmNPsStTuxXyY?:]'
     38 syn match   screenSpecials  contained '%\d*[n`=<>]' contains=screenSpecialsQualifier
     39 syn match   screenSpecials  contained '%0\?[cC]' contains=screenSpecialsQualifier
     40 syn match   screenSpecials  contained '%L\?[DMW]' contains=screenSpecialsQualifier
     41 syn match   screenSpecials  contained '%-\?O' contains=screenSpecialsQualifier
     42 syn match   screenSpecials  contained '%+\?p' contains=screenSpecialsQualifier
     43 syn match   screenSpecials  contained '%[-+]\?L\?[w=<>]' contains=screenSpecialsQualifier
     44 syn match   screenSpecialsQualifier contained '\d\+'
     45 syn match   screenSpecialsQualifier contained '[-+L]'
     46 
     47 syn 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 
    239 syn 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).
    247 syn 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 
    269 syn keyword screenDeprecatedCommands
    270                           \ debug
    271                           \ maxwin
    272                           \ nethack
    273                           \ password
    274                           \ time
    275 
    276 hi def link screenEscape    Special
    277 hi def link screenComment   Comment
    278 hi def link screenTodo      Todo
    279 hi def link screenString    String
    280 hi def link screenLiteral   String
    281 hi def link screenVariable  Identifier
    282 hi def link screenBoolean   Boolean
    283 hi def link screenNumbers   Number
    284 hi def link screenDecimalNumber screenNumbers
    285 hi def link screenOctalNumber screenNumbers
    286 hi def link screenSpecials  Special
    287 hi def link screenCommands  Keyword
    288 hi def link screenSpecialsQualifier Underlined
    289 hi def link screenVersion5Commands screenCommands
    290 hi def link dotscreenCommands screenCommands
    291 
    292 let b:current_syntax = "screen"
    293 
    294 let &cpo = s:cpo_save
    295 unlet s:cpo_save
    296 
    297 " vim: sw=2 et