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

  1. " Vim syntax file
  2. " Language:     VRML 1.0C
  3. " Maintainer:   David Brown <dbrown@cgs.c4.gmeds.com>
  4. " Last change:  1997 June 8
  5.  
  6. " keyword definitions
  7. syn keyword VRMLNodes          AsciiText Cone Coordinate3 Cube Cylinder
  8. syn keyword VRMLNodes          DirectionalLight Group IndexedFaceSet
  9. syn keyword VRMLNodes          IndexedLineSet Info LevelOfDetail Material
  10. syn keyword VRMLNodes          MaterialBinding MatrixTransform Normal
  11. syn keyword VRMLNodes          NormalBinding OrthographicCamera
  12. syn keyword VRMLNodes          PerspectiveCamera PointLight PointSet Rotation
  13. syn keyword VRMLNodes          Scale Separator ShapeHints Sphere SpotLight
  14. syn keyword VRMLNodes          Switch Texture2 Texture2Transform
  15. syn keyword VRMLNodes          TextureCoordinate2 Transform
  16. syn keyword VRMLNodes          TransformSeparator Translation UnknownNode
  17. syn keyword VRMLNodes          WWWAnchor WWWInline
  18.  
  19. syn keyword VRMLFields         string spacing justification width parts
  20. syn keyword VRMLFields         bottomRadius height point depth on intensity
  21. syn keyword VRMLFields         color direction size family style coordIndex
  22. syn keyword VRMLFields         materialIndex normalIndex textureCoordIndex
  23. syn keyword VRMLFields         range ambientColor diffuseColor specularColor
  24. syn keyword VRMLFields         emissiveColor shininess transparency value
  25. syn keyword VRMLFields         matrix vector position orientation fields
  26. syn keyword VRMLFields         focalDistance heightAngle location rotation
  27. syn keyword VRMLFields         scaleFactor renderCulling vertexOrdering
  28. syn keyword VRMLFields         shapeType faceType creaseAngle dropOffRate
  29. syn keyword VRMLFields         cutOffAngle whichChild filename image wrapS
  30. syn keyword VRMLFields         wrapT translation scaleOrientation center
  31. syn keyword VRMLFields         name description map bboxSize bboxCenter
  32. syn keyword VRMLFields         startIndex numPoints radius
  33.  
  34. syn keyword VRMLEnums          LEFT CENTER RIGHT SIDES BOTTOM ALL TOP SERIF
  35. syn keyword VRMLEnums          SANS TYPEWRITER NONE BOLD ITALIC DEFAULT
  36. syn keyword VRMLEnums          OVERALL PER_PART PER_PART_INDEXED PER_FACE
  37. syn keyword VRMLEnums          PER_FACE_INDEXED PER_VERTEX PER_VERTEX_INDEXED
  38. syn keyword VRMLEnums          ON OFF AUTO UNKNOWN_ORDERING CLOCKWISE
  39. syn keyword VRMLEnums          COUNTERCLOCKWISE UNKNOWN_SHAPE_TYPE SOLID
  40. syn keyword VRMLEnums          UNKOWN_FACE_TYPE CONVEX TRUE FALSE REPEAT
  41. syn keyword VRMLEnums          CLAMP POINT
  42. syn keyword VRMLEnums          SFBool SFColor SFEnum SFImage SFLong SFMatrix
  43. syn keyword VRMLEnums          SFRotation SFString SFVec2f SFVec3f SFFloat
  44. syn keyword VRMLEnums          MFColor MFLong MFVec2f MFVec3f
  45.  
  46.  
  47. syn keyword VRMLInstances      DEF USE
  48.  
  49. " match definitions.
  50. syn match   VRMLSpecial           contained "\\\d\d\d\|\\."
  51. syn region  VRMLString            start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=VRMLSpecial
  52. syn match   VRMLCharacter         "'[^\\]'"
  53. syn match   VRMLSpecialCharacter  "'\\.'"
  54. syn match   VRMLNumber            "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
  55. syn match   VRMLNumber            "0[xX][0-9a-fA-F]\+\>"
  56. syn match   VRMLComment           "#.*$"
  57.  
  58. syn sync minlines=1 maxlines=1
  59.  
  60. if !exists("did_VRML_syntax_inits")
  61.   let did_VRML_syntax_inits = 1
  62.   " The default methods for highlighting.  Can be overridden later
  63.   hi link VRMLCharacter  VRMLString
  64.   hi link VRMLSpecialCharacter VRMLSpecial
  65.   hi link VRMLNumber     VRMLString
  66.   hi link VRMLString     String
  67.   hi link VRMLSpecial    Special
  68.   hi link VRMLComment    Comment
  69.   hi link VRMLNodes      Statement
  70.   hi link VRMLFields     Type
  71.   hi link VRMLInstances  PreCondit
  72.   hi link VRMLEnums      Identifier
  73. endif
  74.  
  75. let b:current_syntax = "vrml"
  76.  
  77. " vim: ts=8
  78.