home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / screen.vim < prev    next >
Encoding:
Text File  |  2002-10-24  |  3.7 KB  |  93 lines

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