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