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

  1. " Vim syntax file
  2. " Language:    ATLAS
  3. " Maintainer:    Inaki Saez <jisaez@sfe.indra.es>
  4. " Last change:    1998-03-31
  5.  
  6. syn clear
  7.  
  8. syn case ignore
  9.  
  10. syn keyword atlasStatement    begin terminate
  11. syn keyword atlasStatement    fill calculate compare
  12. syn keyword atlasStatement    setup connect close open disconnect reset
  13. syn keyword atlasStatement    initiate read fetch
  14. syn keyword atlasStatement    apply measure verify remove
  15. syn keyword atlasStatement    perform leave finish output delay
  16. syn keyword atlasStatement    prepare execute
  17. syn keyword atlasStatement    do
  18. syn match atlasStatement    "\<go[     ]\+to\>"
  19. syn match atlasStatement    "\<wait[     ]\+for\>"
  20.  
  21. syn keyword atlasInclude    include
  22. syn keyword atlasDefine        define require declare identify
  23.  
  24. "syn keyword atlasReserved    true false go nogo hi lo via
  25. syn keyword atlasReserved    true false
  26.  
  27. syn keyword atlasStorageClass    external global
  28.  
  29. syn keyword atlasConditional    if then else end
  30. syn keyword atlasRepeat        while for thru
  31.  
  32. " Flags BEF and statement number
  33. syn match atlasSpecial        "^[BE ][ 0-9]\{,6}\>"
  34.  
  35. " Number formats
  36. syn match atlasHexNumber    "\<X'[0-9A-F]\+'"
  37. syn match atlasOctalNumber    "\<O'[0-7]\+'"
  38. syn match atlasBinNumber    "\<B'[01]\+'"
  39. syn match atlasNumber        "\<\d\+\>"
  40. "Floating point number part only
  41. syn match atlasDecimalNumber    "\.\d\+\([eE][-+]\=\d\)\=\>"
  42.  
  43. syn region atlasFormatString    start=+((+    end=+\())\)\|\()[     ]*\$\)+me=e-1
  44. syn region atlasString        start=+\<C'+    end=+'+   oneline
  45.  
  46. syn region atlasComment        start=+^C+    end=+\$+
  47. syn region atlasComment2    start=+\$.\++ms=s+1    end=+$+ oneline
  48.  
  49. syn match  atlasIdentifier    "'[A-Za-z0-9 ._-]\+'"
  50.  
  51. "Synchronization with Statement terminator $
  52. syn sync match atlasTerminator    grouphere atlasComment "^C"
  53. syn sync match atlasTerminator    groupthere NONE "\$"
  54. syn sync maxlines=100
  55.  
  56.  
  57. if !exists("did_atlas_syntax_inits")
  58.   let did_atlas_syntax_inits = 1
  59.  
  60.   hi link atlasConditional    Conditional
  61.   hi link atlasRepeat        Repeat
  62.   hi link atlasStatement    Statement
  63.   hi link atlasNumber        Number
  64.   hi link atlasHexNumber    Number
  65.   hi link atlasOctalNumber    Number
  66.   hi link atlasBinNumber    Number
  67.   hi link atlasDecimalNumber    Float
  68.   hi link atlasFormatString    String
  69.   hi link atlasString        String
  70.   hi link atlasComment        Comment
  71.   hi link atlasComment2        Comment
  72.   hi link atlasInclude        Include
  73.   hi link atlasDefine        Macro
  74.   hi link atlasReserved        PreCondit
  75.   hi link atlasStorageClass    StorageClass
  76.   hi link atlasIdentifier    NONE
  77.   hi link atlasSpecial        Special
  78. endif
  79.  
  80. let b:current_syntax = "atlas"
  81.  
  82. " vim: ts=8
  83.