?? vrml.vim
字號:
" Vim syntax file" Language: VRML97" Modified from: VRML 1.0C by David Brown <dbrown@cgs.c4.gmeds.com>" Maintainer: Gregory Seidman <gseidman@acm.org>" URL: http://zing.ncsl.nist.gov/~gseidman/vim/syntax/vrml.vim" Last Change: 2001 May 10" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" keyword definitionssyn keyword VRMLFields ambientIntensity appearance attenuationsyn keyword VRMLFields autoOffset avatarSize axisOfRotation backUrlsyn keyword VRMLFields bboxCenter bboxSize beamWidth beginCapsyn keyword VRMLFields bottom bottomRadius bottomUrl ccw centersyn keyword VRMLFields children choice collide color colorIndexsyn keyword VRMLFields colorPerVertex convex coord coordIndexsyn keyword VRMLFields creaseAngle crossSection cutOffAnglesyn keyword VRMLFields cycleInterval description diffuseColorsyn keyword VRMLFields directOutput direction diskAnglesyn keyword VRMLFields emissiveColor enabled endCap familysyn keyword VRMLFields fieldOfView fogType fontStyle frontUrlsyn keyword VRMLFields geometry groundAngle groundColor headlightsyn keyword VRMLFields height horizontal info intensity jumpsyn keyword VRMLFields justify key keyValue language leftToRightsyn keyword VRMLFields leftUrl length level location loop materialsyn keyword VRMLFields maxAngle maxBack maxExtent maxFrontsyn keyword VRMLFields maxPosition minAngle minBack minFrontsyn keyword VRMLFields minPosition mustEvaluate normal normalIndexsyn keyword VRMLFields normalPerVertex offset on orientationsyn keyword VRMLFields parameter pitch point position prioritysyn keyword VRMLFields proxy radius range repeatS repeatT rightUrlsyn keyword VRMLFields rotation scale scaleOrientation shininesssyn keyword VRMLFields side size skyAngle skyColor solid sourcesyn keyword VRMLFields spacing spatialize specularColor speed spinesyn keyword VRMLFields startTime stopTime string style texCoordsyn keyword VRMLFields texCoordIndex texture textureTransform titlesyn keyword VRMLFields top topToBottom topUrl translationsyn keyword VRMLFields transparency type url vector visibilityLimitsyn keyword VRMLFields visibilityRange whichChoice xDimensionsyn keyword VRMLFields xSpacing zDimension zSpacingsyn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>" contains=VRMLComment,VRMLProtos" syn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*\<IS\>\(#.*$\)*\(,\|\s\)*\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*" contains=VRMLComment,VRMLProtos" syn region VRMLFields start="\<[A-Za-z_][A-Za-z0-9_]*\>" end=+\(,\|#\|\s\)+me=e-1 contains=VRMLComment,VRMLProtossyn keyword VRMLEvents addChildren ambientIntensity_changedsyn keyword VRMLEvents appearance_changed attenuation_changedsyn keyword VRMLEvents autoOffset_changed avatarSize_changedsyn keyword VRMLEvents axisOfRotation_changed backUrl_changedsyn keyword VRMLEvents beamWidth_changed bindTime bottomUrl_changedsyn keyword VRMLEvents center_changed children_changedsyn keyword VRMLEvents choice_changed collideTime collide_changedsyn keyword VRMLEvents color_changed coord_changedsyn keyword VRMLEvents cutOffAngle_changed cycleInterval_changedsyn keyword VRMLEvents cycleTime description_changedsyn keyword VRMLEvents diffuseColor_changed direction_changedsyn keyword VRMLEvents diskAngle_changed duration_changedsyn keyword VRMLEvents emissiveColor_changed enabled_changedsyn keyword VRMLEvents enterTime exitTime fogType_changedsyn keyword VRMLEvents fontStyle_changed fraction_changedsyn keyword VRMLEvents frontUrl_changed geometry_changedsyn keyword VRMLEvents groundAngle_changed headlight_changedsyn keyword VRMLEvents hitNormal_changed hitPoint_changedsyn keyword VRMLEvents hitTexCoord_changed intensity_changedsyn keyword VRMLEvents isActive isBound isOver jump_changedsyn keyword VRMLEvents keyValue_changed key_changed leftUrl_changedsyn keyword VRMLEvents length_changed level_changedsyn keyword VRMLEvents location_changed loop_changedsyn keyword VRMLEvents material_changed maxAngle_changedsyn keyword VRMLEvents maxBack_changed maxExtent_changedsyn keyword VRMLEvents maxFront_changed maxPosition_changedsyn keyword VRMLEvents minAngle_changed minBack_changedsyn keyword VRMLEvents minFront_changed minPosition_changedsyn keyword VRMLEvents normal_changed offset_changed on_changedsyn keyword VRMLEvents orientation_changed parameter_changedsyn keyword VRMLEvents pitch_changed point_changed position_changedsyn keyword VRMLEvents priority_changed radius_changedsyn keyword VRMLEvents removeChildren rightUrl_changedsyn keyword VRMLEvents rotation_changed scaleOrientation_changedsyn keyword VRMLEvents scale_changed set_ambientIntensitysyn keyword VRMLEvents set_appearance set_attenuationsyn keyword VRMLEvents set_autoOffset set_avatarSizesyn keyword VRMLEvents set_axisOfRotation set_backUrl set_beamWidthsyn keyword VRMLEvents set_bind set_bottomUrl set_centersyn keyword VRMLEvents set_children set_choice set_collidesyn keyword VRMLEvents set_color set_colorIndex set_coordsyn keyword VRMLEvents set_coordIndex set_crossSectionsyn keyword VRMLEvents set_cutOffAngle set_cycleIntervalsyn keyword VRMLEvents set_description set_diffuseColorsyn keyword VRMLEvents set_direction set_diskAnglesyn keyword VRMLEvents set_emissiveColor set_enabled set_fogTypesyn keyword VRMLEvents set_fontStyle set_fraction set_frontUrlsyn keyword VRMLEvents set_geometry set_groundAngle set_headlightsyn keyword VRMLEvents set_height set_intensity set_jump set_keysyn keyword VRMLEvents set_keyValue set_leftUrl set_lengthsyn keyword VRMLEvents set_level set_location set_loop set_materialsyn keyword VRMLEvents set_maxAngle set_maxBack set_maxExtentsyn keyword VRMLEvents set_maxFront set_maxPosition set_minAnglesyn keyword VRMLEvents set_minBack set_minFront set_minPositionsyn keyword VRMLEvents set_normal set_normalIndex set_offset set_onsyn keyword VRMLEvents set_orientation set_parameter set_pitchsyn keyword VRMLEvents set_point set_position set_prioritysyn keyword VRMLEvents set_radius set_rightUrl set_rotationsyn keyword VRMLEvents set_scale set_scaleOrientation set_shininesssyn keyword VRMLEvents set_size set_skyAngle set_skyColorsyn keyword VRMLEvents set_source set_specularColor set_speedsyn keyword VRMLEvents set_spine set_startTime set_stopTimesyn keyword VRMLEvents set_string set_texCoord set_texCoordIndexsyn keyword VRMLEvents set_texture set_textureTransform set_topUrlsyn keyword VRMLEvents set_translation set_transparency set_typesyn keyword VRMLEvents set_url set_vector set_visibilityLimitsyn keyword VRMLEvents set_visibilityRange set_whichChoicesyn keyword VRMLEvents shininess_changed size_changedsyn keyword VRMLEvents skyAngle_changed skyColor_changedsyn keyword VRMLEvents source_changed specularColor_changedsyn keyword VRMLEvents speed_changed startTime_changedsyn keyword VRMLEvents stopTime_changed string_changedsyn keyword VRMLEvents texCoord_changed textureTransform_changedsyn keyword VRMLEvents texture_changed time topUrl_changedsyn keyword VRMLEvents touchTime trackPoint_changedsyn keyword VRMLEvents translation_changed transparency_changedsyn keyword VRMLEvents type_changed url_changed value_changedsyn keyword VRMLEvents vector_changed visibilityLimit_changedsyn keyword VRMLEvents visibilityRange_changed whichChoice_changedsyn region VRMLEvents start="\S+[^0-9]+\.[A-Za-z_]+"ms=s+1 end="\(,\|$\|\s\)"me=e-1syn keyword VRMLNodes Anchor Appearance AudioClip Backgroundsyn keyword VRMLNodes Billboard Box Collision Colorsyn keyword VRMLNodes ColorInterpolator Cone Coordinatesyn keyword VRMLNodes CoordinateInterpolator Cylindersyn keyword VRMLNodes CylinderSensor DirectionalLightsyn keyword VRMLNodes ElevationGrid Extrusion Fog FontStylesyn keyword VRMLNodes Group ImageTexture IndexedFaceSetsyn keyword VRMLNodes IndexedLineSet Inline LOD Materialsyn keyword VRMLNodes MovieTexture NavigationInfo Normalsyn keyword VRMLNodes NormalInterpolator OrientationInterpolatorsyn keyword VRMLNodes PixelTexture PlaneSensor PointLightsyn keyword VRMLNodes PointSet PositionInterpolatorsyn keyword VRMLNodes ProximitySensor ScalarInterpolatorsyn keyword VRMLNodes Script Shape Sound Sphere SphereSensorsyn keyword VRMLNodes SpotLight Switch Text TextureCoordinatesyn keyword VRMLNodes TextureTransform TimeSensor TouchSensorsyn keyword VRMLNodes Transform Viewpoint VisibilitySensorsyn keyword VRMLNodes WorldInfo" the following line doesn't catch <node><newline><openbrace> since \n" doesn't match as an atom yet :-(syn match VRMLNodes "[A-Za-z_][A-Za-z0-9_]*\(,\|\s\)*{"me=e-1syn region VRMLNodes start="\<EXTERNPROTO\>\(,\|\s\)*[A-Za-z_]"ms=e start="\<EXTERNPROTO\>\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLCommentsyn region VRMLNodes start="PROTO\>\(,\|\s\)*[A-Za-z_]"ms=e start="PROTO\>\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLCommentsyn keyword VRMLTypes SFBool SFColor MFColor SFFloat MFFloatsyn keyword VRMLTypes SFImage SFInt32 MFInt32 SFNode MFNodesyn keyword VRMLTypes SFRotation MFRotation SFString MFStringsyn keyword VRMLTypes SFTime SFVec2f MFVec2f SFVec3f MFVec3fsyn keyword VRMLfTypes field exposedField eventIn eventOutsyn keyword VRMLValues TRUE FALSE NULLsyn keyword VRMLProtos contained EXTERNPROTO PROTO ISsyn keyword VRMLRoutes contained ROUTE TO" match definitions.syn match VRMLSpecial contained "\\[0-9][0-9][0-9]\|\\."syn region VRMLString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=VRMLSpecialsyn match VRMLCharacter "'[^\\]'""syn match VRMLSpecialCharacter "'\\.'"syn match VRMLNumber "[-+]\=\<[0-9]\+\(\.[0-9]\+\)\=\([eE]\{1}[-+]\=[0-9]\+\)\=\>\|0[xX][0-9a-fA-F]\+\>"syn match VRMLNumber "0[xX][0-9a-fA-F]\+\>"syn match VRMLComment "#.*$"" newlines should count as whitespace, but they can't be matched yet :-(syn region VRMLRouteNode start="[^O]TO\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLCommentsyn region VRMLRouteNode start="ROUTE\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLCommentsyn region VRMLInstName start="DEF\>"hs=e+1 skip="DEF\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLCommentsyn region VRMLInstName start="USE\>"hs=e+1 skip="USE\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLCommentsyn keyword VRMLInstances contained DEF USEsyn sync minlines=1syn match VRMLBraces "[{}]"syn match VRMLBrackets "[\[\]]"" Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_VRML_syntax_inits") if version < 508 let did_VRML_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink VRMLCharacter VRMLString HiLink VRMLSpecialCharacter VRMLSpecial HiLink VRMLNumber VRMLString HiLink VRMLValues VRMLString HiLink VRMLString String HiLink VRMLSpecial Special HiLink VRMLComment Comment HiLink VRMLNodes Statement HiLink VRMLFields Type HiLink VRMLEvents Type hi def VRMLfTypes ctermfg=6 guifg=Brown HiLink VRMLInstances PreCondit HiLink VRMLRoutes PreCondit HiLink VRMLProtos PreProc HiLink VRMLRouteNode Identifier HiLink VRMLInstName Identifier HiLink VRMLTypes Identifier delcommand HiLinkendiflet b:current_syntax = "vrml"" vim: ts=8
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -