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 / abaqus.vim < prev    next >
Encoding:
Text File  |  2002-02-24  |  1.4 KB  |  49 lines

  1. " Vim syntax file
  2. " Language:    Abaqus finite element input file (www.hks.com)
  3. " Maintainer:    Carl Osterwisch <osterwischc@asme.org>
  4. " Last Change:    2002 Feb 24
  5. " Remark:    Huge improvement in folding performance--see filetype plugin
  6.  
  7. " For version 5.x: Clear all syntax items
  8. " For version 6.x: Quit when a syntax file was already loaded
  9. if version < 600
  10.   syntax clear
  11. elseif exists("b:current_syntax")
  12.   finish
  13. endif
  14.  
  15. " Abaqus comment lines
  16. syn match abaqusComment    "^\*\*.*$"
  17.  
  18. " Abaqus keyword lines
  19. syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
  20. syn match abaqusKeyword "^\*\h[^,]*" contained display
  21. syn match abaqusParameter ",[^,=]\+"lc=1 contained display
  22. syn match abaqusValue    "=\s*[^,]*"lc=1 contained display
  23.  
  24. " Illegal syntax
  25. syn match abaqusBadLine    "^\s\+\*.*" display
  26.  
  27. " Define the default highlighting.
  28. " For version 5.7 and earlier: only when not done already
  29. " For version 5.8 and later: only when an item doesn't have highlighting yet
  30. if version >= 508 || !exists("did_abaqus_syn_inits")
  31.     if version < 508
  32.         let did_abaqus_syn_inits = 1
  33.         command -nargs=+ HiLink hi link <args>
  34.     else
  35.         command -nargs=+ HiLink hi def link <args>
  36.     endif
  37.  
  38.     " The default methods for highlighting.  Can be overridden later
  39.     HiLink abaqusComment    Comment
  40.     HiLink abaqusKeyword    Statement
  41.     HiLink abaqusParameter    Identifier
  42.     HiLink abaqusValue    Constant
  43.     HiLink abaqusBadLine    Error
  44.  
  45.     delcommand HiLink
  46. endif
  47.  
  48. let b:current_syntax = "abaqus"
  49.