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 / strace.vim < prev    next >
Encoding:
Text File  |  2002-10-15  |  2.1 KB  |  67 lines

  1. " Vim syntax file
  2. " This is a GENERATED FILE. Please always refer to source file at the URI below.
  3. " Language: strace output
  4. " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
  5. " Last Change: 2002-10-10
  6. " URL: http://trific.ath.cx/Ftp/vim/syntax/strace.vim
  7.  
  8. " Setup
  9. if version >= 600
  10.     if exists("b:current_syntax")
  11.         finish
  12.     endif
  13. else
  14.     syntax clear
  15. endif
  16.  
  17. syn case match
  18.  
  19. " Parse the line
  20. syn match straceSpecialChar "\\\d\d\d\|\\." contained
  21. syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
  22. syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
  23. syn match straceNumber "\W0x\x\+"lc=1
  24. syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained
  25. syn match straceOtherRHS "?" contained
  26. syn match straceConstant "[A-Z_]\{2,}"
  27. syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline
  28. syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent
  29. syn match straceEquals "\s=\s"ms=s+1,me=e-1
  30. syn match straceParenthesis "[][(){}]"
  31. syn match straceSysCall "^\w\+"
  32. syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite
  33. syn match straceSysCallEmbed "\w\+" contained
  34. syn keyword stracePID pid contained
  35. syn match straceOperator "[-+=*/!%&|:,]"
  36. syn region straceComment start="/\*" end="\*/" oneline
  37.  
  38. " Define the default highlighting
  39. if version >= 508 || !exists("did_strace_syntax_inits")
  40.     if version < 508
  41.         let did_strace_syntax_inits = 1
  42.         command -nargs=+ HiLink hi link <args>
  43.     else
  44.         command -nargs=+ HiLink hi def link <args>
  45.     endif
  46.  
  47.     HiLink straceComment Comment
  48.     HiLink straceVerbosed Comment
  49.     HiLink stracePID PreProc
  50.     HiLink straceNumber Number
  51.     HiLink straceNumberRHS Type
  52.     HiLink straceOtherRHS Type
  53.     HiLink straceString String
  54.     HiLink straceConstant Function
  55.     HiLink straceEquals Type
  56.     HiLink straceSysCallEmbed straceSysCall
  57.     HiLink straceSysCall Statement
  58.     HiLink straceParenthesis Statement
  59.     HiLink straceOperator Normal
  60.     HiLink straceSpecialChar Special
  61.     HiLink straceOtherPID PreProc
  62.  
  63.     delcommand HiLink
  64. endif
  65.  
  66. let b:current_syntax = "strace"
  67.