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 / mac / vim55rt.sit / runtime / syntax / elf.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  2.1 KB  |  77 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language   : ELF
  3. " Maintainer : Christian V. J. Bruessow <cvjb@bigfoot.de>
  4. " Last change: Fre 18 Jun 1999 13:34:50 MEST
  5.  
  6. " ELF: Extensible Language Facility
  7. "      This is the Applix Inc., Macro and Builder programming language.
  8. "      It has nothing in common with the binary format called ELF.
  9.  
  10. " Remove any old syntax stuff hanging around
  11. syn clear
  12.  
  13. " Case does not matter
  14. syn case ignore
  15.  
  16. " Environments
  17. syn region elfEnvironment transparent matchgroup=Special start="{" matchgroup=Special end="}" contains=ALLBUT,elfBraceError
  18.  
  19. " Unmatched braces
  20. syn match elfBraceError "}"
  21.  
  22. " All macros must have at least one of these definitions
  23. syn keyword elfSpecial endmacro
  24. syn region elfSpecial transparent matchgroup=Special start="^\(\(macro\)\|\(set\)\) \S\+$" matchgroup=Special end="^\(\(endmacro\)\|\(endset\)\)$" contains=ALLBUT,elfBraceError
  25.  
  26. " Preprocessor Commands
  27. syn keyword elfPPCom define include
  28.  
  29. " Some keywords
  30. syn keyword elfKeyword  false true null
  31. syn keyword elfKeyword    var format object function endfunction
  32.  
  33. " Conditionals and loops
  34. syn keyword elfConditional if else case of endcase for to next while until return goto
  35.  
  36. " All built-in elf macros end with an '@'
  37. syn match elfMacro "[0-9_A-Za-z]\+@"
  38.  
  39. " Strings and characters
  40. syn region elfString start=+"+  skip=+\\\\\|\\"+  end=+"+
  41.  
  42. " Numbers
  43. syn match elfNumber "-\=\<[0-9]*\.\=[0-9_]\>"
  44.  
  45. " Comments
  46. syn region elfComment start="/\*"  end="\*/"
  47. syn match elfComment  "\'.*$"
  48.  
  49. syn sync ccomment elfComment
  50.  
  51. " Parenthesis
  52. syn match elfParens "[\[\]()]"
  53.  
  54. " Punctuation
  55. syn match elfPunct "[,;]"
  56.  
  57. if !exists("did_elf_syntax_inits")
  58.   let did_elf_syntax_inits = 1
  59.   " The default methods for highlighting. Can be overridden later.
  60.   hi link elfComment Comment
  61.   hi link elfPPCom Include
  62.   hi link elfKeyword Keyword
  63.   hi link elfSpecial Special
  64.   hi link elfEnvironment Special
  65.   hi link elfBraceError Error
  66.   hi link elfConditional Conditional
  67.   hi link elfMacro Function
  68.   hi link elfNumber Number
  69.   hi link elfString String
  70.   hi link elfParens Delimiter
  71.   hi link elfPunct Delimiter
  72. endif
  73.  
  74. let b:current_syntax = "elf"
  75.  
  76. " vim: set ts=3 sw=3:
  77.