]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/mel.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / mel.js
1 /*! `mel` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: MEL
7 Description: Maya Embedded Language
8 Author: Shuen-Huei Guan <drake.guan@gmail.com>
9 Website: http://www.autodesk.com/products/autodesk-maya/overview
10 Category: graphics
11 */
12
13 function mel(hljs) {
14 return {
15 name: 'MEL',
16 keywords:
17 'int float string vector matrix if else switch case default while do for in break '
18 + 'continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic '
19 + 'addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey '
20 + 'affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve '
21 + 'alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor '
22 + 'animDisplay animView annotate appendStringArray applicationName applyAttrPreset '
23 + 'applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx '
24 + 'artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu '
25 + 'artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand '
26 + 'assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface '
27 + 'attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu '
28 + 'attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp '
29 + 'attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery '
30 + 'autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults '
31 + 'bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership '
32 + 'bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType '
33 + 'boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu '
34 + 'buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge '
35 + 'cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch '
36 + 'catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox '
37 + 'character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp '
38 + 'checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip '
39 + 'clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore '
40 + 'closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter '
41 + 'cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color '
42 + 'colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp '
43 + 'colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem '
44 + 'componentEditor compositingInterop computePolysetVolume condition cone confirmDialog '
45 + 'connectAttr connectControl connectDynamic connectJoint connectionInfo constrain '
46 + 'constrainValue constructionHistory container containsMultibyte contextInfo control '
47 + 'convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation '
48 + 'convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache '
49 + 'cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel '
50 + 'cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver '
51 + 'cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor '
52 + 'createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer '
53 + 'createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse '
54 + 'currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx '
55 + 'curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface '
56 + 'curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox '
57 + 'defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete '
58 + 'deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes '
59 + 'delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo '
60 + 'dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable '
61 + 'disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected '
62 + 'displayColor displayCull displayLevelOfDetail displayPref displayRGBColor '
63 + 'displaySmoothness displayStats displayString displaySurface distanceDimContext '
64 + 'distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct '
65 + 'doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator '
66 + 'duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression '
67 + 'dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor '
68 + 'dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers '
69 + 'editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor '
70 + 'editorTemplate effector emit emitter enableDevice encodeString endString endsWith env '
71 + 'equivalent equivalentTol erf error eval evalDeferred evalEcho event '
72 + 'exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp '
73 + 'expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof '
74 + 'fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo '
75 + 'filetest filletCurve filter filterCurve filterExpand filterStudioImport '
76 + 'findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster '
77 + 'finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar '
78 + 'floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo '
79 + 'fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint '
80 + 'frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss '
81 + 'geometryConstraint getApplicationVersionAsFloat getAttr getClassification '
82 + 'getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes '
83 + 'getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender '
84 + 'glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl '
85 + 'gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid '
86 + 'gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap '
87 + 'HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor '
88 + 'HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached '
89 + 'HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel '
90 + 'headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey '
91 + 'hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender '
92 + 'hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox '
93 + 'iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel '
94 + 'ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem '
95 + 'ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform '
96 + 'insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance '
97 + 'instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp '
98 + 'interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf '
99 + 'isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect '
100 + 'itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx '
101 + 'jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner '
102 + 'keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx '
103 + 'keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx '
104 + 'keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx '
105 + 'keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor '
106 + 'layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList '
107 + 'lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep '
108 + 'listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory '
109 + 'listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation '
110 + 'listNodeTypes listPanelCategories listRelatives listSets listTransforms '
111 + 'listUnselected listerEditor loadFluid loadNewShelf loadPlugin '
112 + 'loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log '
113 + 'longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive '
114 + 'makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext '
115 + 'manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx '
116 + 'manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout '
117 + 'menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp '
118 + 'mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move '
119 + 'moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute '
120 + 'nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast '
121 + 'nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint '
122 + 'normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect '
123 + 'nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref '
124 + 'nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType '
125 + 'objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface '
126 + 'offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit '
127 + 'orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier '
128 + 'paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration '
129 + 'panelHistory paramDimContext paramDimension paramLocator parent parentConstraint '
130 + 'particle particleExists particleInstancer particleRenderInfo partition pasteKey '
131 + 'pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture '
132 + 'pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo '
133 + 'pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult '
134 + 'pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend '
135 + 'polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal '
136 + 'polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge '
137 + 'polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge '
138 + 'polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet '
139 + 'polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet '
140 + 'polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection '
141 + 'polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge '
142 + 'polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet '
143 + 'polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix '
144 + 'polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut '
145 + 'polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet '
146 + 'polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge '
147 + 'polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex '
148 + 'polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection '
149 + 'polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection '
150 + 'polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint '
151 + 'polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate '
152 + 'polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge '
153 + 'polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing '
154 + 'polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet '
155 + 'polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace '
156 + 'popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer '
157 + 'projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx '
158 + 'propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd '
159 + 'python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection '
160 + 'radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl '
161 + 'readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference '
162 + 'referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE '
163 + 'registerPluginResource rehash reloadImage removeJoint removeMultiInstance '
164 + 'removePanelCategory rename renameAttr renameSelectionList renameUI render '
165 + 'renderGlobalsNode renderInfo renderLayerButton renderLayerParent '
166 + 'renderLayerPostProcess renderLayerUnparent renderManip renderPartition '
167 + 'renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor '
168 + 'renderWindowSelectContext renderer reorder reorderDeformers requires reroot '
169 + 'resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget '
170 + 'reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx '
171 + 'rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout '
172 + 'runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage '
173 + 'saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale '
174 + 'scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor '
175 + 'sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable '
176 + 'scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt '
177 + 'searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey '
178 + 'selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType '
179 + 'selectedNodes selectionConnection separator setAttr setAttrEnumResource '
180 + 'setAttrMapping setAttrNiceNameResource setConstraintRestPosition '
181 + 'setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr '
182 + 'setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe '
183 + 'setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag '
184 + 'setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject '
185 + 'setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets '
186 + 'shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare '
187 + 'shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField '
188 + 'shortNameOf showHelp showHidden showManipCtx showSelectionInTitle '
189 + 'showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface '
190 + 'size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep '
191 + 'snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound '
192 + 'soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort '
193 + 'spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString '
194 + 'startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp '
195 + 'stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex '
196 + 'stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex '
197 + 'stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString '
198 + 'stringToStringArray strip stripPrefixFromName stroke subdAutoProjection '
199 + 'subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV '
200 + 'subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror '
201 + 'subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease '
202 + 'subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring '
203 + 'surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton '
204 + 'symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext '
205 + 'texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext '
206 + 'texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text '
207 + 'textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList '
208 + 'textToShelf textureDisplacePlane textureHairColor texturePlacementContext '
209 + 'textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath '
210 + 'toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower '
211 + 'toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper '
212 + 'trace track trackCtx transferAttributes transformCompare transformLimits translator '
213 + 'trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence '
214 + 'twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit '
215 + 'unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink '
216 + 'uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane '
217 + 'viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex '
218 + 'waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire '
219 + 'wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform',
220 illegal: '</',
221 contains: [
222 hljs.C_NUMBER_MODE,
223 hljs.APOS_STRING_MODE,
224 hljs.QUOTE_STRING_MODE,
225 {
226 className: 'string',
227 begin: '`',
228 end: '`',
229 contains: [ hljs.BACKSLASH_ESCAPE ]
230 },
231 { // eats variables
232 begin: /[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/ },
233 hljs.C_LINE_COMMENT_MODE,
234 hljs.C_BLOCK_COMMENT_MODE
235 ]
236 };
237 }
238
239 return mel;
240
241 })();
242 ;
243 export default hljsGrammar;