home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / ada.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  2.0 KB  |  76 lines

  1. " Vim syntax file
  2. " Language:    Ada (95)
  3. " Maintainer:    Simon Bradley <sib93@aber.ac.uk>
  4. " Last change:    1997 May 5
  5.  
  6. " Remove any old syntax stuff hanging around.
  7. syn clear
  8.  
  9. " Ada is entirely case-insensitive.
  10. syn case ignore
  11.  
  12. " The Ada 95 reserved words. There are 69 reserved words in total.
  13. syn keyword adaConditional    abort case else elsif if select when
  14.  
  15. syn keyword adaKeyword        all do end exception in is new null out pragma
  16. syn keyword adaKeyword        separate then until
  17.  
  18. syn keyword adaLabel        others
  19.  
  20. syn keyword adaOperator        abs and mod not or rem xor
  21.  
  22. syn keyword adaPreCondit    begin body declare entry function generic
  23. syn keyword adaPreCondit    package procedure protected renames task use
  24. syn keyword adaPreCondit    with
  25.  
  26. syn keyword adaRepeat        exit for loop reverse while
  27.  
  28. syn keyword adaStatement    accept delay goto raise requeue return
  29. syn keyword adaStatement    terminate
  30.  
  31. syn keyword adaStructure    record
  32.  
  33. syn keyword adaType        abstract access aliased array at constant delta
  34. syn keyword adaType        digits limited of private range tagged subtype
  35. syn keyword adaType        type
  36.  
  37. " Todo.
  38. syn keyword adaTodo contained    TODO
  39.  
  40. " Strings and characters.
  41. syn region  adaString        start=+"+  skip=+\\"+  end=+"+
  42. syn match   adaCharacter    "'[^\\]'"
  43.  
  44. " Numbers.
  45. syn match   adaNumber        "[+-]\=\<[0-9_]*\.\=[0-9_]*\>"
  46.  
  47. " Labels for the goto statement.
  48. syn region  adaLabel        start="<<"  end=">>"
  49.  
  50. " Comments.
  51. syn region  adaComment    oneline contains=adaTodo start="--"  end="$"
  52.  
  53. if !exists("did_ada_syntax_inits")
  54.   let did_ada_syntax_inits = 1
  55.   " The default methods for highlighting. Can be overridden later.
  56.   hi link adaCharacter    Character
  57.   hi link adaComment    Comment
  58.   hi link adaConditional    Conditional
  59.   hi link adaKeyword    Keyword
  60.   hi link adaLabel    Label
  61.   hi link adaNumber    Number
  62.   hi link adaOperator    Operator
  63.   hi link adaPreCondit    PreCondit
  64.   hi link adaRepeat    Repeat
  65.   hi link adaSpecial    Special
  66.   hi link adaStatement    Statement
  67.   hi link adaString    String
  68.   hi link adaStructure    Structure
  69.   hi link adaTodo    Todo
  70.   hi link adaType    Type
  71. endif
  72.  
  73. let b:current_syntax = "ada"
  74.  
  75. " vim: ts=8
  76.