" Vim syntax file " Language: JavaScript " Maintainer: Claudio Fleiner " Updaters: Scott Shattuck (ss) " URL: http://www.fleiner.com/vim/syntax/javascript.vim " Changes: (ss) added keywords, reserved words, and other identifiers " (ss) repaired several quoting and grouping glitches " (ss) fixed regex parsing issue with multiple qualifiers [gi] " (ss) additional factoring of keywords, globals, and members " Last Change: 2010 Mar 25 " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded " tuning parameters: " unlet javaScript_fold if !exists("main_syntax") if version < 600 syntax clear elseif exists("b:current_syntax") finish endif let main_syntax = 'javascript' endif " Drop fold if it set but vim doesn't support it. if version < 600 && exists("javaScript_fold") unlet javaScript_fold endif syn keyword javaScriptCommentTodo TODO FIXME XXX TBD contained syn match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo syn match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" syn region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo syn match javaScriptSpecial "\\\d\d\d\|\\." syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc syn match javaScriptSpecialCharacter "'\\.'" syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" syn region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline syn keyword javaScriptConditional if else switch syn keyword javaScriptRepeat while for do in syn keyword javaScriptBranch break continue syn keyword javaScriptOperator new delete instanceof typeof syn keyword javaScriptType Array Boolean Date Function Number Object String RegExp syn keyword javaScriptStatement return with syn keyword javaScriptBoolean true false syn keyword javaScriptNull null undefined syn keyword javaScriptIdentifier arguments this var let syn keyword javaScriptLabel case default syn keyword javaScriptException try catch finally throw syn keyword javaScriptMessage alert confirm prompt status syn keyword javaScriptGlobal self window top parent syn keyword javaScriptMember document event location syn keyword javaScriptDeprecated escape unescape syn keyword javaScriptReserved abstract boolean byte char class const debugger double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile "============================================== " Add Unity syn keyword unityIdentifier if else for in while do continue break with try catch switch case new var function return delete true false void throw typeof const default this as int float boolean string yield private protected public internal import String System UnityEngine UnityEditor ArrayList Length class struct enum extends static syn keyword unityString ARGB32 ARGB4444 ARGBHalf ASCII ASCIICapable ASCIILowerCase ASCIIUpperCase Above Abs Acceleration AcceptDrag AcceptExternalModificationsToPlayer Acos Active Add AddBinaryData AddClip AddColor AddComponent AddComponentMenu AddControl AddCursorRect AddDefaultControl AddEvent AddExplosionForce AddField AddFloat AddForce AddForceAtPosition AddGenericMacroInstruction AddKey AddMatrix AddMixingTransform AddObjectToAsset AddRelativeForce AddRelativeTorque AddTorque AddVector Additive Advanced Afrikaans All AllBuffered Alley AllocateViewID Alpha0 Alpha1 Alpha2 Alpha3 Alpha4 Alpha5 Alpha6 Alpha7 Alpha8 Alpha9 AlreadyConnectedToAnotherServer AltDirectorySeparatorChar AltGr Ampersand Analytics Android Angle AngleAxis Animation AnimationBlendMode AnimationClip AnimationClipCurveData AnimationCurve AnimationEvent AnimationState AnimationUtility AnisotropicFiltering Application Apply ApplyModifiedProperties ApplyModifiedPropertiesMultiSelect ApplyTextureType Approximately Arabic Arena Array ArraySize ArraySizeField ArrayUtility Arrow ArrowCap Asin Aspect16by10 Aspect16by9 Aspect4by3 Aspect5by4 AspectFill AspectFit AspectOthers AspectRatio Assert AssetBundle AssetBundleRequest AssetDatabase AssetImporter AssetPathToGUID AssetPostprocessor Assets Asterisk AsyncOperation At Atan Atan2 AttachToCollider AudioChorusFilter AudioClip AudioDistortionFilter AudioEchoFilter AudioHighPassFilter AudioImporter AudioImporterFormat AudioListener AudioLowPassFilter AudioReverbFilter AudioReverbPreset AudioReverbZone AudioRolloffMode AudioSettings AudioSource AudioSpeakerMode AudioVelocityUpdateMode Auditorium Authorize Auto AutoRunPlayer Automatic16bit AutomaticCompressed AutomaticTruecolor Average Awake syn keyword unityString BackQuote Backslash Backspace Bake BakeAsync BakeQuality BakeSelected BakeSelectedAsync Basque Bathroom Beautiful Beep Began Begin BeginArea BeginCollectTooltips BeginFadeGroup BeginGUI BeginGroup BeginHorizontal BeginLayoutArea BeginLayoutGroup BeginPlatformGrouping BeginSample BeginScrollView BeginToggleGroup BeginVertical BeginVerticalScrollView BeginWindows Behaviour Belarusian Below BelowNormal Bilinear Billboard BitStream Blackman BlackmanHarris Blend Blit BlitMultiTap Bold BoldAndItalic Bone1 Bone2 Bone4 BoneWeight Boolean Bounds Box BoxCollider BoxFilter Break BringWindowToBack BringWindowToFront BroadcastMessage BrowseURL BuildAdditionalStreamedScenes BuildAssetBundle BuildAssetBundleExplicitAssetNames BuildAssetBundleOptions BuildOptions BuildPipeline BuildPlayer BuildTarget Bulgarian Bump Button syn keyword unityString Caching CalcHeight CalcLabelWidth CalcLineTranslation CalcMinMaxWidth CalcScreenSize CalcSize Calculate CalculateFrustumPlanes CalculateTransformPath CallDelayed CallbackFunction Camera CameraClearFlags CanStreamedLevelBeLoaded Cancel CancelInvoke CancelOnTouch CancelQuit Canceled CapsLock Capsule CapsuleCast CapsuleCastAll CapsuleCollider CaptureScreenshot Caret CarpetedHallway Catalan Cave Ceil CeilToInt Center Character CharacterController CharacterJoint CheckCapsule CheckSphere Chinese City Clamp Clamp01 ClampForever ClampMagnitude CleanCache Clear ClearCamera ClearCurves ClearHostList ClearLabels ClearLightmaps ClearLog ClearParticles ClearPlatformTextureSettings ClearProgressBar ClearSnapshotTarget ClickStatusBar Client Clip CloneComponent Close CloseConnection ClosestPointOnBounds ClosestPointToArc ClosestPointToDisc ClosestPointToPolyLine ClosestPowerOfTwo Cloth CollectDeepHierarchy CollectDependencies Collider Collision CollisionDetectionMode CollisionFlags Colon syn keyword unityString Contains syn keyword unityString Color ColorField Combine CombineInstance CombineMeshes Comma CommandEvent CompareTag CompleteAssets CompleteLabel CompleteOthers Component Compress CompressTexture Compressed Compute Concat Concerthall ConeCap ConfigurableJoint ConfigurableJointMotion Connect ConnectToPrefab Connecting ConnectionBanned ConnectionFailed ConnectionTesterStatus ConstantForce ContactPoint ContainsKey ContainsValue ContextClick ContextMenu Continuous ContinuousDynamic ControllerColliderHit Cookie Copy CopyAsset CopyFileOrDirectory CopyFileOrDirectoryFollowSymlinks CopyFrom CopyPropertiesFromMaterial CopySerialized CopyTo Coroutine Cos Count CountRemaining Create CreateAsset CreateEmptyPrefab CreateGameObjectWithHideFlags CreateInstance CreateNewWindowForEditorWindow CreatePrimitive CreateSnapshot CreateSocketOrThreadFailure CreateTerrainGameObject Cross CrossFade CrossFadeQueued Cube CubeCap Cubemap CubemapFace CurveField Custom CustomEditor CycleButton CycleKeyboardWithinCurrentList Cylinder CylinderCap Cylindrical Czech syn keyword unityString DXT1 DXT5 Danish DashboardWidget Debug DecreaseLevel Deep DeepAssets Default DeferredLighting Deg2Rad DelayedTextField Delete DeleteAll DeleteAsset DeleteFileOrDirectory DeleteFromCache DeleteKey DeltaAngle Depth DepthNormals DepthTextureMode Destroy DestroyImmediate DestroyPlayerObjects DetachChildren DetachFromCollider DetailPrototype DetailRenderMode DeterministicAssetBundle Development Directional DirectorySeparatorChar Disable Disabled Disc Disconnect Disconnected DisconnectedModelPrefabInstance DisconnectedPrefabInstance Discrete DisplayCancelableProgressBar DisplayCustomMenu DisplayDialog DisplayDialogComplex DisplayObjectContextMenu DisplayPopupMenu DisplayProgressBar DisplayWizard Distance DistancePointBezier DistancePointLine DistanceToArc DistanceToCircle DistanceToDisc DistanceToLine DistanceToPolyLine Dizzy DoDropShadowLabel DoFloatField DoKeyEventField DoObjectField DoObjectFoldout DoSlider DoTextField DoToggle DoWindow DoesSourceTextureHaveAlpha Dollar DontDestroyOnLoad DontRequireReceiver DontSave Dot DotCap DoubleQuote DownArrow DragAndDrop DragAndDropVisualMode DragExited DragPerform DragUpdated DragWindow Draw DrawAAPolyLine DrawArrow DrawBezier DrawBuiltinGizmos DrawCamera DrawCameraMode DrawCameraStep1 DrawCameraStep2 DrawCapFunction DrawColorSwatch DrawCone DrawCube DrawCursor DrawCurveSwatch DrawCylinder DrawDefaultInspector DrawGUITexture DrawGizmo DrawGridParameters DrawIcon DrawLine DrawMesh DrawMeshNow DrawPolyLine DrawRay DrawRectangle DrawSolidArc DrawSolidDisc DrawSphere DrawTexture DrawTextureAlpha DrawWireArc DrawWireCube DrawWireDisc DrawWireSphere DrawWithTextSelection DropShadowLabel Drugged Dutch Dynamic syn keyword unityString ETC_RGB4 EaseInOut Editable Editor EditorApplication EditorGUI EditorGUILayout EditorGUIUtility EditorPrefs EditorStyles EditorUtility EditorWindow EmailAddress Emit EmptyConnectTarget Enable Enabled Encapsulate EncodeToPNG End EndArea EndCollectTooltips EndFadeGroup EndGUI EndGUIFromException EndGettingEntries EndGroup EndHorizontal EndPlatformGrouping EndSample EndScrollView EndToggleGroup EndVertical EndWindows Ended English Enum EnumPopup Epsilon Equal Equals Error Escape EscapeURL Estonian Euler Evaluate Event EventType Exception Exclaim ExcludePrefab ExecuteCommand ExecuteInEditMode ExecuteMacro ExecuteMenuItem Exit Exp Expand ExpandHeight ExpandWidth ExternalCall ExternalEval ExtractOggFile Extrapolate syn keyword unityString F1 F10 F11 F12 F13 F14 F15 F2 F3 F4 F5 F6 F7 F8 F9 FFTWindow FaceDown FaceUp Failed Fantastic Faroese Fast Fastest FileUtil Fill FilterMode Find FindGameObjectsWithTag FindNearestVertex FindObjectOfType FindObjectsOfType FindObjectsOfTypeAll FindPrefabRoot FindProperty FindStyle FindStyles FindTexture FindWithTag Finnish Fixed FixedJoint FixedUpdate Flare FlexibleSpace Float FloatField Floor FloorToInt Flush Focus FocusControl FocusProjectWindow FocusType FocusWindow Foldout Font FontRenderMode FontStyle FontTextureCase Force ForceEnable ForceMode ForcePixel ForceSynchronousImport ForceUpdate ForceVertex Forest FormatBytes ForwardWithShaders Free FreeMoveHandle FreeRotateHandle French FromToRotation Full FullToSimpleTextureFormat syn keyword unityString GL GUI GUIContent GUIDToAssetPath GUIElement GUILayer GUILayout GUILayoutFadeGroup GUILayoutOption GUILayoutUtility GUIPointToWorldRay GUISettings GUISkin GUIStyle GUIStyleState GUIText GUITexture GUIToScreenPoint GUIUtility GameObject GenerateInBackground GeneratePerTriangleUV GenerateSecondaryUVSet GenerateUniqueAssetPath Generic GeometryUtility German GetAccelerationEvent GetAllCurves GetAlphamaps GetAnimatableObjects GetAnimatableProperties GetAnimatablePropertiesForObject GetAnimationClips GetAnimationEvents GetAspectRect GetAssetPath GetAtPath GetAveragePing GetAxis GetAxisRaw GetBasicTextureStyle GetBool GetBuiltinSkin GetButton GetButtonDown GetButtonUp GetCachedIcon GetCameraRect GetClass GetClassName GetClipCount GetColor GetColumn GetComponent GetComponentInChildren GetComponents GetComponentsInChildren GetControlID GetCount GetCountsByType GetCursorPixelPosition GetCursorStringIndex GetDefaultSkin GetDirectoryName GetDistanceToPoint GetDragAndDropTitle GetEditorCurve GetEntryInternal GetExtension GetFileName GetFileNameWithoutExtension GetFiltered GetFirstTwoLinesEntryTextAndModeInternal GetFloat GetFloatValue GetGenericData GetGroundHit GetHandleSize GetHeight GetHeights GetIconForPlatformAtSize GetIconSizesForPlatform GetIconsForPlatform GetIgnoreLayerCollision GetInfoString GetInspectorTitle GetInstanceID GetInt GetInterpolatedHeight GetInterpolatedNormal GetIterator GetJoystickNames GetKey GetKeyDown GetKeyUp GetLabels GetLastPing GetLastRect GetMatrix GetMouseButton GetMouseButtonDown GetMouseButtonUp GetNameOfFocusedControl GetObjectEnabled GetOutputData GetPixel GetPixelBilinear GetPixels GetPlatformTextureSettings GetPoint GetPointVelocity GetPosition GetPostprocessOrder GetPrefabParent GetPrefabType GetRect GetRelativePointVelocity GetRow GetScreenRect GetSide GetSpectrumData GetStateObject GetStatusMask GetStatusText GetStatusViewErrorIndex GetSteepness GetStreamProgressForLevel GetString GetStyle GetTag GetTemporary GetTexture GetTextureOffset GetTextureScale GetTopScrollView GetTouch GetTransforms GetTriangles GetTypeForControl GetUniqueTempPathInProject GetVector GetWindow GetWindowDontShow GetWindowWithRect GizmoType Gizmos Good Graphics Grass GrassBillboard Greater Greek syn keyword unityString HFReference HSVToRGB Hallway Hamming HandleUtility Handles Hangar Hanning Hard HasAspectRatio HasCharacter HasHelpForObject HasKey HasObjectThumbnail HasPreviewGUI HasProperty Hash Hashtable HavePublicAddress HaveTooltip Hebrew Height Help Hidden HiddenByDefault HideAndDontSave HideFlags HideInHierarchy HideInInspector HideTooltip High HingeJoint HitTest Home HorizontalBillboard HorizontalScrollbar HorizontalSlider HostData HostListReceived Hugarian syn keyword unityString IPhonePlayer Icelandic IconContent Ignore IgnoreCollision IgnoreLayerCollision Image ImageAbove ImageLeft ImageOnly ImagePosition Import ImportAsset ImportAssetOptions ImportRecursive Impulse InAnimationMode InNodes InOriginalRoots InRoot IncorrectParameters IncreaseLevel Indonesian Infinity Informational Init InitializeSecurity InitializeServer Initializing Input Insert InspectorTitlebar InstanceIDToObject InstantButton Instantiate InstantiatePrefab IntField IntPopup IntSlider Integer InteractiveCloth InternalDirectConnectFailed Interpolate IntersectRay Intersects InvalidPassword Inverse InverseLerp InverseTransformDirection InverseTransformPoint Invoke InvokeRepeating IsChildOf IsCreated IsInvoking IsMainAsset IsPersistent IsPlaying IsSleeping Italian Italic syn keyword unityString Japanese Join Joint JointDrive JointDriveMode JointLimits JointMotor JointProjectionMode JointSpring Joystick1Button0 Joystick1Button1 Joystick1Button10 Joystick1Button11 Joystick1Button12 Joystick1Button13 Joystick1Button14 Joystick1Button15 Joystick1Button16 Joystick1Button17 Joystick1Button18 Joystick1Button19 Joystick1Button2 Joystick1Button3 Joystick1Button4 Joystick1Button5 Joystick1Button6 Joystick1Button7 Joystick1Button8 Joystick1Button9 Joystick2Button0 Joystick2Button1 Joystick2Button10 Joystick2Button11 Joystick2Button12 Joystick2Button13 Joystick2Button14 Joystick2Button15 Joystick2Button16 Joystick2Button17 Joystick2Button18 Joystick2Button19 Joystick2Button2 Joystick2Button3 Joystick2Button4 Joystick2Button5 Joystick2Button6 Joystick2Button7 Joystick2Button8 Joystick2Button9 Joystick3Button0 Joystick3Button1 Joystick3Button10 Joystick3Button11 Joystick3Button12 Joystick3Button13 Joystick3Button14 Joystick3Button15 Joystick3Button16 Joystick3Button17 Joystick3Button18 Joystick3Button19 Joystick3Button2 Joystick3Button3 Joystick3Button4 Joystick3Button5 Joystick3Button6 Joystick3Button7 Joystick3Button8 Joystick3Button9 JoystickButton0 JoystickButton1 JoystickButton10 JoystickButton11 JoystickButton12 JoystickButton13 JoystickButton14 JoystickButton15 JoystickButton16 JoystickButton17 JoystickButton18 JoystickButton19 JoystickButton2 JoystickButton3 JoystickButton4 JoystickButton5 JoystickButton6 JoystickButton7 JoystickButton8 JoystickButton9 syn keyword unityString KaiserFilter KeyCode KeyDown KeyEventField KeyUp Keyboard KeyboardEvent Keyframe KeyframeReduction KeyframeReductionAndCompression Keypad0 Keypad1 Keypad2 Keypad3 Keypad4 Keypad5 Keypad6 Keypad7 Keypad8 Keypad9 KeypadDivide KeypadEnter KeypadEquals KeypadMinus KeypadMultiply KeypadPeriod KeypadPlus Korean syn keyword unityString LFReference LINES Label LabelField Landscape LandscapeLeft LandscapeRight LateUpdate Latvian LayerField LayerMask LayerMaskField LayerToName Layout Left LeftAlt LeftApple LeftArrow LeftBracket LeftControl LeftParen LeftShift LeftWindows Length LensFlare Lerp LerpAngle Less Light LightAntialiasing LightRenderMode LightShadows LightType Lightmap LightmapData LightmapDoubleLDR LightmapFormat LightmapNone LightmapRGBM LightmapResolution LightmapSettings Lightmapping Limited LimitedNATPunchthroughPortRestricted LimitedNATPunchthroughSymmetric LineRenderer Linear Linecast Link Lithuanian Livingroom Load LoadAll LoadAllAssetsAtPath LoadAssetAtPath LoadAsync LoadIdentity LoadImage LoadImageIntoTexture LoadLevel LoadLevelAdditive LoadLevelAdditiveAsync LoadLevelAsync LoadMainAssetAtPath LoadOrtho LoadPixelMatrix LoadProjectionMatrix LoadRequired LoadUnityWeb LocationInfo LocationServiceStatus LockReloadAssemblies Locked Log Log10 LogCallback LogEntries LogEntry LogError LogType LogWarning Logarithmic LookAt LookLikeControls LookLikeInspector LookRotation Loop LostConnection Low LowerCenter LowerLeft LowerRight syn keyword unityString Macros MasterServer MasterServerEvent MatchLabelsPartial Material MaterialPropertyBlock Mathf Matrix4x4 Max MaxHeight MaxWidth Maximum Medium MenuCommand MenuItem Mesh MeshCollider MeshFilter MeshRenderer MeshUtility MiddleCenter MiddleLeft MiddleRight Min MinHeight MinMaxRect MinMaxSlider MinWidth Minimal Minimum Minus MissingPrefabInstance ModelImporter ModelImporterAnimationCompression ModelImporterClipAnimation ModelImporterGenerateAnimations ModelImporterGenerateMaterials ModelImporterMeshCompression ModelImporterTangentSpaceMode ModelPrefab ModelPrefabInstance MonoBehaviour MonoScript Mountains Mouse0 Mouse1 Mouse2 Mouse3 Mouse4 Mouse5 Mouse6 MouseCursor MouseDown MouseDrag MouseMove MouseUp Move MoveArrow MoveAsset MoveAssetToTrash MoveFileOrDirectory MoveFocusToNextControl MoveKey MovePosition MoveRotation MoveTowards Moved MovieImporter MovieTexture MultMatrix MultiTexCoord MultiTexCoord2 MultiTexCoord3 Multiply MultiplyPoint MultiplyPoint3x4 MultiplyVector syn keyword unityString NATTargetConnectionLost NATTargetNotConnected NATpunchthroughAddressRestrictedCone NATpunchthroughFullCone NamePhonePad NameToLayer Native NegativeInfinity NegativeX NegativeY NegativeZ Network NetworkConnectionError NetworkDisconnection NetworkLogLevel NetworkMessageInfo NetworkPeerType NetworkPlayer NetworkStateSynchronization NetworkView NetworkViewID NewScene Next NextVisible NiceSpheremap NicifyVariableName NoAntialiasing NoError NonSerialized None Normal Normalize Norwegian NotEditable NotReachable NotSelected Nothing NumberPad NumbersAndPunctuation Numlock syn keyword unityString OSXDashboardPlayer OSXEditor OSXPlayer OSXWebPlayer Object ObjectContent ObjectField ObjectNames ObjectReference ObjectReferenceField Occlusion Off OnApplicationFocus OnApplicationPause OnApplicationQuit OnAssignMaterialModel OnBecameInvisible OnBecameVisible OnCollisionEnter OnCollisionExit OnCollisionStay OnConnectedToServer OnControllerColliderHit OnDestroy OnDisable OnDisconnectedFromServer OnDrawGizmos OnDrawGizmosSelected OnEnable OnFailedToConnect OnFailedToConnectToMasterServer OnFocus OnGUI OnHierarchyChange OnInspectorGUI OnInspectorUpdate OnJointBreak OnLevelWasLoaded OnLostFocus OnMasterServerEvent OnMouseDown OnMouseDrag OnMouseEnter OnMouseExit OnMouseOver OnMouseUp OnNetworkInstantiate OnParticleCollision OnPlayerConnected OnPlayerDisconnected OnPostRender OnPostprocessAllAssets OnPostprocessAudio OnPostprocessGameObjectWithUserProperties OnPostprocessModel OnPostprocessTexture OnPreCull OnPreRender OnPreprocessAudio OnPreprocessModel OnPreprocessTexture OnPreviewGUI OnPreviewSettings OnProjectChange OnRenderImage OnSceneGUI OnSelectionChange OnSerializeNetworkView OnServerInitialized OnTriggerEnter OnTriggerExit OnTriggerStay OnWillRenderObject OnWizardCreate OnWizardOtherButton OnWizardUpdate Once Open OpenAsset OpenEntryFile OpenFilePanel OpenProject OpenScene OpenSceneAdditive OpenURL Optimize Ortho OrthoNormalize Others OthersBuffered Overflow OverlapSphere syn keyword unityString PI PS3 PVRTC_RGB2 PVRTC_RGB4 PVRTC_RGBA2 PVRTC_RGBA4 PackTextures PaddedCell PageDown PageUp ParkingLot Particle ParticleAnimator ParticleEmitter ParticleRenderMode ParticleRenderer Passive PasswordField Path Pause PerSourceMaterial PerTexture PerformRedo PerformUndo Period Perspective PhonePad PhysicMaterial PhysicMaterialCombine Physics PickGameObject PickRectObjects Pickable Ping PingObject PingPong Plain Plane Play PlayClipAtPoint PlayMode PlayMovie PlayMovieURL PlayNow PlayOneShot PlayQueued PlayerPrefs PlayerPrefsException PlayerSettings Plus Point Polish PollHostList Pop PopAssetDependencies PopCamera PopMatrix Popup Portrait PortraitUpsideDown Portuguese Position PositionAndRotation PositionAndVelocity PositionHandle PositionOnly PositiveX PositiveY PositiveZ Pow Prefab PrefabInstance PrefabType PrefixLabel PrepareStartDrag Preview PrimitiveType Print PrivateIPHasNATPunchThrough PrivateIPNoNATPunchthrough Production Profiler ProgressBar Project ProjectPointLine Projector PropertyField PropertyToID Psychotic PublicIPIsConnectable PublicIPNoServerStarted PublicIPPortBlocked Push PushAssetDependencies PushCamera PushMatrix syn keyword unityString QUADS Quality QualityLevel QualitySettings Quarry Quaternion QueryStateObject Question QueueGameViewInputEvent QueueMode Quit Quote syn keyword unityString RGB16 RGB24 RGB565 RGBA32 RGBToHSV RPC RPCMode RSAPublicKeyMismatch Rad2Deg RadiusHandle Random Range Ray RaySnap Raycast RaycastAll RaycastCollider RaycastHit ReachableViaCarrierDataNetwork ReachableViaWiFiNetwork ReadPixels ReadTextureSettings RecalculateBounds RecalculateNormals RecalculateTreePositions ReconnectToLastPrefab Rect RectField RectOffset RectangleCap Rectangular Reflect Reflection Refresh RefreshPrototypes RegisterCompleteAssetUndo RegisterCreatedObjectUndo RegisterHost RegisterLogCallback RegisterLogCallbackThreaded RegisterSceneUndo RegisterSnapshot RegisterUndo RegistrationFailedGameName RegistrationFailedGameType RegistrationFailedNoServer RegistrationSucceeded Release ReleaseTemporary ReliableDeltaCompressed Remove RemoveAt RemoveClip RemoveDetailPrototype RemoveKey RemoveNotification RemoveRPCs RemoveRPCsInGroup RemoveTreePrototype RemoveTrees RenameAsset Render RenderGameViewCameras RenderPaths RenderSettings RenderTexture RenderTextureFormat RenderToCubemap RenderWithShader Renderer RenderingPath Repaint Repeat RepeatButton ReplaceDirectory ReplaceFile ReplaceNameBased ReplacePrefab ReplacePrefabOptions RequestHostList RequireComponent RequireReceiver Reset ResetAspect ResetGameObjectToPrefabState ResetInputAxes ResetProjectionMatrix ResetReplacementShader ResetToPrefabState ResetWorldToCameraMatrix Resize ResizeHorizontal ResizeUpLeft ResizeUpRight ResizeVertical Resolution ResolutionDialogSetting Resources RestoreSnapshot Return Reverse Rewind Right RightAlt RightApple RightArrow RightBracket RightControl RightParen RightShift RightWindows Rigidbody RigidbodyInterpolation Romanian Room Rotate RotateAround RotateAroundPivot RotateArrow RotateTowards RotationDriveMode RotationHandle Round RoundToInt Running RuntimePlatform Russian syn keyword unityString SPEAKERMODE_5POINT1 SPEAKERMODE_7POINT1 SPEAKERMODE_MONO SPEAKERMODE_PROLOGIC SPEAKERMODE_QUAD SPEAKERMODE_RAW SPEAKERMODE_STEREO SPEAKERMODE_SURROUND SameSide Sample SampleAnimation SampleHeight SaveAssets SaveCurrentSceneIfUserWantsTo SaveFilePanel SaveFilePanelInProject SaveFolderPanel SaveScene Scale ScaleAndCrop ScaleAroundPivot ScaleArrow ScaleHandle ScaleMode ScaleSlider ScaleToFit ScaleValueHandle Screen ScreenPointToRay ScreenToGUIPoint ScreenToViewportPoint ScreenToWorldPoint ScriptableObject ScriptableWizard ScrollLock ScrollTo ScrollWheel SearchField SelectIDList Selected SelectedOrChild Selection SelectionGrid SelectionMode SelectionRect Self SemiUseEvent Semicolon SendEvent SendMessage SendMessageOptions SendMessageUpwards Separator SerboCroatian Serializable Serialize SerializeField SerializedObject SerializedProperty SerializedPropertyType Server SetActiveRecursively SetAlphamaps SetAnimationClips SetAnimationEvents SetAspectRatio SetBool SetCamera SetColor SetColors SetColumn SetConsoleFlag SetCurve SetDensity SetDirty SetDiscSectionPoints SetEditorCurve SetEnabledFading SetFloat SetFromToRotation SetGenericData SetGlobalColor SetGlobalFloat SetGlobalMatrix SetGlobalShaderProperty SetGlobalTexture SetGlobalVector SetHeights SetIconsForPlatform SetInt SetKeyboardControlWithoutMessages SetLabels SetLayerMaskValueDelegate SetLevelPrefix SetLookRotation SetMatrix SetMinMax SetNameSmart SetNeighbors SetNextControlName SetObjectEnabled SetPass SetPerTriangleUV2 SetPixel SetPixels SetPlatformTextureSettings SetPosition SetPrefabOverride SetReceivingEnabled SetReplacementShader SetResolution SetRevertBackfacing SetRow SetScope SetSendingEnabled SetSnapshotTarget SetString SetTRS SetTexture SetTextureOffset SetTextureScale SetTextureSettings SetTriangles SetVector SetVertexCount SetWidth SewerPipe Shader Shift Show ShowAuxWindow ShowBuiltPlayer ShowHelpForObject ShowHelpPage ShowNotification ShowPopup ShowRepaints ShowTooltip ShowUtility Sides Sign Simple SimpleMove SimpleSpheremap SimpleToFullTextureFormat SimpleToFullTextureFormat2 Simulate Sin SkinChanged SkinQuality SkinnedCloth SkinnedMeshRenderer Skybox Slash Sleep Slerp SlideArrow Slider Slovak Slovenian SmoothDamp SmoothDampAngle SmoothDampVector SmoothStep SmoothTangents Sobel Soft SoftJointLimit SolidColor Sort SortedBillboard Space Spanish Sphere SphereCap SphereCast SphereCastAll SphereCollider Spheremap SplatPrototype Spot SpringJoint SqrDistance Sqrt StandaloneOSXIntel StandaloneOSXPPC StandaloneOSXUniversal StandaloneWindows Standard Start StartAnimationMode StartAssetEditing StartCapDraw StartCoroutine StartDrag StartGettingEntries StartLocationServiceUpdates StaticBatchingUtility StaticOcclusionCulling Stationary Step StoneCorridor Stoneroom Stop StopAll StopAllCoroutines StopAnimationMode StopAssetEditing StopCoroutine StopLocationServiceUpdates StopSameLayer Stopped Stretch StretchToFill String StrongAntialiasing SupportsRenderTextureFormat Swedish SweepTest SweepTestAll SyncLayer SysReq SystemInfo SystemLanguage syn keyword unityString TRIANGLES TRIANGLE_STRIP TRS Tab TagField Tan Temp TempContent Terrain TerrainCollider TerrainData TestConnection TestConnectionNAT TestPlanesAABB TexCoord TexCoord2 TexCoord3 Text TextAlignment TextAnchor TextArea TextAsset TextClipping TextContent TextField TextMesh TextOnly Texture Texture2D TextureFormat TextureImporter TextureImporterFormat TextureImporterGenerateCubemap TextureImporterMipFilter TextureImporterNPOTScale TextureImporterNormalFilter TextureImporterSettings TextureImporterType TextureWrapMode Textured TexturedWire Thai ThreadPriority Time ToAngleAxis ToLarger ToNearest ToSmaller ToString Toggle TooManyConnectedPlayers Toolbar ToolbarSearchField TopLevel Touch TouchPhase Track TrailRenderer Transform TransformDirection TransformPoint Translate Tree TreeInstance TreePrototype Triangle Trilinear TrueTypeFontImporter TryFastReimportFromMetaData Turkish syn keyword unityString URL Ukrainian UnEscapeURL Underscore Underwater Undetermined Undo Unfiltered UnfocusWindow Unicode Unknown Unload UnloadUnusedAssets UnloadUnusedAssetsIgnoreManagedReferences UnlockReloadAssemblies UnregisterHost Unreliable Unshift Unwrapping UpArrow Update UpperCenter UpperLeft UpperRight Use UseLastUploadedPrefabRoot UsePlayerSettings Used User syn keyword unityString ValidateCommand ValidateMoveAsset ValidateObjectFieldAssignment Vector2 Vector2Field Vector3 Vector3Field Vector4 Vector4Field Velocity VelocityChange Vertex Vertex3 VertexLit VerticalBillboard VerticalScrollbar VerticalSlider Vibrate Vietnamese Viewport ViewportPointToRay ViewportToScreenPoint ViewportToWorldPoint syn keyword unityString WWW WWWForm WaitForEndOfFrame WaitForFixedUpdate WaitForSeconds WakeUp Warning WebPlayer WebPlayerStreamed WheelCollider WheelFrictionCurve WheelHit Width WindZone WindZoneMode Window WindowsEditor WindowsPlayer WindowsWebPlayer Wireframe World WorldPointToSizedRect WorldToGUIPoint WorldToScreenPoint WorldToViewportPoint WrapMode X XBOX360 XYAndZ YieldInstruction syn keyword unityString absoluteURL acceleration accelerationEventCount accelerationEvents actionKey active activeControlID activeGameObject activeInstanceID activeObject activeTerrain activeTransform actualRenderingPath addCollider alignment allCameras alphaX alphaY alphaZ alphamapHeight alphamapLayers alphamapResolution alphamapTextureCount alphamapWidth alt altitude alwaysDisplayWatermark ambientLight anchor angle angularDrag angularVelocity angularXDrive angularXMotion angularYLimit angularYMotion angularYZDrive angularZLimit angularZMotion animateOnlyIfVisible animatePhysics animation animationCompression animationCurveValue animationPositionError animationRotationError animationScaleError animationState animationWrapMode anisoLevel anisotropicFiltering anyKey anyKeyDown applicationContentsPath applicationPath area aspect aspectRatio asset assetBundle assetImporter assetPath asymptoteSlip asymptoteValue attachedRigidbody attachmentResponse attachmentTearFactor audio audioClip autoRepaintOnSceneChange autodestruct autorotateToLandscapeLeft autorotateToLandscapeRight autorotateToPortrait autorotateToPortraitUpsideDown axis syn keyword unityString background backgroundColor backgroundLoadingPriority bakeIK barycentricCoordinate basemapDistance bendFactor bendingStiffness bindposes black blendMode blue boldFont boldLabel boneIndex0 boneIndex1 boneIndex2 boneIndex3 boneWeights bones boolValue border borderMipmap bottom bounceCombine bounceThreshold bounciness bounds box brakeTorque breakForce breakTorque brightness button bypassEffects bytes syn keyword unityString camera cameraToWorldMatrix cameraVelocityScale capsLock captureFramerate captureSingleScreen castShadows center centerOfMass changed channels character childCount clear clearFlags clickCount clip clipAnimations clipping coefficients collider collisionDetectionMode collisionFlags collisionResponse color colorAnimation colorField colorValue colors command commandName comment companyName compressionBitrate condition configuredInWorldSpace connectedBody connectedPlayers connectionTesterIP connectionTesterPort connections consoleFlags constantForce contacts contentColor contentOffset context control controller convertToNormalmap convex cookie correctGamma cullingMask current currentCamera currentLevel currentResolution currentScene currentSize cursorColor cursorFlashSpeed curve customStyles cutoffFrequency cyan syn keyword unityString damper damping data dataPath decayHFRatio decayRatio decayTime dedicatedServer defaultIsFullScreen defaultScreenHeight defaultScreenWidth defaultWebScreenHeight defaultWebScreenWidth delay delta deltaPosition deltaTime density depth depthTextureMode detailHeight detailObjectDistance detailPrototypes detailResolution detailWidth detectCollisions diffusion direction displayResolutionDialog distance distortionLevel doesAnimateColor done dopplerLevel doubleClickSelectsWord drag driverCaps dryColor dryLevel dryMix dualLightmapsMode duration dynamicFriction dynamicFriction2 syn keyword unityString editable emit emitterVelocityScale enabled endWidth energy enumNames enumValueIndex error errorNum errorString eulerAngles expirationDelay extents externalAcceleration externalIP externalPort extremumSlip extremumValue syn keyword unityString fadeValue fadeout farClipPlane feedback fieldOfView file filterMode fingerId firstFrame firstStreamedLevelWithResources fixedDeltaTime fixedHeight fixedTime fixedWidth flare flareStrength floatParameter floatValue focused focusedWindow fog fogColor fogDensity foldout foldoutPreDrop font fontNames fontRenderMode fontSize fontStyle fontTTFName fontTextureCase force forceToMono format forward forwardDir forwardFriction forwardSlip frameCount frameRate freeSpin freezeRotation frequency friction frictionCombine frictionDirection2 fullScreen functionKey functionName syn keyword unityString gameName gameObject gameObjects gameType generateAnimations generateCubemap generateMaterials generateSecondaryUV generation globalMaximumLOD globalScale graphicsDeviceID graphicsDeviceName graphicsDeviceVendor graphicsDeviceVendorID graphicsDeviceVersion graphicsMemorySize graphicsShaderLevel gravity gray grayscale grayscaleToAlpha green grey group guiText guiTexture guid syn keyword unityString haloStrength hasChildren hasVisibleChildren headers healthyColor height heightScale heightmapHeight heightmapMaximumLOD heightmapPixelError heightmapResolution heightmapScale heightmapWidth helpString hfReference hideFlags hideInput highAngularXLimit highTwistLimit highpassResonaceQ hingeJoint horizontal horizontalAccuracy horizontalScrollbar horizontalScrollbarLeftButton horizontalScrollbarRightButton horizontalScrollbarThumb horizontalSlider horizontalSliderThumb hotControl hover syn keyword unityString iPad1Gen iPhone iPhone3G iPhone3GS iPhoneAccelerationEvent iPhoneBundleIdentifier iPhoneGeneration iPhoneInput iPhoneKeyboard iPhoneKeyboardType iPhoneMovieControlMode iPhoneMovieScalingMode iPhoneNetworkReachability iPhoneOrientation iPhoneScreenOrientation iPhoneSettings iPhoneUtils iPodTouch1Gen iPodTouch2Gen iPodTouch3Gen identifier identity ignoreLayers image imagePosition inTangent includeFontData incomingPassword indentLevel indirectLightmap inertiaTensor inertiaTensorRotation inputString insideUnitCircle insideUnitSphere instanceID instanceIDs intParameter intValue intensity internetReachability interpolation inverse ip ipAddress isApplicationGenuine isBakeIKSupported isClient isCompiling isCubemap isDebugBuild isDone isEditor isExpanded isGrounded isIdentity isInstantiatedPrefab isKey isKinematic isLoadingLevel isMessageQueueRunning isMine isMouse isPaused isPlaying isPlayingOrWillChangePlaymode isPowerOfTwo isReadable isReading isReadyToPlay isRunning isServer isStatic isSupported isTangentImportSupported isTeared isTrigger isValid isVisible isWebPlayer isWorldPlaying isWriting syn keyword unityString keyCode keyboardControl keys syn keyword unityString lFReference label largeLabel lastFrame lastLocation latitude layer layerCullDistances layerMaskField left length lengthScale levelCount light lighting lightmap lightmapColor lightmapIndex lightmapTilingOffset lightmaps limit limits line lineHeight lineSpacing linearLimit loadedLevel loadedLevelName localEulerAngles localPosition localRotation localRotationAxis localScale localToWorldMatrix localVelocity locationServiceEnabledByUser locationServiceStatus lockCursor log logFile logLevel longitude loop lossyScale lowAngularXLimit lowTwistLimit lowpassResonaceQ syn keyword unityString m_CustomStyles magenta magnitude main mainAsset mainTexture mainTextureOffset mainTextureScale margin mass masterTextureLimit material materials matrix max maxAngularVelocity maxBounce maxConnections maxDistance maxEmission maxEnergy maxHeight maxParticleSize maxQueuedFrames maxSize maxTextureSize maxWidth maximumDeltaTime maximumForce maximumLOD mesh meshCompression messageOptions min minBounce minDistance minEmission minEnergy minHeight minMaxHorizontalSliderThumb minPenetrationForPenalty minSize minWidth miniBoldFont miniBoldLabel miniButton miniButtonLeft miniButtonMid miniButtonRight miniFont miniLabel miniTextField minimumAllocatableViewIDs mipLevels mipMapBias mipmapCount mipmapEnabled mipmapFadeDistanceEnd mipmapFadeDistanceStart mipmapFilter mode model modelview modifierKeysChanged modifiers motor motorTorque mouseOverWindow mousePosition moveDirection moveLength movie ms_Error multiTouchEnabled mute syn keyword unityString name natFacilitatorIP natFacilitatorPort nearClipPlane nearestControl networkView niceMouseDelta niceMouseDeltaZoom noiseSpread none normal normalImportMode normalSmoothingAngle normalized normalizedSpeed normalizedTime normalmap normalmapFilter normals notificationBackground notificationText npotScale numberField numeric syn keyword unityString objectField objectFieldThumb objectReferenceParameter objectReferenceValue objectReferences objects observed oggVorbis onActive onFocused onHover onNormal onUnitSphere one operatingSystem orientation origin orthographic orthographicSize otherCollider outTangent overflow owner syn keyword unityString padding pan panLevel parent particleCount particleEmitter particleRenderMode particles passCount passwordProtected path paths pause peerType phase pitch pivot pixelHeight pixelInset pixelLightCount pixelOffset pixelRect pixelWidth platform playAutomatically playOnAwake player playerLimit playmodeStateChanged point popup port position positionDamper positionSpring postWrapMode preWrapMode prefab prefabOverride pressure priority processorCount processorType productName progress projectionAngle projectionDistance projectionMatrix projectionMode propertyName propertyPath propertyType prototype prototypeIndex prototypeTexture proxyIP proxyPassword proxyPort quality syn keyword unityString radioButton radius randomAcceleration range rate realtimeSinceStartup receiveShadows recordEvents rect rectValue red reflections reflectionsDelay reflectionsLevel refreshRate relativeForce relativeTorque relativeVelocity renderMode renderQueue renderer renderingPath resolutionDialogBanner resolutions reverb reverbDelay reverbLevel reverbPreset right rigidbody rndAngularVelocity rndForce rndRotation rndVelocity rolloffMode syn keyword unityString room roomHF roomLF roomRolloff roomRolloffFactor root rotation rotationDriveMode rpm runInBackground syn keyword unityString samples screenCanDarken screenOrientation scrollView seed selectionColor selfCollision sendRate sender serializedObject settings shader shadowCascades shadowDistance shadowStrength shadows sharedMaterial sharedMaterials sharedMesh shift showCursor sidewaysDir sidewaysFriction sidewaysSlip size sizeGrow skin skinNormals skybox sleepAngularVelocity sleepVelocity slerpDrive slopeLimit smoothDeltaTime smoothSphereCollisions softVegetation solverIterationCount spaceAvailable spaceUsed speakerMode speed splatPrototypes splitAnimations splitTangentsAcrossSeams spotAngle spread spring sqrMagnitude srcValue standardFont startEnergy startWidth stateSynchronization staticFriction staticFriction2 steerAngle stepOffset stiffness stream streamedBytes stretchHeight stretchWidth stretchingStiffness string stringParameter stringValue structHeadingLabel style subMeshCount subMeshIndex supportsImageEffects supportsRenderTextures supportsShadows suspensionDistance suspensionSpring swapUVChannels swing1Limit swing2Limit swingAxis systemCopyBuffer systemLanguage systemMemorySize systemName syn keyword unityString tabSize tag tagTextField tagTextFieldButton tagTextFieldEmpty tangentImportMode tangents tapCount target targetAngularVelocity targetFrameRate targetObject targetPosition targetRotation targetTexture targetVelocity tearFactor terrainData text textArea textColor textField texture textureCoord textureCoord2 textureFormat textureType thickness thisCollider threadPriority threeD tileSize time timeSamples timeScale timeSinceLevelLoad timeSinceStartup timestamp toggle toggleGroup toolbar toolbarButton toolbarDropDown toolbarPopup toolbarTextField tooltip top topLevel torque touchCount touches transform transforms transpose treeBillboardDistance treeCrossFadeLength treeDistance treeInstances treeMaximumFullLODCount treePrototypes triangleIndex triangles tripleClickSelectsLine type syn keyword unityString unassigned uniqueIdentifier unityVersion up update updateRate updateWhenOffscreen uploadProgress url use2xBehaviour useAlphaInDashboard useConeFriction useGUILayout useGravity useLightmaps useLimits useMipMap useMotor useNat useProxy useSpring useWorldSpace userData uv uv2 uvAnimationCycles uvAnimationXTile uvAnimationYTile syn keyword unityString value vector2Value vector3Value velocity velocityScale velocityUpdateMode vertexCount vertical verticalAccuracy verticalScrollbar verticalScrollbarDownButton verticalScrollbarThumb verticalScrollbarUpButton verticalSlider verticalSliderThumb vertices viewID visible visualMode volume syn keyword unityString wantsMouseMove wasGuiEnabled wavingGrassAmount wavingGrassSpeed wavingGrassStrength wavingGrassTint webSecurityEnabled weight weight0 weight1 weight2 weight3 wetMix wetMix1 wetMix2 wetMix3 white whiteBoldLabel whiteLabel whiteLargeLabel whiteMiniLabel whiteTexture width widthScale windMain windPulseFrequency windPulseMagnitude windTurbulence window wordWrap wordWrappedLabel wordWrappedMiniLabel worldAccelerationScale worldCenterOfMass worldRotationAxis worldToCameraMatrix worldToLocalMatrix worldVelocity worldVelocityScale wrapMode syn keyword unityString xDrive xMax xMin xMotion syn keyword unityString yDrive yMax yMin yMotion yellow syn keyword unityString zDrive zMotion zero "============================================== if exists("javaScript_fold") syn match javaScriptFunction "\" syn region javaScriptFunctionFold start="\.*[^};]$" end="^\z1}.*$" transparent fold keepend syn sync match javaScriptSync grouphere javaScriptFunctionFold "\" syn sync match javaScriptSync grouphere NONE "^}" setlocal foldmethod=syntax setlocal foldtext=getline(v:foldstart) else syn keyword javaScriptFunction function syn match javaScriptBraces "[{}\[\]]" syn match javaScriptParens "[()]" endif syn sync fromstart syn sync maxlines=100 if main_syntax == "javascript" syn sync ccomment javaScriptComment endif " 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 yet if version >= 508 || !exists("did_javascript_syn_inits") if version < 508 let did_javascript_syn_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink javaScriptComment Comment HiLink javaScriptLineComment Comment HiLink javaScriptCommentTodo Todo HiLink javaScriptSpecial Special HiLink javaScriptStringS String HiLink javaScriptStringD String HiLink javaScriptCharacter Character HiLink javaScriptSpecialCharacter javaScriptSpecial HiLink javaScriptNumber javaScriptValue HiLink javaScriptConditional Conditional HiLink javaScriptRepeat Repeat HiLink javaScriptBranch Conditional HiLink javaScriptOperator Operator HiLink javaScriptType Type HiLink javaScriptStatement Statement HiLink javaScriptFunction Function HiLink javaScriptBraces Function HiLink javaScriptError Error HiLink javaScrParenError javaScriptError HiLink javaScriptNull Keyword HiLink javaScriptBoolean Boolean HiLink javaScriptRegexpString String HiLink javaScriptIdentifier Identifier HiLink javaScriptLabel Label HiLink javaScriptException Exception HiLink javaScriptMessage Keyword HiLink javaScriptGlobal Keyword HiLink javaScriptMember Keyword HiLink javaScriptDeprecated Exception HiLink javaScriptReserved Keyword HiLink javaScriptDebug Debug HiLink javaScriptConstant Label HiLink unityIdentifier Identifier HiLink unityString Keyword delcommand HiLink endif let b:current_syntax = "javascript" if main_syntax == 'javascript' unlet main_syntax endif " vim: ts=8