annotate runtime/syntax/vrml.vim @ 9836:bc591685594a v7.4.2193

commit https://github.com/vim/vim/commit/717e196060d946fe20bb0f0307f417dc4d0e9b17 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 10 21:28:44 2016 +0200 patch 7.4.2193 Problem: With Gnome when the GUI can't start test_startup hangs. Solution: Call gui_mch_early_init_check(). (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Wed, 10 Aug 2016 21:30:07 +0200
parents 99305c4c42d4
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: VRML97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Modified from: VRML 1.0C by David Brown <dbrown@cgs.c4.gmeds.com>
859
99305c4c42d4 updated for version 7.0g02
vimboss
parents: 7
diff changeset
4 " Maintainer: vacancy!
99305c4c42d4 updated for version 7.0g02
vimboss
parents: 7
diff changeset
5 " Former Maintainer: Gregory Seidman <gsslist+vim@anthropohedron.net>
99305c4c42d4 updated for version 7.0g02
vimboss
parents: 7
diff changeset
6 " Last change: 2006 May 03
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword VRMLFields ambientIntensity appearance attenuation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword VRMLFields autoOffset avatarSize axisOfRotation backUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword VRMLFields bboxCenter bboxSize beamWidth beginCap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword VRMLFields bottom bottomRadius bottomUrl ccw center
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword VRMLFields children choice collide color colorIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword VRMLFields colorPerVertex convex coord coordIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword VRMLFields creaseAngle crossSection cutOffAngle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword VRMLFields cycleInterval description diffuseColor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword VRMLFields directOutput direction diskAngle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword VRMLFields emissiveColor enabled endCap family
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword VRMLFields fieldOfView fogType fontStyle frontUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword VRMLFields geometry groundAngle groundColor headlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword VRMLFields height horizontal info intensity jump
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword VRMLFields justify key keyValue language leftToRight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword VRMLFields leftUrl length level location loop material
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword VRMLFields maxAngle maxBack maxExtent maxFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword VRMLFields maxPosition minAngle minBack minFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword VRMLFields minPosition mustEvaluate normal normalIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword VRMLFields normalPerVertex offset on orientation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword VRMLFields parameter pitch point position priority
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword VRMLFields proxy radius range repeatS repeatT rightUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword VRMLFields rotation scale scaleOrientation shininess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword VRMLFields side size skyAngle skyColor solid source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword VRMLFields spacing spatialize specularColor speed spine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword VRMLFields startTime stopTime string style texCoord
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword VRMLFields texCoordIndex texture textureTransform title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword VRMLFields top topToBottom topUrl translation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword VRMLFields transparency type url vector visibilityLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword VRMLFields visibilityRange whichChoice xDimension
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword VRMLFields xSpacing zDimension zSpacing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>" contains=VRMLComment,VRMLProtos,VRMLfTypes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " syn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*\<IS\>\(#.*$\)*\(,\|\s\)*\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*" contains=VRMLComment,VRMLProtos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " syn region VRMLFields start="\<[A-Za-z_][A-Za-z0-9_]*\>" end=+\(,\|#\|\s\)+me=e-1 contains=VRMLComment,VRMLProtos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword VRMLEvents addChildren ambientIntensity_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword VRMLEvents appearance_changed attenuation_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword VRMLEvents autoOffset_changed avatarSize_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword VRMLEvents axisOfRotation_changed backUrl_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword VRMLEvents beamWidth_changed bindTime bottomUrl_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword VRMLEvents center_changed children_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword VRMLEvents choice_changed collideTime collide_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword VRMLEvents color_changed coord_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword VRMLEvents cutOffAngle_changed cycleInterval_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword VRMLEvents cycleTime description_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword VRMLEvents diffuseColor_changed direction_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword VRMLEvents diskAngle_changed duration_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword VRMLEvents emissiveColor_changed enabled_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword VRMLEvents enterTime exitTime fogType_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword VRMLEvents fontStyle_changed fraction_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword VRMLEvents frontUrl_changed geometry_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword VRMLEvents groundAngle_changed headlight_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword VRMLEvents hitNormal_changed hitPoint_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword VRMLEvents hitTexCoord_changed intensity_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword VRMLEvents isActive isBound isOver jump_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword VRMLEvents keyValue_changed key_changed leftUrl_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword VRMLEvents length_changed level_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword VRMLEvents location_changed loop_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword VRMLEvents material_changed maxAngle_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword VRMLEvents maxBack_changed maxExtent_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword VRMLEvents maxFront_changed maxPosition_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword VRMLEvents minAngle_changed minBack_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword VRMLEvents minFront_changed minPosition_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword VRMLEvents normal_changed offset_changed on_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword VRMLEvents orientation_changed parameter_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword VRMLEvents pitch_changed point_changed position_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword VRMLEvents priority_changed radius_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword VRMLEvents removeChildren rightUrl_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword VRMLEvents rotation_changed scaleOrientation_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword VRMLEvents scale_changed set_ambientIntensity
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword VRMLEvents set_appearance set_attenuation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword VRMLEvents set_autoOffset set_avatarSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword VRMLEvents set_axisOfRotation set_backUrl set_beamWidth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword VRMLEvents set_bind set_bottomUrl set_center
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword VRMLEvents set_children set_choice set_collide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword VRMLEvents set_color set_colorIndex set_coord
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword VRMLEvents set_coordIndex set_crossSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword VRMLEvents set_cutOffAngle set_cycleInterval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword VRMLEvents set_description set_diffuseColor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword VRMLEvents set_direction set_diskAngle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword VRMLEvents set_emissiveColor set_enabled set_fogType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword VRMLEvents set_fontStyle set_fraction set_frontUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword VRMLEvents set_geometry set_groundAngle set_headlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword VRMLEvents set_height set_intensity set_jump set_key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword VRMLEvents set_keyValue set_leftUrl set_length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword VRMLEvents set_level set_location set_loop set_material
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword VRMLEvents set_maxAngle set_maxBack set_maxExtent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword VRMLEvents set_maxFront set_maxPosition set_minAngle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword VRMLEvents set_minBack set_minFront set_minPosition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword VRMLEvents set_normal set_normalIndex set_offset set_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword VRMLEvents set_orientation set_parameter set_pitch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword VRMLEvents set_point set_position set_priority
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword VRMLEvents set_radius set_rightUrl set_rotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword VRMLEvents set_scale set_scaleOrientation set_shininess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword VRMLEvents set_size set_skyAngle set_skyColor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword VRMLEvents set_source set_specularColor set_speed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword VRMLEvents set_spine set_startTime set_stopTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword VRMLEvents set_string set_texCoord set_texCoordIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword VRMLEvents set_texture set_textureTransform set_topUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword VRMLEvents set_translation set_transparency set_type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword VRMLEvents set_url set_vector set_visibilityLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword VRMLEvents set_visibilityRange set_whichChoice
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword VRMLEvents shininess_changed size_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword VRMLEvents skyAngle_changed skyColor_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword VRMLEvents source_changed specularColor_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword VRMLEvents speed_changed startTime_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword VRMLEvents stopTime_changed string_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword VRMLEvents texCoord_changed textureTransform_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword VRMLEvents texture_changed time topUrl_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword VRMLEvents touchTime trackPoint_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword VRMLEvents translation_changed transparency_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword VRMLEvents type_changed url_changed value_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword VRMLEvents vector_changed visibilityLimit_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword VRMLEvents visibilityRange_changed whichChoice_changed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn region VRMLEvents start="\S+[^0-9]+\.[A-Za-z_]+"ms=s+1 end="\(,\|$\|\s\)"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword VRMLNodes Anchor Appearance AudioClip Background
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword VRMLNodes Billboard Box Collision Color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword VRMLNodes ColorInterpolator Cone Coordinate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword VRMLNodes CoordinateInterpolator Cylinder
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword VRMLNodes CylinderSensor DirectionalLight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword VRMLNodes ElevationGrid Extrusion Fog FontStyle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword VRMLNodes Group ImageTexture IndexedFaceSet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword VRMLNodes IndexedLineSet Inline LOD Material
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword VRMLNodes MovieTexture NavigationInfo Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword VRMLNodes NormalInterpolator OrientationInterpolator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword VRMLNodes PixelTexture PlaneSensor PointLight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword VRMLNodes PointSet PositionInterpolator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword VRMLNodes ProximitySensor ScalarInterpolator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword VRMLNodes Script Shape Sound Sphere SphereSensor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword VRMLNodes SpotLight Switch Text TextureCoordinate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword VRMLNodes TextureTransform TimeSensor TouchSensor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword VRMLNodes Transform Viewpoint VisibilitySensor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword VRMLNodes WorldInfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " the following line doesn't catch <node><newline><openbrace> since \n
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 " doesn't match as an atom yet :-(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn match VRMLNodes "[A-Za-z_][A-Za-z0-9_]*\(,\|\s\)*{"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn region VRMLNodes start="\<EXTERNPROTO\>\(,\|\s\)*[A-Za-z_]"ms=e start="\<EXTERNPROTO\>\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn region VRMLNodes start="PROTO\>\(,\|\s\)*[A-Za-z_]"ms=e start="PROTO\>\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword VRMLTypes SFBool SFColor MFColor SFFloat MFFloat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword VRMLTypes SFImage SFInt32 MFInt32 SFNode MFNode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword VRMLTypes SFRotation MFRotation SFString MFString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword VRMLTypes SFTime MFTime SFVec2f MFVec2f SFVec3f MFVec3f
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword VRMLfTypes field exposedField eventIn eventOut
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword VRMLValues TRUE FALSE NULL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword VRMLProtos contained EXTERNPROTO PROTO IS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword VRMLRoutes contained ROUTE TO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if version >= 502
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 "containment!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn include @jscript $VIMRUNTIME/syntax/javascript.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn region VRMLjScriptString contained start=+"\(\(javascript\)\|\(vrmlscript\)\|\(ecmascript\)\):+ms=e+1 skip=+\\\\\|\\"+ end=+"+me=e-1 contains=@jscript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 " match definitions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn match VRMLSpecial contained "\\[0-9][0-9][0-9]\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn region VRMLString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=VRMLSpecial,VRMLjScriptString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match VRMLCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match VRMLSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match VRMLNumber "[-+]\=\<[0-9]\+\(\.[0-9]\+\)\=\([eE]\{1}[-+]\=[0-9]\+\)\=\>\|0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn match VRMLNumber "0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn match VRMLComment "#.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " newlines should count as whitespace, but they can't be matched yet :-(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn region VRMLRouteNode start="[^O]TO\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn region VRMLRouteNode start="ROUTE\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn region VRMLInstName start="DEF\>"hs=e+1 skip="DEF\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn region VRMLInstName start="USE\>"hs=e+1 skip="USE\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword VRMLInstances contained DEF USE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn sync minlines=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 "FOLDS!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn sync fromstart
859
99305c4c42d4 updated for version 7.0g02
vimboss
parents: 7
diff changeset
198 "setlocal foldmethod=syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn region braceFold start="{" end="}" transparent fold contains=TOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn region bracketFold start="\[" end="]" transparent fold contains=TOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn region VRMLString start=+"+ skip=+\\\\\|\\"+ end=+"+ fold contains=VRMLSpecial,VRMLjScriptString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 if version >= 508 || !exists("did_VRML_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 let did_VRML_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 HiLink VRMLCharacter VRMLString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 HiLink VRMLSpecialCharacter VRMLSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 HiLink VRMLNumber VRMLString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 HiLink VRMLValues VRMLString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 HiLink VRMLString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 HiLink VRMLSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 HiLink VRMLComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 HiLink VRMLNodes Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 HiLink VRMLFields Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 HiLink VRMLEvents Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 HiLink VRMLfTypes LineNr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 " hi VRMLfTypes ctermfg=6 guifg=Brown
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 HiLink VRMLInstances PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 HiLink VRMLRoutes PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 HiLink VRMLProtos PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 HiLink VRMLRouteNode Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 HiLink VRMLInstName Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 HiLink VRMLTypes Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 let b:current_syntax = "vrml"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 " vim: ts=8