highlight_js-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/AUTHORS.en.txt +46 -0
- data/AUTHORS.ru.txt +46 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/classref.txt +437 -0
- data/highlight_js-rails.gemspec +19 -0
- data/lib/highlight_js/rails/engine.rb +6 -0
- data/lib/highlight_js/version.rb +5 -0
- data/lib/highlight_js-rails.rb +2 -0
- data/vendor/assets/images/highlight_js/brown_papersq.png +0 -0
- data/vendor/assets/images/highlight_js/school_book.png +0 -0
- data/vendor/assets/javascripts/highlight_js/highlight.js +630 -0
- data/vendor/assets/javascripts/highlight_js/languages/1c.js +68 -0
- data/vendor/assets/javascripts/highlight_js/languages/apache.js +432 -0
- data/vendor/assets/javascripts/highlight_js/languages/avrasm.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/axapta.js +43 -0
- data/vendor/assets/javascripts/highlight_js/languages/bash.js +56 -0
- data/vendor/assets/javascripts/highlight_js/languages/cmake.js +24 -0
- data/vendor/assets/javascripts/highlight_js/languages/cpp.js +62 -0
- data/vendor/assets/javascripts/highlight_js/languages/cs.js +41 -0
- data/vendor/assets/javascripts/highlight_js/languages/css.js +101 -0
- data/vendor/assets/javascripts/highlight_js/languages/delphi.js +70 -0
- data/vendor/assets/javascripts/highlight_js/languages/diff.js +64 -0
- data/vendor/assets/javascripts/highlight_js/languages/django.js +72 -0
- data/vendor/assets/javascripts/highlight_js/languages/dos.js +29 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang-repl.js +81 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang.js +201 -0
- data/vendor/assets/javascripts/highlight_js/languages/go.js +58 -0
- data/vendor/assets/javascripts/highlight_js/languages/haskell.js +77 -0
- data/vendor/assets/javascripts/highlight_js/languages/ini.js +32 -0
- data/vendor/assets/javascripts/highlight_js/languages/java.js +45 -0
- data/vendor/assets/javascripts/highlight_js/languages/javascript.js +53 -0
- data/vendor/assets/javascripts/highlight_js/languages/lisp.js +87 -0
- data/vendor/assets/javascripts/highlight_js/languages/lua.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/mel.js +40 -0
- data/vendor/assets/javascripts/highlight_js/languages/nginx.js +224 -0
- data/vendor/assets/javascripts/highlight_js/languages/objectivec.js +94 -0
- data/vendor/assets/javascripts/highlight_js/languages/parser3.js +52 -0
- data/vendor/assets/javascripts/highlight_js/languages/perl.js +143 -0
- data/vendor/assets/javascripts/highlight_js/languages/php.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/profile.js +49 -0
- data/vendor/assets/javascripts/highlight_js/languages/python.js +71 -0
- data/vendor/assets/javascripts/highlight_js/languages/renderman.js +230 -0
- data/vendor/assets/javascripts/highlight_js/languages/ruby.js +203 -0
- data/vendor/assets/javascripts/highlight_js/languages/scala.js +60 -0
- data/vendor/assets/javascripts/highlight_js/languages/smalltalk.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/sql.js +90 -0
- data/vendor/assets/javascripts/highlight_js/languages/tex.js +62 -0
- data/vendor/assets/javascripts/highlight_js/languages/vala.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/vbscript.js +30 -0
- data/vendor/assets/javascripts/highlight_js/languages/vhdl.js +30 -0
- data/vendor/assets/javascripts/highlight_js/languages/xml.js +103 -0
- data/vendor/assets/stylesheets/highlight_js/arta.css +151 -0
- data/vendor/assets/stylesheets/highlight_js/ascetic.css +45 -0
- data/vendor/assets/stylesheets/highlight_js/brown_paper.css.erb +105 -0
- data/vendor/assets/stylesheets/highlight_js/dark.css +103 -0
- data/vendor/assets/stylesheets/highlight_js/default.css +121 -0
- data/vendor/assets/stylesheets/highlight_js/far.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/github.css +129 -0
- data/vendor/assets/stylesheets/highlight_js/idea.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/ir_black.css +103 -0
- data/vendor/assets/stylesheets/highlight_js/magula.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/school_book.css.erb +111 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_dark.css +96 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_light.css +96 -0
- data/vendor/assets/stylesheets/highlight_js/sunburst.css +147 -0
- data/vendor/assets/stylesheets/highlight_js/vs.css +84 -0
- data/vendor/assets/stylesheets/highlight_js/zenburn.css +115 -0
- metadata +129 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
Language: MEL
|
3
|
+
Description: Maya Embedded Language
|
4
|
+
Author: Shuen-Huei Guan <drake.guan@gmail.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
hljs.LANGUAGES.mel = {
|
8
|
+
defaultMode: {
|
9
|
+
keywords: {
|
10
|
+
'int': 1, 'float': 1, 'string': 1, 'float': 1, 'vector': 1, 'matrix': 1,
|
11
|
+
'if': 1, 'else': 1, 'switch': 1, 'case': 1, 'default': 1, 'while': 1, 'do': 1, 'for': 1, 'in': 1, 'break': 1, 'continue': 1,
|
12
|
+
'exists': 1, 'objExists': 1, 'attributeExists': 1,
|
13
|
+
'global': 1, 'proc': 1, 'return': 1,
|
14
|
+
'error': 1, 'warning': 1, 'trace': 1, 'catch': 1,
|
15
|
+
'about': 1, 'abs': 1, 'addAttr': 1, 'addAttributeEditorNodeHelp': 1, 'addDynamic': 1, 'addNewShelfTab': 1, 'addPP': 1, 'addPanelCategory': 1, 'addPrefixToName': 1, 'advanceToNextDrivenKey': 1, 'affectedNet': 1, 'affects': 1, 'aimConstraint': 1, 'air': 1, 'alias': 1, 'aliasAttr': 1, 'align': 1, 'alignCtx': 1, 'alignCurve': 1, 'alignSurface': 1, 'allViewFit': 1, 'ambientLight': 1, 'angle': 1, 'angleBetween': 1, 'animCone': 1, 'animCurveEditor': 1, 'animDisplay': 1, 'animView': 1, 'annotate': 1, 'appendStringArray': 1, 'applicationName': 1, 'applyAttrPreset': 1, 'applyTake': 1, 'arcLenDimContext': 1, 'arcLengthDimension': 1, 'arclen': 1, 'arrayMapper': 1, 'art3dPaintCtx': 1, 'artAttrCtx': 1, 'artAttrPaintVertexCtx': 1, 'artAttrSkinPaintCtx': 1, 'artAttrTool': 1, 'artBuildPaintMenu': 1, 'artFluidAttrCtx': 1, 'artPuttyCtx': 1, 'artSelectCtx': 1, 'artSetPaintCtx': 1, 'artUserPaintCtx': 1, 'assignCommand': 1, 'assignInputDevice': 1, 'assignViewportFactories': 1, 'attachCurve': 1, 'attachDeviceAttr': 1, 'attachSurface': 1, 'attrColorSliderGrp': 1, 'attrCompatibility': 1, 'attrControlGrp': 1, 'attrEnumOptionMenu': 1, 'attrEnumOptionMenuGrp': 1, 'attrFieldGrp': 1, 'attrFieldSliderGrp': 1, 'attrNavigationControlGrp': 1, 'attrPresetEditWin': 1, 'attributeExists': 1, 'attributeInfo': 1, 'attributeMenu': 1, 'attributeQuery': 1, 'autoKeyframe': 1, 'autoPlace': 1, 'bakeClip': 1, 'bakeFluidShading': 1, 'bakePartialHistory': 1, 'bakeResults': 1, 'bakeSimulation': 1, 'basename': 1, 'basenameEx': 1, 'batchRender': 1, 'bessel': 1, 'bevel': 1, 'bevelPlus': 1, 'binMembership': 1, 'bindSkin': 1, 'blend2': 1, 'blendShape': 1, 'blendShapeEditor': 1, 'blendShapePanel': 1, 'blendTwoAttr': 1, 'blindDataType': 1, 'boneLattice': 1, 'boundary': 1, 'boxDollyCtx': 1, 'boxZoomCtx': 1, 'bufferCurve': 1, 'buildBookmarkMenu': 1, 'buildKeyframeMenu': 1, 'button': 1, 'buttonManip': 1, 'CBG': 1, 'cacheFile': 1, 'cacheFileCombine': 1, 'cacheFileMerge': 1, 'cacheFileTrack': 1, 'camera': 1, 'cameraView': 1, 'canCreateManip': 1, 'canvas': 1, 'capitalizeString': 1, 'catch': 1, 'catchQuiet': 1, 'ceil': 1, 'changeSubdivComponentDisplayLevel': 1, 'changeSubdivRegion': 1, 'channelBox': 1, 'character': 1, 'characterMap': 1, 'characterOutlineEditor': 1, 'characterize': 1, 'chdir': 1, 'checkBox': 1, 'checkBoxGrp': 1, 'checkDefaultRenderGlobals': 1, 'choice': 1, 'circle': 1, 'circularFillet': 1, 'clamp': 1, 'clear': 1, 'clearCache': 1, 'clip': 1, 'clipEditor': 1, 'clipEditorCurrentTimeCtx': 1, 'clipSchedule': 1, 'clipSchedulerOutliner': 1, 'clipTrimBefore': 1, 'closeCurve': 1, 'closeSurface': 1, 'cluster': 1, 'cmdFileOutput': 1, 'cmdScrollFieldExecuter': 1, 'cmdScrollFieldReporter': 1, 'cmdShell': 1, 'coarsenSubdivSelectionList': 1, 'collision': 1, 'color': 1, 'colorAtPoint': 1, 'colorEditor': 1, 'colorIndex': 1, 'colorIndexSliderGrp': 1, 'colorSliderButtonGrp': 1, 'colorSliderGrp': 1, 'columnLayout': 1, 'commandEcho': 1, 'commandLine': 1, 'commandPort': 1, 'compactHairSystem': 1, 'componentEditor': 1, 'compositingInterop': 1, 'computePolysetVolume': 1, 'condition': 1, 'cone': 1, 'confirmDialog': 1, 'connectAttr': 1, 'connectControl': 1, 'connectDynamic': 1, 'connectJoint': 1, 'connectionInfo': 1, 'constrain': 1, 'constrainValue': 1, 'constructionHistory': 1, 'container': 1, 'containsMultibyte': 1, 'contextInfo': 1, 'control': 1, 'convertFromOldLayers': 1, 'convertIffToPsd': 1, 'convertLightmap': 1, 'convertSolidTx': 1, 'convertTessellation': 1, 'convertUnit': 1, 'copyArray': 1, 'copyFlexor': 1, 'copyKey': 1, 'copySkinWeights': 1, 'cos': 1, 'cpButton': 1, 'cpCache': 1, 'cpClothSet': 1, 'cpCollision': 1, 'cpConstraint': 1, 'cpConvClothToMesh': 1, 'cpForces': 1, 'cpGetSolverAttr': 1, 'cpPanel': 1, 'cpProperty': 1, 'cpRigidCollisionFilter': 1, 'cpSeam': 1, 'cpSetEdit': 1, 'cpSetSolverAttr': 1, 'cpSolver': 1, 'cpSolverTypes': 1, 'cpTool': 1, 'cpUpdateClothUVs': 1, 'createDisplayLayer': 1, 'createDrawCtx': 1, 'createEditor': 1, 'createLayeredPsdFile': 1, 'createMotionField': 1, 'createNewShelf': 1, 'createNode': 1, 'createRenderLayer': 1, 'createSubdivRegion': 1, 'cross': 1, 'crossProduct': 1, 'ctxAbort': 1, 'ctxCompletion': 1, 'ctxEditMode': 1, 'ctxTraverse': 1, 'currentCtx': 1, 'currentTime': 1, 'currentTimeCtx': 1, 'currentUnit': 1, 'currentUnit': 1, 'curve': 1, 'curveAddPtCtx': 1, 'curveCVCtx': 1, 'curveEPCtx': 1, 'curveEditorCtx': 1, 'curveIntersect': 1, 'curveMoveEPCtx': 1, 'curveOnSurface': 1, 'curveSketchCtx': 1, 'cutKey': 1, 'cycleCheck': 1, 'cylinder': 1, 'dagPose': 1, 'date': 1, 'defaultLightListCheckBox': 1, 'defaultNavigation': 1, 'defineDataServer': 1, 'defineVirtualDevice': 1, 'deformer': 1, 'deg_to_rad': 1, 'delete': 1, 'deleteAttr': 1, 'deleteShadingGroupsAndMaterials': 1, 'deleteShelfTab': 1, 'deleteUI': 1, 'deleteUnusedBrushes': 1, 'delrandstr': 1, 'detachCurve': 1, 'detachDeviceAttr': 1, 'detachSurface': 1, 'deviceEditor': 1, 'devicePanel': 1, 'dgInfo': 1, 'dgdirty': 1, 'dgeval': 1, 'dgtimer': 1, 'dimWhen': 1, 'directKeyCtx': 1, 'directionalLight': 1, 'dirmap': 1, 'dirname': 1, 'disable': 1, 'disconnectAttr': 1, 'disconnectJoint': 1, 'diskCache': 1, 'displacementToPoly': 1, 'displayAffected': 1, 'displayColor': 1, 'displayCull': 1, 'displayLevelOfDetail': 1, 'displayPref': 1, 'displayRGBColor': 1, 'displaySmoothness': 1, 'displayStats': 1, 'displayString': 1, 'displaySurface': 1, 'distanceDimContext': 1, 'distanceDimension': 1, 'doBlur': 1, 'dolly': 1, 'dollyCtx': 1, 'dopeSheetEditor': 1, 'dot': 1, 'dotProduct': 1, 'doubleProfileBirailSurface': 1, 'drag': 1, 'dragAttrContext': 1, 'draggerContext': 1, 'dropoffLocator': 1, 'duplicate': 1, 'duplicateCurve': 1, 'duplicateSurface': 1, 'dynCache': 1, 'dynControl': 1, 'dynExport': 1, 'dynExpression': 1, 'dynGlobals': 1, 'dynPaintEditor': 1, 'dynParticleCtx': 1, 'dynPref': 1, 'dynRelEdPanel': 1, 'dynRelEditor': 1, 'dynamicLoad': 1, 'editAttrLimits': 1, 'editDisplayLayerGlobals': 1, 'editDisplayLayerMembers': 1, 'editRenderLayerAdjustment': 1, 'editRenderLayerGlobals': 1, 'editRenderLayerMembers': 1, 'editor': 1, 'editorTemplate': 1, 'effector': 1, 'emit': 1, 'emitter': 1, 'enableDevice': 1, 'encodeString': 1, 'endString': 1, 'endsWith': 1, 'env': 1, 'equivalent': 1, 'equivalentTol': 1, 'erf': 1, 'error': 1, 'eval': 1, 'eval': 1, 'evalDeferred': 1, 'evalEcho': 1, 'event': 1, 'exactWorldBoundingBox': 1, 'exclusiveLightCheckBox': 1, 'exec': 1, 'executeForEachObject': 1, 'exists': 1, 'exp': 1, 'expression': 1, 'expressionEditorListen': 1, 'extendCurve': 1, 'extendSurface': 1, 'extrude': 1, 'fcheck': 1, 'fclose': 1, 'feof': 1, 'fflush': 1, 'fgetline': 1, 'fgetword': 1, 'file': 1, 'fileBrowserDialog': 1, 'fileDialog': 1, 'fileExtension': 1, 'fileInfo': 1, 'filetest': 1, 'filletCurve': 1, 'filter': 1, 'filterCurve': 1, 'filterExpand': 1, 'filterStudioImport': 1, 'findAllIntersections': 1, 'findAnimCurves': 1, 'findKeyframe': 1, 'findMenuItem': 1, 'findRelatedSkinCluster': 1, 'finder': 1, 'firstParentOf': 1, 'fitBspline': 1, 'flexor': 1, 'floatEq': 1, 'floatField': 1, 'floatFieldGrp': 1, 'floatScrollBar': 1, 'floatSlider': 1, 'floatSlider2': 1, 'floatSliderButtonGrp': 1, 'floatSliderGrp': 1, 'floor': 1, 'flow': 1, 'fluidCacheInfo': 1, 'fluidEmitter': 1, 'fluidVoxelInfo': 1, 'flushUndo': 1, 'fmod': 1, 'fontDialog': 1, 'fopen': 1, 'formLayout': 1, 'format': 1, 'fprint': 1, 'frameLayout': 1, 'fread': 1, 'freeFormFillet': 1, 'frewind': 1, 'fromNativePath': 1, 'fwrite': 1, 'gamma': 1, 'gauss': 1, 'geometryConstraint': 1, 'getApplicationVersionAsFloat': 1, 'getAttr': 1, 'getClassification': 1, 'getDefaultBrush': 1, 'getFileList': 1, 'getFluidAttr': 1, 'getInputDeviceRange': 1, 'getMayaPanelTypes': 1, 'getModifiers': 1, 'getPanel': 1, 'getParticleAttr': 1, 'getPluginResource': 1, 'getenv': 1, 'getpid': 1, 'glRender': 1, 'glRenderEditor': 1, 'globalStitch': 1, 'gmatch': 1, 'goal': 1, 'gotoBindPose': 1, 'grabColor': 1, 'gradientControl': 1, 'gradientControlNoAttr': 1, 'graphDollyCtx': 1, 'graphSelectContext': 1, 'graphTrackCtx': 1, 'gravity': 1, 'grid': 1, 'gridLayout': 1, 'group': 1, 'groupObjectsByName': 1, 'HfAddAttractorToAS': 1, 'HfAssignAS': 1, 'HfBuildEqualMap': 1, 'HfBuildFurFiles': 1, 'HfBuildFurImages': 1, 'HfCancelAFR': 1, 'HfConnectASToHF': 1, 'HfCreateAttractor': 1, 'HfDeleteAS': 1, 'HfEditAS': 1, 'HfPerformCreateAS': 1, 'HfRemoveAttractorFromAS': 1, 'HfSelectAttached': 1, 'HfSelectAttractors': 1, 'HfUnAssignAS': 1, 'hardenPointCurve': 1, 'hardware': 1, 'hardwareRenderPanel': 1, 'headsUpDisplay': 1, 'headsUpMessage': 1, 'help': 1, 'helpLine': 1, 'hermite': 1, 'hide': 1, 'hilite': 1, 'hitTest': 1, 'hotBox': 1, 'hotkey': 1, 'hotkeyCheck': 1, 'hsv_to_rgb': 1, 'hudButton': 1, 'hudSlider': 1, 'hudSliderButton': 1, 'hwReflectionMap': 1, 'hwRender': 1, 'hwRenderLoad': 1, 'hyperGraph': 1, 'hyperPanel': 1, 'hyperShade': 1, 'hypot': 1, 'iconTextButton': 1, 'iconTextCheckBox': 1, 'iconTextRadioButton': 1, 'iconTextRadioCollection': 1, 'iconTextScrollList': 1, 'iconTextStaticLabel': 1, 'ikHandle': 1, 'ikHandleCtx': 1, 'ikHandleDisplayScale': 1, 'ikSolver': 1, 'ikSplineHandleCtx': 1, 'ikSystem': 1, 'ikSystemInfo': 1, 'ikfkDisplayMethod': 1, 'illustratorCurves': 1, 'image': 1, 'imfPlugins': 1, 'inheritTransform': 1, 'insertJoint': 1, 'insertJointCtx': 1, 'insertKeyCtx': 1, 'insertKnotCurve': 1, 'insertKnotSurface': 1, 'instance': 1, 'instanceable': 1, 'instancer': 1, 'intField': 1, 'intFieldGrp': 1, 'intScrollBar': 1, 'intSlider': 1, 'intSliderGrp': 1, 'interToUI': 1, 'internalVar': 1, 'intersect': 1, 'iprEngine': 1, 'isAnimCurve': 1, 'isConnected': 1, 'isDirty': 1, 'isParentOf': 1, 'isSameObject': 1, 'isTrue': 1, 'isValidObjectName': 1, 'isValidString': 1, 'isValidUiName': 1, 'isolateSelect': 1, 'itemFilter': 1, 'itemFilterAttr': 1, 'itemFilterRender': 1, 'itemFilterType': 1, 'joint': 1, 'jointCluster': 1, 'jointCtx': 1, 'jointDisplayScale': 1, 'jointLattice': 1, 'keyTangent': 1, 'keyframe': 1, 'keyframeOutliner': 1, 'keyframeRegionCurrentTimeCtx': 1, 'keyframeRegionDirectKeyCtx': 1, 'keyframeRegionDollyCtx': 1, 'keyframeRegionInsertKeyCtx': 1, 'keyframeRegionMoveKeyCtx': 1, 'keyframeRegionScaleKeyCtx': 1, 'keyframeRegionSelectKeyCtx': 1, 'keyframeRegionSetKeyCtx': 1, 'keyframeRegionTrackCtx': 1, 'keyframeStats': 1, 'lassoContext': 1, 'lattice': 1, 'latticeDeformKeyCtx': 1, 'launch': 1, 'launchImageEditor': 1, 'layerButton': 1, 'layeredShaderPort': 1, 'layeredTexturePort': 1, 'layout': 1, 'layoutDialog': 1, 'lightList': 1, 'lightListEditor': 1, 'lightListPanel': 1, 'lightlink': 1, 'lineIntersection': 1, 'linearPrecision': 1, 'linstep': 1, 'listAnimatable': 1, 'listAttr': 1, 'listCameras': 1, 'listConnections': 1, 'listDeviceAttachments': 1, 'listHistory': 1, 'listInputDeviceAxes': 1, 'listInputDeviceButtons': 1, 'listInputDevices': 1, 'listMenuAnnotation': 1, 'listNodeTypes': 1, 'listPanelCategories': 1, 'listRelatives': 1, 'listSets': 1, 'listTransforms': 1, 'listUnselected': 1, 'listerEditor': 1, 'loadFluid': 1, 'loadNewShelf': 1, 'loadPlugin': 1, 'loadPluginLanguageResources': 1, 'loadPrefObjects': 1, 'localizedPanelLabel': 1, 'lockNode': 1, 'loft': 1, 'log': 1, 'longNameOf': 1, 'lookThru': 1, 'ls': 1, 'lsThroughFilter': 1, 'lsType': 1, 'lsUI': 1, 'Mayatomr': 1, 'mag': 1, 'makeIdentity': 1, 'makeLive': 1, 'makePaintable': 1, 'makeRoll': 1, 'makeSingleSurface': 1, 'makeTubeOn': 1, 'makebot': 1, 'manipMoveContext': 1, 'manipMoveLimitsCtx': 1, 'manipOptions': 1, 'manipRotateContext': 1, 'manipRotateLimitsCtx': 1, 'manipScaleContext': 1, 'manipScaleLimitsCtx': 1, 'marker': 1, 'match': 1, 'max': 1, 'memory': 1, 'menu': 1, 'menuBarLayout': 1, 'menuEditor': 1, 'menuItem': 1, 'menuItemToShelf': 1, 'menuSet': 1, 'menuSetPref': 1, 'messageLine': 1, 'min': 1, 'minimizeApp': 1, 'mirrorJoint': 1, 'modelCurrentTimeCtx': 1, 'modelEditor': 1, 'modelPanel': 1, 'mouse': 1, 'movIn': 1, 'movOut': 1, 'move': 1, 'moveIKtoFK': 1, 'moveKeyCtx': 1, 'moveVertexAlongDirection': 1, 'multiProfileBirailSurface': 1, 'mute': 1, 'nParticle': 1, 'nameCommand': 1, 'nameField': 1, 'namespace': 1, 'namespaceInfo': 1, 'newPanelItems': 1, 'newton': 1, 'nodeCast': 1, 'nodeIconButton': 1, 'nodeOutliner': 1, 'nodePreset': 1, 'nodeType': 1, 'noise': 1, 'nonLinear': 1, 'normalConstraint': 1, 'normalize': 1, 'nurbsBoolean': 1, 'nurbsCopyUVSet': 1, 'nurbsCube': 1, 'nurbsEditUV': 1, 'nurbsPlane': 1, 'nurbsSelect': 1, 'nurbsSquare': 1, 'nurbsToPoly': 1, 'nurbsToPolygonsPref': 1, 'nurbsToSubdiv': 1, 'nurbsToSubdivPref': 1, 'nurbsUVSet': 1, 'nurbsViewDirectionVector': 1, 'objExists': 1, 'objectCenter': 1, 'objectLayer': 1, 'objectType': 1, 'objectTypeUI': 1, 'obsoleteProc': 1, 'oceanNurbsPreviewPlane': 1, 'offsetCurve': 1, 'offsetCurveOnSurface': 1, 'offsetSurface': 1, 'openGLExtension': 1, 'openMayaPref': 1, 'optionMenu': 1, 'optionMenuGrp': 1, 'optionVar': 1, 'orbit': 1, 'orbitCtx': 1, 'orientConstraint': 1, 'outlinerEditor': 1, 'outlinerPanel': 1, 'overrideModifier': 1, 'paintEffectsDisplay': 1, 'pairBlend': 1, 'palettePort': 1, 'paneLayout': 1, 'panel': 1, 'panelConfiguration': 1, 'panelHistory': 1, 'paramDimContext': 1, 'paramDimension': 1, 'paramLocator': 1, 'parent': 1, 'parentConstraint': 1, 'particle': 1, 'particleExists': 1, 'particleInstancer': 1, 'particleRenderInfo': 1, 'partition': 1, 'pasteKey': 1, 'pathAnimation': 1, 'pause': 1, 'pclose': 1, 'percent': 1, 'performanceOptions': 1, 'pfxstrokes': 1, 'pickWalk': 1, 'picture': 1, 'pixelMove': 1, 'planarSrf': 1, 'plane': 1, 'play': 1, 'playbackOptions': 1, 'playblast': 1, 'plugAttr': 1, 'plugNode': 1, 'pluginInfo': 1, 'pluginResourceUtil': 1, 'pointConstraint': 1, 'pointCurveConstraint': 1, 'pointLight': 1, 'pointMatrixMult': 1, 'pointOnCurve': 1, 'pointOnSurface': 1, 'pointPosition': 1, 'poleVectorConstraint': 1, 'polyAppend': 1, 'polyAppendFacetCtx': 1, 'polyAppendVertex': 1, 'polyAutoProjection': 1, 'polyAverageNormal': 1, 'polyAverageVertex': 1, 'polyBevel': 1, 'polyBlendColor': 1, 'polyBlindData': 1, 'polyBoolOp': 1, 'polyBridgeEdge': 1, 'polyCacheMonitor': 1, 'polyCheck': 1, 'polyChipOff': 1, 'polyClipboard': 1, 'polyCloseBorder': 1, 'polyCollapseEdge': 1, 'polyCollapseFacet': 1, 'polyColorBlindData': 1, 'polyColorDel': 1, 'polyColorPerVertex': 1, 'polyColorSet': 1, 'polyCompare': 1, 'polyCone': 1, 'polyCopyUV': 1, 'polyCrease': 1, 'polyCreaseCtx': 1, 'polyCreateFacet': 1, 'polyCreateFacetCtx': 1, 'polyCube': 1, 'polyCut': 1, 'polyCutCtx': 1, 'polyCylinder': 1, 'polyCylindricalProjection': 1, 'polyDelEdge': 1, 'polyDelFacet': 1, 'polyDelVertex': 1, 'polyDuplicateAndConnect': 1, 'polyDuplicateEdge': 1, 'polyEditUV': 1, 'polyEditUVShell': 1, 'polyEvaluate': 1, 'polyExtrudeEdge': 1, 'polyExtrudeFacet': 1, 'polyExtrudeVertex': 1, 'polyFlipEdge': 1, 'polyFlipUV': 1, 'polyForceUV': 1, 'polyGeoSampler': 1, 'polyHelix': 1, 'polyInfo': 1, 'polyInstallAction': 1, 'polyLayoutUV': 1, 'polyListComponentConversion': 1, 'polyMapCut': 1, 'polyMapDel': 1, 'polyMapSew': 1, 'polyMapSewMove': 1, 'polyMergeEdge': 1, 'polyMergeEdgeCtx': 1, 'polyMergeFacet': 1, 'polyMergeFacetCtx': 1, 'polyMergeUV': 1, 'polyMergeVertex': 1, 'polyMirrorFace': 1, 'polyMoveEdge': 1, 'polyMoveFacet': 1, 'polyMoveFacetUV': 1, 'polyMoveUV': 1, 'polyMoveVertex': 1, 'polyNormal': 1, 'polyNormalPerVertex': 1, 'polyNormalizeUV': 1, 'polyOptUvs': 1, 'polyOptions': 1, 'polyOutput': 1, 'polyPipe': 1, 'polyPlanarProjection': 1, 'polyPlane': 1, 'polyPlatonicSolid': 1, 'polyPoke': 1, 'polyPrimitive': 1, 'polyPrism': 1, 'polyProjection': 1, 'polyPyramid': 1, 'polyQuad': 1, 'polyQueryBlindData': 1, 'polyReduce': 1, 'polySelect': 1, 'polySelectConstraint': 1, 'polySelectConstraintMonitor': 1, 'polySelectCtx': 1, 'polySelectEditCtx': 1, 'polySeparate': 1, 'polySetToFaceNormal': 1, 'polySewEdge': 1, 'polyShortestPathCtx': 1, 'polySmooth': 1, 'polySoftEdge': 1, 'polySphere': 1, 'polySphericalProjection': 1, 'polySplit': 1, 'polySplitCtx': 1, 'polySplitEdge': 1, 'polySplitRing': 1, 'polySplitVertex': 1, 'polyStraightenUVBorder': 1, 'polySubdivideEdge': 1, 'polySubdivideFacet': 1, 'polyToSubdiv': 1, 'polyTorus': 1, 'polyTransfer': 1, 'polyTriangulate': 1, 'polyUVSet': 1, 'polyUnite': 1, 'polyWedgeFace': 1, 'popen': 1, 'popupMenu': 1, 'pose': 1, 'pow': 1, 'preloadRefEd': 1, 'print': 1, 'progressBar': 1, 'progressWindow': 1, 'projFileViewer': 1, 'projectCurve': 1, 'projectTangent': 1, 'projectionContext': 1, 'projectionManip': 1, 'promptDialog': 1, 'propModCtx': 1, 'propMove': 1, 'psdChannelOutliner': 1, 'psdEditTextureFile': 1, 'psdExport': 1, 'psdTextureFile': 1, 'putenv': 1, 'pwd': 1, 'python': 1, 'querySubdiv': 1, 'quit': 1, 'rad_to_deg': 1, 'radial': 1, 'radioButton': 1, 'radioButtonGrp': 1, 'radioCollection': 1, 'radioMenuItemCollection': 1, 'rampColorPort': 1, 'rand': 1, 'randomizeFollicles': 1, 'randstate': 1, 'rangeControl': 1, 'readTake': 1, 'rebuildCurve': 1, 'rebuildSurface': 1, 'recordAttr': 1, 'recordDevice': 1, 'redo': 1, 'reference': 1, 'referenceEdit': 1, 'referenceQuery': 1, 'refineSubdivSelectionList': 1, 'refresh': 1, 'refreshAE': 1, 'registerPluginResource': 1, 'rehash': 1, 'reloadImage': 1, 'removeJoint': 1, 'removeMultiInstance': 1, 'removePanelCategory': 1, 'rename': 1, 'renameAttr': 1, 'renameSelectionList': 1, 'renameUI': 1, 'render': 1, 'renderGlobalsNode': 1, 'renderInfo': 1, 'renderLayerButton': 1, 'renderLayerParent': 1, 'renderLayerPostProcess': 1, 'renderLayerUnparent': 1, 'renderManip': 1, 'renderPartition': 1, 'renderQualityNode': 1, 'renderSettings': 1, 'renderThumbnailUpdate': 1, 'renderWindowEditor': 1, 'renderWindowSelectContext': 1, 'renderer': 1, 'reorder': 1, 'reorderDeformers': 1, 'requires': 1, 'reroot': 1, 'resampleFluid': 1, 'resetAE': 1, 'resetPfxToPolyCamera': 1, 'resetTool': 1, 'resolutionNode': 1, 'retarget': 1, 'reverseCurve': 1, 'reverseSurface': 1, 'revolve': 1, 'rgb_to_hsv': 1, 'rigidBody': 1, 'rigidSolver': 1, 'roll': 1, 'rollCtx': 1, 'rootOf': 1, 'rot': 1, 'rotate': 1, 'rotationInterpolation': 1, 'roundConstantRadius': 1, 'rowColumnLayout': 1, 'rowLayout': 1, 'runTimeCommand': 1, 'runup': 1, 'sampleImage': 1, 'saveAllShelves': 1, 'saveAttrPreset': 1, 'saveFluid': 1, 'saveImage': 1, 'saveInitialState': 1, 'saveMenu': 1, 'savePrefObjects': 1, 'savePrefs': 1, 'saveShelf': 1, 'saveToolSettings': 1, 'scale': 1, 'scaleBrushBrightness': 1, 'scaleComponents': 1, 'scaleConstraint': 1, 'scaleKey': 1, 'scaleKeyCtx': 1, 'sceneEditor': 1, 'sceneUIReplacement': 1, 'scmh': 1, 'scriptCtx': 1, 'scriptEditorInfo': 1, 'scriptJob': 1, 'scriptNode': 1, 'scriptTable': 1, 'scriptToShelf': 1, 'scriptedPanel': 1, 'scriptedPanelType': 1, 'scrollField': 1, 'scrollLayout': 1, 'sculpt': 1, 'searchPathArray': 1, 'seed': 1, 'selLoadSettings': 1, 'select': 1, 'selectContext': 1, 'selectCurveCV': 1, 'selectKey': 1, 'selectKeyCtx': 1, 'selectKeyframeRegionCtx': 1, 'selectMode': 1, 'selectPref': 1, 'selectPriority': 1, 'selectType': 1, 'selectedNodes': 1, 'selectionConnection': 1, 'separator': 1, 'setAttr': 1, 'setAttrEnumResource': 1, 'setAttrMapping': 1, 'setAttrNiceNameResource': 1, 'setConstraintRestPosition': 1, 'setDefaultShadingGroup': 1, 'setDrivenKeyframe': 1, 'setDynamic': 1, 'setEditCtx': 1, 'setEditor': 1, 'setFluidAttr': 1, 'setFocus': 1, 'setInfinity': 1, 'setInputDeviceMapping': 1, 'setKeyCtx': 1, 'setKeyPath': 1, 'setKeyframe': 1, 'setKeyframeBlendshapeTargetWts': 1, 'setMenuMode': 1, 'setNodeNiceNameResource': 1, 'setNodeTypeFlag': 1, 'setParent': 1, 'setParticleAttr': 1, 'setPfxToPolyCamera': 1, 'setPluginResource': 1, 'setProject': 1, 'setStampDensity': 1, 'setStartupMessage': 1, 'setState': 1, 'setToolTo': 1, 'setUITemplate': 1, 'setXformManip': 1, 'sets': 1, 'shadingConnection': 1, 'shadingGeometryRelCtx': 1, 'shadingLightRelCtx': 1, 'shadingNetworkCompare': 1, 'shadingNode': 1, 'shapeCompare': 1, 'shelfButton': 1, 'shelfLayout': 1, 'shelfTabLayout': 1, 'shellField': 1, 'shortNameOf': 1, 'showHelp': 1, 'showHidden': 1, 'showManipCtx': 1, 'showSelectionInTitle': 1, 'showShadingGroupAttrEditor': 1, 'showWindow': 1, 'sign': 1, 'simplify': 1, 'sin': 1, 'singleProfileBirailSurface': 1, 'size': 1, 'sizeBytes': 1, 'skinCluster': 1, 'skinPercent': 1, 'smoothCurve': 1, 'smoothTangentSurface': 1, 'smoothstep': 1, 'snap2to2': 1, 'snapKey': 1, 'snapMode': 1, 'snapTogetherCtx': 1, 'snapshot': 1, 'soft': 1, 'softMod': 1, 'softModCtx': 1, 'sort': 1, 'sound': 1, 'soundControl': 1, 'source': 1, 'spaceLocator': 1, 'sphere': 1, 'sphrand': 1, 'spotLight': 1, 'spotLightPreviewPort': 1, 'spreadSheetEditor': 1, 'spring': 1, 'sqrt': 1, 'squareSurface': 1, 'srtContext': 1, 'stackTrace': 1, 'startString': 1, 'startsWith': 1, 'stitchAndExplodeShell': 1, 'stitchSurface': 1, 'stitchSurfacePoints': 1, 'strcmp': 1, 'stringArrayCatenate': 1, 'stringArrayContains': 1, 'stringArrayCount': 1, 'stringArrayInsertAtIndex': 1, 'stringArrayIntersector': 1, 'stringArrayRemove': 1, 'stringArrayRemoveAtIndex': 1, 'stringArrayRemoveDuplicates': 1, 'stringArrayRemoveExact': 1, 'stringArrayToString': 1, 'stringToStringArray': 1, 'strip': 1, 'stripPrefixFromName': 1, 'stroke': 1, 'subdAutoProjection': 1, 'subdCleanTopology': 1, 'subdCollapse': 1, 'subdDuplicateAndConnect': 1, 'subdEditUV': 1, 'subdListComponentConversion': 1, 'subdMapCut': 1, 'subdMapSewMove': 1, 'subdMatchTopology': 1, 'subdMirror': 1, 'subdToBlind': 1, 'subdToPoly': 1, 'subdTransferUVsToCache': 1, 'subdiv': 1, 'subdivCrease': 1, 'subdivDisplaySmoothness': 1, 'substitute': 1, 'substituteAllString': 1, 'substituteGeometry': 1, 'substring': 1, 'surface': 1, 'surfaceSampler': 1, 'surfaceShaderList': 1, 'swatchDisplayPort': 1, 'switchTable': 1, 'symbolButton': 1, 'symbolCheckBox': 1, 'sysFile': 1, 'system': 1, 'tabLayout': 1, 'tan': 1, 'tangentConstraint': 1, 'texLatticeDeformContext': 1, 'texManipContext': 1, 'texMoveContext': 1, 'texMoveUVShellContext': 1, 'texRotateContext': 1, 'texScaleContext': 1, 'texSelectContext': 1, 'texSelectShortestPathCtx': 1, 'texSmudgeUVContext': 1, 'texWinToolCtx': 1, 'text': 1, 'textCurves': 1, 'textField': 1, 'textFieldButtonGrp': 1, 'textFieldGrp': 1, 'textManip': 1, 'textScrollList': 1, 'textToShelf': 1, 'textureDisplacePlane': 1, 'textureHairColor': 1, 'texturePlacementContext': 1, 'textureWindow': 1, 'threadCount': 1, 'threePointArcCtx': 1, 'timeControl': 1, 'timePort': 1, 'timerX': 1, 'toNativePath': 1, 'toggle': 1, 'toggleAxis': 1, 'toggleWindowVisibility': 1, 'tokenize': 1, 'tokenizeList': 1, 'tolerance': 1, 'tolower': 1, 'toolButton': 1, 'toolCollection': 1, 'toolDropped': 1, 'toolHasOptions': 1, 'toolPropertyWindow': 1, 'torus': 1, 'toupper': 1, 'trace': 1, 'track': 1, 'trackCtx': 1, 'transferAttributes': 1, 'transformCompare': 1, 'transformLimits': 1, 'translator': 1, 'trim': 1, 'trunc': 1, 'truncateFluidCache': 1, 'truncateHairCache': 1, 'tumble': 1, 'tumbleCtx': 1, 'turbulence': 1, 'twoPointArcCtx': 1, 'uiRes': 1, 'uiTemplate': 1, 'unassignInputDevice': 1, 'undo': 1, 'undoInfo': 1, 'ungroup': 1, 'uniform': 1, 'unit': 1, 'unloadPlugin': 1, 'untangleUV': 1, 'untitledFileName': 1, 'untrim': 1, 'upAxis': 1, 'updateAE': 1, 'userCtx': 1, 'uvLink': 1, 'uvSnapshot': 1, 'validateShelfName': 1, 'vectorize': 1, 'view2dToolCtx': 1, 'viewCamera': 1, 'viewClipPlane': 1, 'viewFit': 1, 'viewHeadOn': 1, 'viewLookAt': 1, 'viewManip': 1, 'viewPlace': 1, 'viewSet': 1, 'visor': 1, 'volumeAxis': 1, 'vortex': 1, 'waitCursor': 1, 'warning': 1, 'webBrowser': 1, 'webBrowserPrefs': 1, 'whatIs': 1, 'window': 1, 'windowPref': 1, 'wire': 1, 'wireContext': 1, 'workspace': 1, 'wrinkle': 1, 'wrinkleContext': 1, 'writeTake': 1, 'xbmLangPathList': 1, 'xform': 1
|
16
|
+
},
|
17
|
+
illegal: '</',
|
18
|
+
contains: [
|
19
|
+
hljs.C_NUMBER_MODE,
|
20
|
+
hljs.APOS_STRING_MODE,
|
21
|
+
hljs.QUOTE_STRING_MODE,
|
22
|
+
{
|
23
|
+
className: 'string',
|
24
|
+
begin: '`', end: '`',
|
25
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
26
|
+
},
|
27
|
+
{
|
28
|
+
className: 'variable',
|
29
|
+
begin: '\\$\\d',
|
30
|
+
relevance: 5
|
31
|
+
},
|
32
|
+
{
|
33
|
+
className: 'variable',
|
34
|
+
begin: '[\\$\\%\\@\\*](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)'
|
35
|
+
},
|
36
|
+
hljs.C_LINE_COMMENT_MODE,
|
37
|
+
hljs.C_BLOCK_COMMENT_MODE
|
38
|
+
]
|
39
|
+
}
|
40
|
+
};
|
@@ -0,0 +1,224 @@
|
|
1
|
+
/*
|
2
|
+
Language: Nginx
|
3
|
+
Author: Peter Leonov <gojpeg@yandex.ru>
|
4
|
+
*/
|
5
|
+
|
6
|
+
hljs.LANGUAGES.nginx = function() {
|
7
|
+
var VAR1 = {
|
8
|
+
className: 'variable',
|
9
|
+
begin: '\\$\\d+'
|
10
|
+
};
|
11
|
+
var VAR2 = {
|
12
|
+
className: 'variable',
|
13
|
+
begin: '\\${', end: '}'
|
14
|
+
};
|
15
|
+
var VAR3 = {
|
16
|
+
className: 'variable',
|
17
|
+
begin: '[\\$\\@]' + hljs.UNDERSCORE_IDENT_RE
|
18
|
+
};
|
19
|
+
|
20
|
+
return {
|
21
|
+
defaultMode: {
|
22
|
+
contains: [
|
23
|
+
hljs.HASH_COMMENT_MODE,
|
24
|
+
{ // directive
|
25
|
+
begin: hljs.UNDERSCORE_IDENT_RE, end: ';|{', returnEnd: true,
|
26
|
+
keywords: {
|
27
|
+
accept_mutex: 1, accept_mutex_delay: 1, access_log: 1,
|
28
|
+
add_after_body: 1, add_before_body: 1, add_header: 1,
|
29
|
+
addition_types: 1, alias: 1, allow: 1, ancient_browser: 1,
|
30
|
+
ancient_browser: 1, ancient_browser_value: 1, ancient_browser_value: 1,
|
31
|
+
auth_basic: 1, auth_basic_user_file: 1, autoindex: 1,
|
32
|
+
autoindex_exact_size: 1, autoindex_localtime: 1, 'break': 1,
|
33
|
+
charset: 1, charset: 1, charset_map: 1, charset_map: 1,
|
34
|
+
charset_types: 1, charset_types: 1, client_body_buffer_size: 1,
|
35
|
+
client_body_in_file_only: 1, client_body_in_single_buffer: 1,
|
36
|
+
client_body_temp_path: 1, client_body_timeout: 1,
|
37
|
+
client_header_buffer_size: 1, client_header_timeout: 1,
|
38
|
+
client_max_body_size: 1, connection_pool_size: 1, connections: 1,
|
39
|
+
create_full_put_path: 1, daemon: 1, dav_access: 1, dav_methods: 1,
|
40
|
+
debug_connection: 1, debug_points: 1, default_type: 1, deny: 1,
|
41
|
+
directio: 1, directio_alignment: 1, echo: 1, echo_after_body: 1,
|
42
|
+
echo_before_body: 1, echo_blocking_sleep: 1, echo_duplicate: 1,
|
43
|
+
echo_end: 1, echo_exec: 1, echo_flush: 1, echo_foreach_split: 1,
|
44
|
+
echo_location: 1, echo_location_async: 1, echo_read_request_body: 1,
|
45
|
+
echo_request_body: 1, echo_reset_timer: 1, echo_sleep: 1,
|
46
|
+
echo_subrequest: 1, echo_subrequest_async: 1, empty_gif: 1,
|
47
|
+
empty_gif: 1, env: 1, error_log: 1, error_log: 1, error_page: 1,
|
48
|
+
events: 1, expires: 1, fastcgi_bind: 1, fastcgi_buffer_size: 1,
|
49
|
+
fastcgi_buffers: 1, fastcgi_busy_buffers_size: 1, fastcgi_cache: 1,
|
50
|
+
fastcgi_cache_key: 1, fastcgi_cache_methods: 1,
|
51
|
+
fastcgi_cache_min_uses: 1, fastcgi_cache_path: 1,
|
52
|
+
fastcgi_cache_use_stale: 1, fastcgi_cache_valid: 1,
|
53
|
+
fastcgi_catch_stderr: 1, fastcgi_connect_timeout: 1,
|
54
|
+
fastcgi_hide_header: 1, fastcgi_ignore_client_abort: 1,
|
55
|
+
fastcgi_ignore_headers: 1, fastcgi_index: 1,
|
56
|
+
fastcgi_intercept_errors: 1, fastcgi_max_temp_file_size: 1,
|
57
|
+
fastcgi_next_upstream: 1, fastcgi_param: 1, fastcgi_pass: 1,
|
58
|
+
fastcgi_pass_header: 1, fastcgi_pass_request_body: 1,
|
59
|
+
fastcgi_pass_request_headers: 1, fastcgi_read_timeout: 1,
|
60
|
+
fastcgi_send_lowat: 1, fastcgi_send_timeout: 1,
|
61
|
+
fastcgi_split_path_info: 1, fastcgi_store: 1, fastcgi_store_access: 1,
|
62
|
+
fastcgi_temp_file_write_size: 1, fastcgi_temp_path: 1,
|
63
|
+
fastcgi_upstream_fail_timeout: 1, fastcgi_upstream_max_fails: 1,
|
64
|
+
flv: 1, geo: 1, geo: 1, geoip_city: 1, geoip_country: 1, gzip: 1,
|
65
|
+
gzip_buffers: 1, gzip_comp_level: 1, gzip_disable: 1, gzip_hash: 1,
|
66
|
+
gzip_http_version: 1, gzip_min_length: 1, gzip_no_buffer: 1,
|
67
|
+
gzip_proxied: 1, gzip_static: 1, gzip_types: 1, gzip_vary: 1,
|
68
|
+
gzip_window: 1, http: 1, 'if': 1, if_modified_since: 1,
|
69
|
+
ignore_invalid_headers: 1, image_filter: 1, image_filter_buffer: 1,
|
70
|
+
image_filter_jpeg_quality: 1, image_filter_transparency: 1, include: 1,
|
71
|
+
index: 1, internal: 1, ip_hash: 1, js: 1, js_load: 1, js_require: 1,
|
72
|
+
js_utf8: 1, keepalive_requests: 1, keepalive_timeout: 1,
|
73
|
+
kqueue_changes: 1, kqueue_events: 1, large_client_header_buffers: 1,
|
74
|
+
limit_conn: 1, limit_conn_log_level: 1, limit_except: 1, limit_rate: 1,
|
75
|
+
limit_rate_after: 1, limit_req: 1, limit_req_log_level: 1,
|
76
|
+
limit_req_zone: 1, limit_zone: 1, lingering_time: 1,
|
77
|
+
lingering_timeout: 1, listen: 1, location: 1, lock_file: 1,
|
78
|
+
log_format: 1, log_not_found: 1, log_subrequest: 1, map: 1,
|
79
|
+
map_hash_bucket_size: 1, map_hash_max_size: 1, master_process: 1,
|
80
|
+
memcached_bind: 1, memcached_buffer_size: 1,
|
81
|
+
memcached_connect_timeout: 1, memcached_next_upstream: 1,
|
82
|
+
memcached_pass: 1, memcached_read_timeout: 1,
|
83
|
+
memcached_send_timeout: 1, memcached_upstream_fail_timeout: 1,
|
84
|
+
memcached_upstream_max_fails: 1, merge_slashes: 1, min_delete_depth: 1,
|
85
|
+
modern_browser: 1, modern_browser: 1, modern_browser_value: 1,
|
86
|
+
modern_browser_value: 1, more_clear_headers: 1,
|
87
|
+
more_clear_input_headers: 1, more_set_headers: 1,
|
88
|
+
more_set_input_headers: 1, msie_padding: 1, msie_refresh: 1,
|
89
|
+
multi_accept: 1, open_file_cache: 1, open_file_cache_errors: 1,
|
90
|
+
open_file_cache_events: 1, open_file_cache_min_uses: 1,
|
91
|
+
open_file_cache_retest: 1, open_file_cache_valid: 1,
|
92
|
+
open_log_file_cache: 1, optimize_server_names: 1, output_buffers: 1,
|
93
|
+
override_charset: 1, override_charset: 1, perl: 1, perl_modules: 1,
|
94
|
+
perl_require: 1, perl_set: 1, pid: 1, port_in_redirect: 1,
|
95
|
+
post_action: 1, postpone_gzipping: 1, postpone_output: 1,
|
96
|
+
proxy_bind: 1, proxy_buffer_size: 1, proxy_buffering: 1,
|
97
|
+
proxy_buffers: 1, proxy_busy_buffers_size: 1, proxy_cache: 1,
|
98
|
+
proxy_cache_key: 1, proxy_cache_methods: 1, proxy_cache_min_uses: 1,
|
99
|
+
proxy_cache_path: 1, proxy_cache_use_stale: 1, proxy_cache_valid: 1,
|
100
|
+
proxy_connect_timeout: 1, proxy_headers_hash_bucket_size: 1,
|
101
|
+
proxy_headers_hash_max_size: 1, proxy_hide_header: 1,
|
102
|
+
proxy_ignore_client_abort: 1, proxy_ignore_headers: 1,
|
103
|
+
proxy_intercept_errors: 1, proxy_max_temp_file_size: 1,
|
104
|
+
proxy_method: 1, proxy_next_upstream: 1, proxy_pass: 1,
|
105
|
+
proxy_pass_header: 1, proxy_pass_request_body: 1,
|
106
|
+
proxy_pass_request_headers: 1, proxy_read_timeout: 1,
|
107
|
+
proxy_redirect: 1, proxy_send_lowat: 1, proxy_send_timeout: 1,
|
108
|
+
proxy_set_body: 1, proxy_set_header: 1, proxy_store: 1,
|
109
|
+
proxy_store_access: 1, proxy_temp_file_write_size: 1,
|
110
|
+
proxy_temp_path: 1, proxy_upstream_fail_timeout: 1,
|
111
|
+
proxy_upstream_max_fails: 1, push_authorized_channels_only: 1,
|
112
|
+
push_channel_group: 1, push_max_channel_id_length: 1,
|
113
|
+
push_max_channel_subscribers: 1, push_max_message_buffer_length: 1,
|
114
|
+
push_max_reserved_memory: 1, push_message_buffer_length: 1,
|
115
|
+
push_message_timeout: 1, push_min_message_buffer_length: 1,
|
116
|
+
push_min_message_recipients: 1, push_publisher: 1,
|
117
|
+
push_store_messages: 1, push_subscriber: 1,
|
118
|
+
push_subscriber_concurrency: 1, random_index: 1, read_ahead: 1,
|
119
|
+
real_ip_header: 1, recursive_error_pages: 1, request_pool_size: 1,
|
120
|
+
reset_timedout_connection: 1, resolver: 1, resolver_timeout: 1,
|
121
|
+
'return': 1, rewrite: 1, rewrite_log: 1, root: 1, satisfy: 1,
|
122
|
+
satisfy_any: 1, send_lowat: 1, send_timeout: 1, sendfile: 1,
|
123
|
+
sendfile_max_chunk: 1, server: 1, server: 1, server_name: 1,
|
124
|
+
server_name_in_redirect: 1, server_names_hash_bucket_size: 1,
|
125
|
+
server_names_hash_max_size: 1, server_tokens: 1, 'set': 1,
|
126
|
+
set_real_ip_from: 1, source_charset: 1, source_charset: 1, ssi: 1,
|
127
|
+
ssi_ignore_recycled_buffers: 1, ssi_min_file_chunk: 1,
|
128
|
+
ssi_silent_errors: 1, ssi_types: 1, ssi_value_length: 1, ssl: 1,
|
129
|
+
ssl_certificate: 1, ssl_certificate_key: 1, ssl_ciphers: 1,
|
130
|
+
ssl_client_certificate: 1, ssl_crl: 1, ssl_dhparam: 1,
|
131
|
+
ssl_prefer_server_ciphers: 1, ssl_protocols: 1, ssl_session_cache: 1,
|
132
|
+
ssl_session_timeout: 1, ssl_verify_client: 1, ssl_verify_depth: 1,
|
133
|
+
sub_filter: 1, sub_filter_once: 1, sub_filter_types: 1, tcp_nodelay: 1,
|
134
|
+
tcp_nopush: 1, timer_resolution: 1, try_files: 1, types: 1,
|
135
|
+
types_hash_bucket_size: 1, types_hash_max_size: 1,
|
136
|
+
underscores_in_headers: 1, uninitialized_variable_warn: 1, upstream: 1,
|
137
|
+
use: 1, user: 1, userid: 1, userid: 1, userid_domain: 1,
|
138
|
+
userid_domain: 1, userid_expires: 1, userid_expires: 1, userid_mark: 1,
|
139
|
+
userid_name: 1, userid_name: 1, userid_p3p: 1, userid_p3p: 1,
|
140
|
+
userid_path: 1, userid_path: 1, userid_service: 1, userid_service: 1,
|
141
|
+
valid_referers: 1, variables_hash_bucket_size: 1,
|
142
|
+
variables_hash_max_size: 1, worker_connections: 1,
|
143
|
+
worker_cpu_affinity: 1, worker_priority: 1, worker_processes: 1,
|
144
|
+
worker_rlimit_core: 1, worker_rlimit_nofile: 1,
|
145
|
+
worker_rlimit_sigpending: 1, working_directory: 1, xml_entities: 1,
|
146
|
+
xslt_stylesheet: 1, xslt_types: 1
|
147
|
+
},
|
148
|
+
relevance: 0,
|
149
|
+
contains: [
|
150
|
+
hljs.HASH_COMMENT_MODE,
|
151
|
+
{
|
152
|
+
begin: '\\s', end: '[;{]', returnBegin: true, returnEnd: true,
|
153
|
+
lexems: '[a-z/]+',
|
154
|
+
keywords: {
|
155
|
+
'built_in': {
|
156
|
+
'on': 1, 'off': 1, 'yes': 1, 'no': 1, 'true': 1, 'false': 1,
|
157
|
+
'none': 1, 'blocked': 1, 'debug': 1, 'info': 1, 'notice': 1,
|
158
|
+
'warn': 1, 'error': 1, 'crit': 1, 'select': 1, 'permanent': 1,
|
159
|
+
'redirect': 1, 'kqueue': 1, 'rtsig': 1, 'epoll': 1, 'poll': 1,
|
160
|
+
'/dev/poll': 1
|
161
|
+
}
|
162
|
+
},
|
163
|
+
relevance: 0,
|
164
|
+
contains: [
|
165
|
+
hljs.HASH_COMMENT_MODE,
|
166
|
+
{
|
167
|
+
className: 'string',
|
168
|
+
begin: '"', end: '"',
|
169
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3],
|
170
|
+
relevance: 0
|
171
|
+
},
|
172
|
+
{
|
173
|
+
className: 'string',
|
174
|
+
begin: "'", end: "'",
|
175
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3],
|
176
|
+
relevance: 0
|
177
|
+
},
|
178
|
+
{
|
179
|
+
className: 'string',
|
180
|
+
begin: '([a-z]+):/', end: '[;\\s]', returnEnd: true
|
181
|
+
},
|
182
|
+
{
|
183
|
+
className: 'regexp',
|
184
|
+
begin: "\\s\\^", end: "\\s|{|;", returnEnd: true,
|
185
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3]
|
186
|
+
},
|
187
|
+
// regexp locations (~, ~*)
|
188
|
+
{
|
189
|
+
className: 'regexp',
|
190
|
+
begin: "~\\*?\\s+", end: "\\s|{|;", returnEnd: true,
|
191
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3]
|
192
|
+
},
|
193
|
+
// *.example.com
|
194
|
+
{
|
195
|
+
className: 'regexp',
|
196
|
+
begin: "\\*(\\.[a-z\\-]+)+",
|
197
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3]
|
198
|
+
},
|
199
|
+
// sub.example.*
|
200
|
+
{
|
201
|
+
className: 'regexp',
|
202
|
+
begin: "([a-z\\-]+\\.)+\\*",
|
203
|
+
contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2, VAR3]
|
204
|
+
},
|
205
|
+
// IP
|
206
|
+
{
|
207
|
+
className: 'number',
|
208
|
+
begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b'
|
209
|
+
},
|
210
|
+
// units
|
211
|
+
{
|
212
|
+
className: 'number',
|
213
|
+
begin: '\\s\\d+[kKmMgGdshdwy]*\\b',
|
214
|
+
relevance: 0
|
215
|
+
},
|
216
|
+
VAR1, VAR2, VAR3
|
217
|
+
]
|
218
|
+
}
|
219
|
+
]
|
220
|
+
}
|
221
|
+
]
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}();
|
@@ -0,0 +1,94 @@
|
|
1
|
+
/*
|
2
|
+
Language: Objective C
|
3
|
+
Author: Valerii Hiora <valerii.hiora@gmail.com>
|
4
|
+
*/
|
5
|
+
|
6
|
+
hljs.LANGUAGES.objectivec = function(){
|
7
|
+
var OBJC_KEYWORDS = {
|
8
|
+
'keyword': {
|
9
|
+
'false': 1, 'int': 1, 'float': 1, 'while': 1, 'private': 1, 'char': 1,
|
10
|
+
'catch': 1, 'export': 1, 'sizeof': 2, 'typedef': 2, 'const': 1,
|
11
|
+
'struct': 1, 'for': 1, 'union': 1, 'unsigned': 1, 'long': 1,
|
12
|
+
'volatile': 2, 'static': 1, 'protected': 1, 'bool': 1, 'mutable': 1,
|
13
|
+
'if': 1, 'public': 1, 'do': 1, 'return': 1, 'goto': 1, 'void': 2,
|
14
|
+
'enum': 1, 'else': 1, 'break': 1, 'extern': 1, 'true': 1, 'class': 1,
|
15
|
+
'asm': 1, 'case': 1, 'short': 1, 'default': 1, 'double': 1, 'throw': 1,
|
16
|
+
'register': 1, 'explicit': 1, 'signed': 1, 'typename': 1, 'try': 1,
|
17
|
+
'this': 1, 'switch': 1, 'continue': 1, 'wchar_t': 1, 'inline': 1,
|
18
|
+
'readonly': 1, 'assign': 1, 'property': 1, 'protocol': 10, 'self': 1,
|
19
|
+
'synchronized': 1, 'end': 1, 'synthesize': 50, 'id': 1, 'optional': 1,
|
20
|
+
'required': 1, 'implementation': 10, 'nonatomic': 1,'interface': 1,
|
21
|
+
'super': 1, 'unichar': 1, 'finally': 2, 'dynamic': 2, 'nil': 1
|
22
|
+
},
|
23
|
+
'built_in': {
|
24
|
+
'YES': 5, 'NO': 5, 'NULL': 1, 'IBOutlet': 50, 'IBAction': 50,
|
25
|
+
'NSString': 50, 'NSDictionary': 50, 'CGRect': 50, 'CGPoint': 50,
|
26
|
+
'NSRange': 50, 'release': 1, 'retain': 1, 'autorelease': 50,
|
27
|
+
'UIButton': 50, 'UILabel': 50, 'UITextView': 50, 'UIWebView': 50,
|
28
|
+
'MKMapView': 50, 'UISegmentedControl': 50, 'NSObject': 50,
|
29
|
+
'UITableViewDelegate': 50, 'UITableViewDataSource': 50, 'NSThread': 50,
|
30
|
+
'UIActivityIndicator': 50, 'UITabbar': 50, 'UIToolBar': 50,
|
31
|
+
'UIBarButtonItem': 50, 'UIImageView': 50, 'NSAutoreleasePool': 50,
|
32
|
+
'UITableView': 50, 'BOOL': 1, 'NSInteger': 20, 'CGFloat': 20,
|
33
|
+
'NSException': 50, 'NSLog': 50, 'NSMutableString': 50,
|
34
|
+
'NSMutableArray': 50, 'NSMutableDictionary': 50, 'NSURL': 50
|
35
|
+
}
|
36
|
+
};
|
37
|
+
return {
|
38
|
+
defaultMode: {
|
39
|
+
keywords: OBJC_KEYWORDS,
|
40
|
+
illegal: '</',
|
41
|
+
contains: [
|
42
|
+
hljs.C_LINE_COMMENT_MODE,
|
43
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
44
|
+
hljs.C_NUMBER_MODE,
|
45
|
+
hljs.QUOTE_STRING_MODE,
|
46
|
+
{
|
47
|
+
className: 'string',
|
48
|
+
begin: '\'',
|
49
|
+
end: '[^\\\\]\'',
|
50
|
+
illegal: '[^\\\\][^\']'
|
51
|
+
},
|
52
|
+
|
53
|
+
{
|
54
|
+
className: 'preprocessor',
|
55
|
+
begin: '#import',
|
56
|
+
end: '$',
|
57
|
+
contains: [
|
58
|
+
{
|
59
|
+
className: 'title',
|
60
|
+
begin: '\"',
|
61
|
+
end: '\"'
|
62
|
+
},
|
63
|
+
{
|
64
|
+
className: 'title',
|
65
|
+
begin: '<',
|
66
|
+
end: '>'
|
67
|
+
}
|
68
|
+
]
|
69
|
+
},
|
70
|
+
{
|
71
|
+
className: 'preprocessor',
|
72
|
+
begin: '#',
|
73
|
+
end: '$'
|
74
|
+
},
|
75
|
+
{
|
76
|
+
className: 'class',
|
77
|
+
begin: 'interface|class|protocol|implementation',
|
78
|
+
end: '({|$)',
|
79
|
+
keywords: {
|
80
|
+
'interface': 1,
|
81
|
+
'class': 1,
|
82
|
+
'protocol': 5,
|
83
|
+
'implementation': 5
|
84
|
+
},
|
85
|
+
contains: [{
|
86
|
+
className: 'id',
|
87
|
+
begin: hljs.UNDERSCORE_IDENT_RE
|
88
|
+
}
|
89
|
+
]
|
90
|
+
}
|
91
|
+
]
|
92
|
+
}
|
93
|
+
};
|
94
|
+
}();
|
@@ -0,0 +1,52 @@
|
|
1
|
+
/*
|
2
|
+
Language: Parser3
|
3
|
+
Requires: xml.js
|
4
|
+
Author: Oleg Volchkov <oleg@volchkov.net>
|
5
|
+
*/
|
6
|
+
|
7
|
+
hljs.LANGUAGES.parser3 = function() {
|
8
|
+
var COMMENTED_BLOCK = {
|
9
|
+
begin: '{', end: '}'
|
10
|
+
};
|
11
|
+
COMMENTED_BLOCK.contains = [COMMENTED_BLOCK];
|
12
|
+
|
13
|
+
return {
|
14
|
+
defaultMode: {
|
15
|
+
subLanguage: 'html',
|
16
|
+
contains: [
|
17
|
+
{
|
18
|
+
className: 'comment',
|
19
|
+
begin: '^#', end: '$'
|
20
|
+
},
|
21
|
+
{
|
22
|
+
className: 'comment',
|
23
|
+
contains: [COMMENTED_BLOCK],
|
24
|
+
begin: '\\^rem{', end: '}',
|
25
|
+
relevance: 10
|
26
|
+
},
|
27
|
+
{
|
28
|
+
className: 'preprocessor',
|
29
|
+
begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
|
30
|
+
relevance: 10
|
31
|
+
},
|
32
|
+
{
|
33
|
+
className: 'title',
|
34
|
+
begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
|
35
|
+
},
|
36
|
+
{
|
37
|
+
className: 'variable',
|
38
|
+
begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?'
|
39
|
+
},
|
40
|
+
{
|
41
|
+
className: 'keyword',
|
42
|
+
begin: '\\^[\\w\\-\\.\\:]+'
|
43
|
+
},
|
44
|
+
{
|
45
|
+
className: 'number',
|
46
|
+
begin: '\\^#[0-9a-fA-F]+'
|
47
|
+
},
|
48
|
+
hljs.C_NUMBER_MODE
|
49
|
+
]
|
50
|
+
}
|
51
|
+
};
|
52
|
+
}();
|
@@ -0,0 +1,143 @@
|
|
1
|
+
/*
|
2
|
+
Language: Perl
|
3
|
+
Author: Peter Leonov <gojpeg@yandex.ru>
|
4
|
+
*/
|
5
|
+
|
6
|
+
hljs.LANGUAGES.perl = function(){
|
7
|
+
var PERL_KEYWORDS = {'getpwent': 1, 'getservent': 1, 'quotemeta': 1, 'msgrcv': 1, 'scalar': 1, 'kill': 1, 'dbmclose': 1, 'undef': 1, 'lc': 1, 'ma': 1, 'syswrite': 1, 'tr': 1, 'send': 1, 'umask': 1, 'sysopen': 1, 'shmwrite': 1, 'vec': 1, 'qx': 1, 'utime': 1, 'local': 1, 'oct': 1, 'semctl': 1, 'localtime': 1, 'readpipe': 1, 'do': 1, 'return': 1, 'format': 1, 'read': 1, 'sprintf': 1, 'dbmopen': 1, 'pop': 1, 'getpgrp': 1, 'not': 1, 'getpwnam': 1, 'rewinddir': 1, 'qq': 1, 'fileno': 1, 'qw': 1, 'endprotoent': 1, 'wait': 1, 'sethostent': 1, 'bless': 1, 's': 1, 'opendir': 1, 'continue': 1, 'each': 1, 'sleep': 1, 'endgrent': 1, 'shutdown': 1, 'dump': 1, 'chomp': 1, 'connect': 1, 'getsockname': 1, 'die': 1, 'socketpair': 1, 'close': 1, 'flock': 1, 'exists': 1, 'index': 1, 'shmget': 1, 'sub': 1, 'for': 1, 'endpwent': 1, 'redo': 1, 'lstat': 1, 'msgctl': 1, 'setpgrp': 1, 'abs': 1, 'exit': 1, 'select': 1, 'print': 1, 'ref': 1, 'gethostbyaddr': 1, 'unshift': 1, 'fcntl': 1, 'syscall': 1, 'goto': 1, 'getnetbyaddr': 1, 'join': 1, 'gmtime': 1, 'symlink': 1, 'semget': 1, 'splice': 1, 'x': 1, 'getpeername': 1, 'recv': 1, 'log': 1, 'setsockopt': 1, 'cos': 1, 'last': 1, 'reverse': 1, 'gethostbyname': 1, 'getgrnam': 1, 'study': 1, 'formline': 1, 'endhostent': 1, 'times': 1, 'chop': 1, 'length': 1, 'gethostent': 1, 'getnetent': 1, 'pack': 1, 'getprotoent': 1, 'getservbyname': 1, 'rand': 1, 'mkdir': 1, 'pos': 1, 'chmod': 1, 'y': 1, 'substr': 1, 'endnetent': 1, 'printf': 1, 'next': 1, 'open': 1, 'msgsnd': 1, 'readdir': 1, 'use': 1, 'unlink': 1, 'getsockopt': 1, 'getpriority': 1, 'rindex': 1, 'wantarray': 1, 'hex': 1, 'system': 1, 'getservbyport': 1, 'endservent': 1, 'int': 1, 'chr': 1, 'untie': 1, 'rmdir': 1, 'prototype': 1, 'tell': 1, 'listen': 1, 'fork': 1, 'shmread': 1, 'ucfirst': 1, 'setprotoent': 1, 'else': 1, 'sysseek': 1, 'link': 1, 'getgrgid': 1, 'shmctl': 1, 'waitpid': 1, 'unpack': 1, 'getnetbyname': 1, 'reset': 1, 'chdir': 1, 'grep': 1, 'split': 1, 'require': 1, 'caller': 1, 'lcfirst': 1, 'until': 1, 'warn': 1, 'while': 1, 'values': 1, 'shift': 1, 'telldir': 1, 'getpwuid': 1, 'my': 1, 'getprotobynumber': 1, 'delete': 1, 'and': 1, 'sort': 1, 'uc': 1, 'defined': 1, 'srand': 1, 'accept': 1, 'package': 1, 'seekdir': 1, 'getprotobyname': 1, 'semop': 1, 'our': 1, 'rename': 1, 'seek': 1, 'if': 1, 'q': 1, 'chroot': 1, 'sysread': 1, 'setpwent': 1, 'no': 1, 'crypt': 1, 'getc': 1, 'chown': 1, 'sqrt': 1, 'write': 1, 'setnetent': 1, 'setpriority': 1, 'foreach': 1, 'tie': 1, 'sin': 1, 'msgget': 1, 'map': 1, 'stat': 1, 'getlogin': 1, 'unless': 1, 'elsif': 1, 'truncate': 1, 'exec': 1, 'keys': 1, 'glob': 1, 'tied': 1, 'closedir': 1, 'ioctl': 1, 'socket': 1, 'readlink': 1, 'eval': 1, 'xor': 1, 'readline': 1, 'binmode': 1, 'setservent': 1, 'eof': 1, 'ord': 1, 'bind': 1, 'alarm': 1, 'pipe': 1, 'atan2': 1, 'getgrent': 1, 'exp': 1, 'time': 1, 'push': 1, 'setgrent': 1, 'gt': 1, 'lt': 1, 'or': 1, 'ne': 1, 'm': 1};
|
8
|
+
var SUBST = {
|
9
|
+
className: 'subst',
|
10
|
+
begin: '[$@]\\{', end: '\}',
|
11
|
+
keywords: PERL_KEYWORDS,
|
12
|
+
relevance: 10
|
13
|
+
};
|
14
|
+
var VAR1 = {
|
15
|
+
className: 'variable',
|
16
|
+
begin: '\\$\\d'
|
17
|
+
};
|
18
|
+
var VAR2 = {
|
19
|
+
className: 'variable',
|
20
|
+
begin: '[\\$\\%\\@\\*](\\^\\w\\b|#\\w+(\\:\\:\\w+)*|[^\\s\\w{]|{\\w+}|\\w+(\\:\\:\\w*)*)'
|
21
|
+
};
|
22
|
+
var STRING_CONTAINS = [hljs.BACKSLASH_ESCAPE, SUBST, VAR1, VAR2];
|
23
|
+
var METHOD = {
|
24
|
+
begin: '->',
|
25
|
+
contains: [
|
26
|
+
{begin: hljs.IDENT_RE},
|
27
|
+
{begin: '{', end: '}'}
|
28
|
+
]
|
29
|
+
};
|
30
|
+
var PERL_DEFAULT_CONTAINS = [
|
31
|
+
VAR1, VAR2,
|
32
|
+
hljs.HASH_COMMENT_MODE,
|
33
|
+
{
|
34
|
+
className: 'comment',
|
35
|
+
begin: '^(__END__|__DATA__)', end: '\\n$',
|
36
|
+
relevance: 5
|
37
|
+
},
|
38
|
+
METHOD,
|
39
|
+
{
|
40
|
+
className: 'string',
|
41
|
+
begin: 'q[qwxr]?\\s*\\(', end: '\\)',
|
42
|
+
contains: STRING_CONTAINS,
|
43
|
+
relevance: 5
|
44
|
+
},
|
45
|
+
{
|
46
|
+
className: 'string',
|
47
|
+
begin: 'q[qwxr]?\\s*\\[', end: '\\]',
|
48
|
+
contains: STRING_CONTAINS,
|
49
|
+
relevance: 5
|
50
|
+
},
|
51
|
+
{
|
52
|
+
className: 'string',
|
53
|
+
begin: 'q[qwxr]?\\s*\\{', end: '\\}',
|
54
|
+
contains: STRING_CONTAINS,
|
55
|
+
relevance: 5
|
56
|
+
},
|
57
|
+
{
|
58
|
+
className: 'string',
|
59
|
+
begin: 'q[qwxr]?\\s*\\|', end: '\\|',
|
60
|
+
contains: STRING_CONTAINS,
|
61
|
+
relevance: 5
|
62
|
+
},
|
63
|
+
{
|
64
|
+
className: 'string',
|
65
|
+
begin: 'q[qwxr]?\\s*\\<', end: '\\>',
|
66
|
+
contains: STRING_CONTAINS,
|
67
|
+
relevance: 5
|
68
|
+
},
|
69
|
+
{
|
70
|
+
className: 'string',
|
71
|
+
begin: 'qw\\s+q', end: 'q',
|
72
|
+
contains: STRING_CONTAINS,
|
73
|
+
relevance: 5
|
74
|
+
},
|
75
|
+
{
|
76
|
+
className: 'string',
|
77
|
+
begin: '\'', end: '\'',
|
78
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
79
|
+
relevance: 0
|
80
|
+
},
|
81
|
+
{
|
82
|
+
className: 'string',
|
83
|
+
begin: '"', end: '"',
|
84
|
+
contains: STRING_CONTAINS,
|
85
|
+
relevance: 0
|
86
|
+
},
|
87
|
+
{
|
88
|
+
className: 'string',
|
89
|
+
begin: '`', end: '`',
|
90
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
91
|
+
},
|
92
|
+
{
|
93
|
+
className: 'string',
|
94
|
+
begin: '{\\w+}',
|
95
|
+
relevance: 0
|
96
|
+
},
|
97
|
+
{
|
98
|
+
className: 'string',
|
99
|
+
begin: '\-?\\w+\\s*\\=\\>',
|
100
|
+
relevance: 0
|
101
|
+
},
|
102
|
+
{
|
103
|
+
className: 'number',
|
104
|
+
begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
|
105
|
+
relevance: 0
|
106
|
+
},
|
107
|
+
{
|
108
|
+
className: 'regexp',
|
109
|
+
begin: '(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*',
|
110
|
+
relevance: 10
|
111
|
+
},
|
112
|
+
{
|
113
|
+
className: 'regexp',
|
114
|
+
begin: '(m|qr)?/', end: '/[a-z]*',
|
115
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
116
|
+
relevance: 0 // allows empty "//" which is a common comment delimiter in other languages
|
117
|
+
},
|
118
|
+
{
|
119
|
+
className: 'sub',
|
120
|
+
begin: '\\bsub\\b', end: '(\\s*\\(.*?\\))?[;{]',
|
121
|
+
keywords: {'sub':1},
|
122
|
+
relevance: 5
|
123
|
+
},
|
124
|
+
{
|
125
|
+
className: 'operator',
|
126
|
+
begin: '-\\w\\b',
|
127
|
+
relevance: 0
|
128
|
+
},
|
129
|
+
{
|
130
|
+
className: 'pod',
|
131
|
+
begin: '\\=\\w', end: '\\=cut'
|
132
|
+
}
|
133
|
+
];
|
134
|
+
SUBST.contains = PERL_DEFAULT_CONTAINS;
|
135
|
+
METHOD.contains[1].contains = PERL_DEFAULT_CONTAINS;
|
136
|
+
|
137
|
+
return {
|
138
|
+
defaultMode: {
|
139
|
+
keywords: PERL_KEYWORDS,
|
140
|
+
contains: PERL_DEFAULT_CONTAINS
|
141
|
+
}
|
142
|
+
};
|
143
|
+
}();
|