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 / ave.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  1.7 KB  |  80 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:    avenue
  3. " Maintainer:    Jan-Oliver Wagner <Jan-Oliver.Wagner@usf.Uni-Osnabrueck.DE>
  4. " Last change:    1998 September 11
  5.  
  6. " Avenue is the ArcView built-in language. ArcView is
  7. " a desktop GIS by ESRI. Though it is a built-in language
  8. " and a built-in editor is provided, the use of VIM increases
  9. " development speed.
  10. " I use some technologies to automatically load avenue scripts
  11. " into ArcView.
  12.  
  13. " Remove any old syntax stuff hanging around
  14. syn clear
  15.  
  16. " Avenue is entirely case-insensitive.
  17. syn case ignore
  18.  
  19. " The keywords
  20.  
  21. syn keyword aveStatement    if then elseif else end break exit return
  22. syn keyword aveStatement    for each in continue while
  23.  
  24. " String
  25.  
  26. syn region aveString        start=+"+ end=+"+
  27.  
  28. " Integer number
  29. syn match  aveNumber        "[+-]\=\<[0-9]\+\>"
  30.  
  31. " Operator
  32.  
  33. syn keyword aveOperator        or and max min xor mod by
  34.  
  35. " Variables
  36.  
  37. syn keyword aveFixVariables    av nil self false true nl tab cr tab
  38. syn match globalVariables    "_[a-zA-Z][a-zA-Z0-9]*"
  39. syn match aveVariables        "[a-zA-Z][a-zA-Z0-9_]*"
  40. syn match aveConst        "#[A-Z][A-Z_]+"
  41.  
  42. " Procedures (class methods) - not working, why?
  43.  
  44. syn match avClassMethods    "\.[a-zA-Z][a-zA-Z]+"
  45.  
  46. " Comments
  47.  
  48. syn match aveComment    "'.*"
  49.  
  50. " Typical Typos
  51.  
  52. " for C programmers:
  53. syn match aveTypos    "=="
  54. syn match aveTypos    "!="
  55.  
  56. if !exists("did_ave_syntax_inits")
  57.   let did_ave_syntax_inits = 1
  58.  
  59.   hi link aveStatement        Statement
  60.  
  61.   hi link aveString        String
  62.   hi link aveNumber        Number
  63.  
  64.   hi link aveFixVariables    Special
  65.   hi link aveVariables        Identifier
  66.   hi link globalVariables    Special
  67.   hi link aveConst        Special
  68.  
  69.   hi link aveClassMethods    Function
  70.  
  71.   hi link aveOperators        Operator
  72.   hi link aveComment        Comment
  73.  
  74.   hi link aveTypos        Error
  75. endif
  76.  
  77. let b:current_syntax = "ave"
  78.  
  79. " vim: ts=8
  80.