annotate runtime/syntax/vrml.vim @ 20917:5c6a6b5a3330 v8.2.1010

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