Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: lib/src/prism/components/prism-mel.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/prism/components/prism-matlab.min.js ('k') | lib/src/prism/components/prism-mel.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Prism.languages.mel = {
2 'comment': /\/\/.*/,
3 'code': {
4 pattern: /`(?:\\.|[^\\`\r\n])*`/,
5 alias: 'italic',
6 inside: {
7 'delimiter': {
8 pattern: /^`|`$/,
9 alias: 'punctuation'
10 }
11 // See rest below
12 }
13 },
14 'string': /"(?:\\.|[^\\"\r\n])*"/,
15 'variable': /\$\w+/,
16 'number': /(?:\b|-)(?:0x[\da-fA-F]+|\d+\.?\d*)/,
17 'flag': {
18 pattern: /-[^\d\W]\w*/,
19 alias: 'operator'
20 },
21 'keyword': /\b(?:break|case|continue|default|do|else|float|for|global|if |in|int|matrix|proc|return|string|switch|vector|while)\b/,
22 'function': /\w+(?=\()|\b(?:about|abs|addAttr|addAttributeEditorNodeHelp |addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextD rivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|al ignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCu rveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyA ttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3d PaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBui ldPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaint Ctx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDe viceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrE numOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigati onControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attri buteQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|ba keResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus| binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendT woAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|bui ldBookmarkMenu|buildKeyframeMenu|button|buttonManip|CBG|cacheFile|cacheFileCombi ne|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capital izeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRe gion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir |checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|cla mp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSc hedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmd ScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|c ollision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSlid erButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|comp actHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition| cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connec tionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyt e|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|conve rtSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinW eights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMes h|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSe tEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDispl ayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|create NewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxA bort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx |currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveInter sect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dag Pose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirt ualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials| deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceA ttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen |directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJ oint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displ ayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displ ayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyC tx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContex t|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCac he|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|d ynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlo bals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|ed itRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|en codeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDe ferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeF orEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurf ace|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|f ileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterE xpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMe nuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|flo atField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonG rp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUnd o|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFille t|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVer sionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|g etInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPl uginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|goto BindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSele ctContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|HfAddAt tractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancel AFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRe moveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|hardenPoint Curve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|h ermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSli der|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel| hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRad ioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandl eDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod |illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx| insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|i ntField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|in tersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue |isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilt erAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayS cale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTime Ctx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx |keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|k eyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice |latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|laye redTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|ligh tlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCamer as|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInp utDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCateg ories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFlui d|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedP anelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|M ayatomr|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeT ubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContex t|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|me mory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref| messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPan el|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiP rofileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo |newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|n oise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube| nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|n urbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|obj ectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlan e|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|op tionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor| outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLay out|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLo cator|parent|parentConstraint|particle|particleExists|particleInstancer|particle RenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOpti ons|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|p layblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCu rveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPositi on|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoP rojection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlind Data|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipbo ard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyCo lorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCreas e|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|p olyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|pol yDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|p olyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyFo rceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListC omponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge |polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|p olyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVert ex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOut put|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimi tive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce |polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polyS electEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|po lySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx| polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivide Edge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|poly UVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progre ssBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContex t|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTex tureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg| radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampCo lorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|reb uildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery| refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reload Image|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|rena meSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|r enderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPa rtition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEdito r|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|re sampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|rever seCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|roo tOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayo ut|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|save Image|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSett ings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKe yCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|sc riptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|s crollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|sel ectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref| selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|se tAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPositi on|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setF luidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyf rame|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeT ypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProjec t|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformMan ip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetwor kCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellFi eld|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadin gGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|si zeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap 2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|soun d|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort |spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|s tartsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringA rrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|strin gArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDu plicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|st ripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdD uplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewM ove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|s ubdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substi tuteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPor t|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentCo nstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellCo ntext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx |texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|t extFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHai rColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeCo ntrol|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|toke nize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHa sOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttribute s|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|trun cateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassi gnInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitle dFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vec torize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|view Manip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|we bBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkl eContext|writeTake|xbmLangPathList|xform)\b/,
23
24 'operator': [
25 /\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,
26 {
27 // We don't want to match <<
28 pattern: /(^|[^<])<(?!<)/,
29 lookbehind: true
30 },
31 {
32 // We don't want to match >>
33 pattern: /(^|[^>])>(?!>)/,
34 lookbehind: true
35 }
36 ],
37 'punctuation': /<<|>>|[.,:;?\[\](){}]/
38 };
39 Prism.languages.mel['code'].inside.rest = Prism.util.clone(Prism.languages.mel);
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-matlab.min.js ('k') | lib/src/prism/components/prism-mel.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698