

p[Tc           @   st  d  Z  d d l Z d d l m Z m Z m Z m Z m Z m Z d d l	 m
 Z
 m Z m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z m Z d d d d	 d
 d d d g Z d e f d     YZ d e f d     YZ d e f d     YZ d	 e f d     YZ d
 e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ  d S(   s   
    pygments.lexers.scripting
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for scripting and embedded languages.

    :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iN(   t
   RegexLexert   includet   bygroupst   defaultt   combinedt   words(
   t   Textt   Commentt   Operatort   Keywordt   Namet   Stringt   Numbert   Punctuationt   Errort
   Whitespace(   t   get_bool_optt   get_list_optt	   iteritemst   LuaLexert   MoonScriptLexert   ChaiscriptLexert   LSLLexert   AppleScriptLexert	   RexxLexert   MOOCodeLexert   HybrisLexerc           B   s  e  Z d  Z d Z d g Z d d g Z d d g Z i d e j f e	 d  g d	 6d
 e j
 f d e j f d e j f d e j f d e j f d e j f d e f d e f d e f d e f d e f d e j f d e f d e j f d e j f d e d f d e f d e j e d d  f d e j e d d   f g d 6d! e f d" e e j e e j  d# f d$ e d# f g d 6d% e f g d& 6d' e j f g d 6d e d# f e d&  g d 6d e d# f e d&  g d  6Z  d(   Z! d)   Z" RS(*   s  
    For `Lua <http://www.lua.org>`_ source code.

    Additional options accepted:

    `func_name_highlighting`
        If given and ``True``, highlight builtin function names
        (default: ``True``).
    `disabled_modules`
        If given, must be a list of module names whose function names
        should not be highlighted. By default all modules are highlighted.

        To get a list of allowed modules have a look into the
        `_lua_builtins` module:

        .. sourcecode:: pycon

            >>> from pygments.lexers._lua_builtins import MODULES
            >>> MODULES.keys()
            ['string', 'coroutine', 'modules', 'io', 'basic', ...]
    t   Luat   luas   *.luas   *.wluas
   text/x-luas   application/x-luas   #!(.*?)$t   baset   roots   (?s)--\[(=*)\[.*?\]\1\]s   --.*$s#   (?i)(\d*\.\d+|\d+\.\d*)(e[+-]?\d+)?s   (?i)\d+e[+-]?\d+s   (?i)0x[0-9a-f]*s   \d+s   \ns   [^\S\n]s   (?s)\[(=*)\[.*?\]\1\]s'   (==|~=|<=|>=|\.\.\.|\.\.|[=+\-*/%^<>#])s   [\[\]{}().,:;]s   (and|or|not)\bsE   (break|do|else|elseif|end|for|if|in|repeat|return|then|until|while)\bs	   (local)\bs   (true|false|nil)\bs   (function)\bt   funcnames   [A-Za-z_]\w*(\.[A-Za-z_]\w*)?t   't   stringescapet   sqst   "t   dqss   \s+s%   (?:([A-Za-z_]\w*)(\.))?([A-Za-z_]\w*)s   #pops   \(t   .t   strings   \\([abfnrtv\\"']|\d{1,3})c         K   s   t  | d t  |  _ t | d g   |  _ t   |  _ |  j r d d l m } x? t	 |  D]. \ } } | |  j k r\ |  j j
 |  q\ q\ Wn  t j |  |  d  S(   Nt   func_name_highlightingt   disabled_modulesi(   t   MODULES(   R   t   TrueR'   R   R(   t   sett
   _functionst   pygments.lexers._lua_builtinsR)   R   t   updateR    t   __init__(   t   selft   optionsR)   t   modt   func(    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR/   v   s    	c         c   s   x t  j |  |  D] \ } } } | t k r | |  j k rT | t j | f Vq q d | k r | j d  \ } } | t | f V| t |  t d f V| t |  d t | f Vq q n  | | | f Vq Wd  S(   NR%   u   .i   (   R    t   get_tokens_unprocessedR
   R,   t   Builtint   splitt   lenR   (   R0   t   textt   indext   tokent   valuet   at   b(    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR4      s    	(#   t   __name__t
   __module__t   __doc__t   namet   aliasest	   filenamest	   mimetypesR   t   PreprocR   t	   Multilinet   SingleR   t   Floatt   Hext   IntegerR   R   R   R   t   WordR	   t   Declarationt   ConstantR
   R   t   DoubleR   t   Classt   Functiont   EscapeR   t   tokensR/   R4   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR      sP   									c        '   B   s  e  Z d  Z d Z d d g Z d g Z d d g Z i d e j f e	 d  g d	 6d
 e j
 f d e j f d e j f d e j f d e j f d e f d e f d e f d e j f d e j f d e f d e f d e j f d e j f e d@ d/ d0 e f d1 e j f d2 e j f d3 e j j f d4 e j j f d5 e j f d6 e f d7 e j
 e d8 d9  f d: e j e d8 d;  f g d 6d< e j  f g d8 6d7 e j
 d= f d> e f g d9 6d: e j d= f d> e f g d; 6Z! d?   Z" RS(A   s[   
    For `MoonScript <http://moonscript.org>`_ source code.

    .. versionadded:: 1.5
    t
   MoonScriptt   moont
   moonscripts   *.moons   text/x-moonscripts   application/x-moonscripts   #!(.*?)$R   R   s   --.*$s#   (?i)(\d*\.\d+|\d+\.\d*)(e[+-]?\d+)?s   (?i)\d+e[+-]?\d+s   (?i)0x[0-9a-f]*s   \d+s   \ns   [^\S\n]+s   (?s)\[(=*)\[.*?\]\1\]s   (->|=>)s   :[a-zA-Z_]\w*s/   (==|!=|~=|<=|>=|\.\.\.|\.\.|[=+\-*/%^<>#!.\\:])s   [;,]s
   [\[\]{}()]s   [a-zA-Z_]\w*:t   classt   extendst   ift   thent   supert   dot   witht   importt   exportt   whilet   elseift   returnt   fort   int   fromt   whent   usingt   elset   andt   ort   nott   switcht   breakt   suffixs   \bs   (true|false|nil)\bs   (and|or|not)\bs   (self)\bs   @@?([a-zA-Z_]\w*)?s   [A-Z]\w*s   [A-Za-z_]\w*(\.[A-Za-z_]\w*)?R    R!   R"   R#   R$   s   \\([abfnrtv\\"']|\d{1,3})s   #popR%   c         c   sY   xR t  j |  |  D]> \ } } } | t k rC | d k rC t } n  | | | f Vq Wd  S(   NR%   (   R   R4   R   R   (   R0   R8   R9   R:   R;   (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR4      s    "	(   RV   RW   RX   RY   s   superR[   R\   R]   R^   R_   R`   Ra   Rb   s   inRd   Re   Rf   s   elseRh   s   orRj   Rk   Rl   (#   R>   R?   R@   RA   RB   RC   RD   R   RE   R   RG   R   RH   RI   RJ   R   R   R
   RP   t   VariableR   R   R	   t   TypeR   RM   RK   R5   t   PseudoRO   R   RN   RQ   RR   R4   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR      sT   						   	c           B   s  e  Z d  Z d Z d d g Z d g Z d d g Z e j e j	 BZ
 i d e f d e j f d	 e j f d
 e j f g d 6e d  d e j d f d e d* f e d  g d 6d e d f g d 6e d  d e f d e f d e d f d e d f d e f d e f d e d f d e j d f d e j f d e j f d e j f d e j f d e j f d e j f d e j f d  e j f d! e j  d" f d# e j f g d$ 6d% e j! f d& e j  f d' e j  f d( e j  f d) e j  f d! e j  d f g d" 6Z" RS(+   s\   
    For `ChaiScript <http://chaiscript.com/>`_ source code.

    .. versionadded:: 2.0
    t
   ChaiScriptt   chait
   chaiscripts   *.chais   text/x-chaiscripts   application/x-chaiscripts   \s+s   //.*?\ns	   /\*.*?\*/s   ^\#.*?\nt   commentsandwhitespaces3   /(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)s   #pops   (?=/)t   badregext   slashstartsregexs   \ns   [^\S\n]+sD   \+\+|--|~|&&|\?|:|\|\||\\(?=\n)|\.\.(<<|>>>?|==?|!=?|[-<>+*%&|^/])=?s   [{(\[;,]s   [})\].]s   [=+\-*/]sA   (for|in|while|do|break|return|continue|if|else|throw|try|catch)\bs   (var)\bs   (attr|def|fun)\bs   (true|false)\bs   (eval|throw)\bs   `\S+`s   [$a-zA-Z_]\w*s%   [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?s   0x[0-9a-fA-F]+s   [0-9]+R#   t   dqstrings   '(\\\\|\\'|[^'])*'R   s   \$\{[^"}]+?\}s   \$s   \\\\s   \\"s   [^\\"$]+(   s   #popRu   (#   R>   R?   R@   RA   RB   RC   RD   t   ret   DOTALLt	   MULTILINEt   flagsR   R   RG   RF   R   R   t   RegexR   R   R   R	   RL   t   ReservedRM   R
   R5   t   OtherR   RH   RI   RJ   RN   t   InterpolRR   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR      sX   										c            B   su  e  Z d  Z d Z d g Z d g Z d g Z e j Z	 d Z
 d Z d Z d Z d	 Z d
 Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z i d e j f d e j d f d e j  d f e
 e! f e e! j" f e e# j$ f e e# j% f e e# j& f e e! j' f e e! j' f e e! j' f e e! j' f e e! j' f e e! j' f e e( f e e( f e e( f e e( f e e! j) f e e! j) f d e# j* f d e+ j, f d e+ j, f d e+ j- f d  e+ j. f e e/ f d! e( f d" e0 f d# e1 f d$ e1 f g d% 6d& e j f d e j d' f d( e j d) f d* e j f g d 6d+ e j2 f d e j  d) f d, e( f d- e j  f g d 6Z3 RS(.   s]   
    For Second Life's Linden Scripting Language source code.

    .. versionadded:: 2.0
    t   LSLt   lsls   *.lsls
   text/x-lsls(   \b(?:do|else|for|if|jump|return|while)\bs@   \b(?:float|integer|key|list|quaternion|rotation|string|vector)\bs   \b(?:(?:state)\s+\w+|default)\bsN  \b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\bs  \b(?:ll(?:ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|RequestPermissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\bs9   \b(?:DEG_TO_RAD|PI(?:_BY_TWO)?|RAD_TO_DEG|SQRT2|TWO_PI)\bs  \b(?:JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASSIVE|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_ON_REZ|NAME|DESC|POS|PRIM_EQUIVALENCE|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|ROO?T|VELOCITY|OWNER|GROUP|CREATOR|ATTACHED_POINT|RENDER_WEIGHT|PATHFINDING_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?))|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE|SET_MODE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[A-D]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\bs   \b(?:FALSE|TRUE)\bs   \b(?:ZERO_ROTATION)\bs   \b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\bs5   \b(?:TOUCH_INVALID_(?:TEXCOORD|VECTOR)|ZERO_VECTOR)\bs)   \b(?:LAND_(?:LARGE|MEDIUM|SMALL)_BRUSH)\bs/  \b(?:ATTACH_[LR]PEC|DATA_RATING|OBJECT_ATTACHMENT_(?:GEOMETRY_BYTES|SURFACE_AREA)|PRIM_(?:CAST_SHADOWS|MATERIAL_LIGHT|TYPE_LEGACY)|PSYS_SRC_(?:INNER|OUTER)ANGLE|VEHICLE_FLAG_NO_FLY_UP|ll(?:Cloud|Make(?:Explosion|Fountain|Smoke|Fire)|RemoteDataSetRegion|Sound(?:Preload)?|XorBase64Strings(?:Correct)?))\bs   \b(?:event)\bs+  \b(?:CHARACTER_(?:MAX_ANGULAR_(?:ACCEL|SPEED)|TURN_SPEED_MULTIPLIER)|PERMISSION_(?:CHANGE_(?:JOINTS|PERMISSIONS)|RELEASE_OWNERSHIP|REMAP_CONTROLS)|PRIM_PHYSICS_MATERIAL|PSYS_SRC_OBJ_REL_MASK|ll(?:CollisionSprite|(?:Stop)?PointAt|(?:(?:Refresh|Set)Prim)URL|(?:Take|Release)Camera|RemoteLoadScript))\bs>   \b(?:ll(?:GodLikeRezObject|Set(?:Inventory|Object)PermMask))\bs   \b(?:print)\bs-   \+\+|\-\-|<<|>>|&&?|\|\|?|\^|~|[!%<>=*+\-/]=?s   //.*?\ns   /\*t   commentR#   R&   s   \b([a-zA-Z_]\w*)\bs    (\d+\.\d*|\.\d+|\d+)[eE][+-]?\d*s   (\d+\.\d*|\.\d+)s   0[xX][0-9a-fA-F]+s   \d+s   :=?s   [,;{}()\[\]]s   \n+s   \s+R   s   [^*/]+s   #pushs   \*/s   #pops   [*/]s   \\([nt"\\])s   \\.s   [^"\\]+(4   R>   R?   R@   RA   RB   RC   RD   Rx   Rz   R{   t   lsl_keywordst	   lsl_typest
   lsl_statest
   lsl_eventst   lsl_functions_builtint   lsl_constants_floatt   lsl_constants_integert   lsl_constants_integer_booleant   lsl_constants_rotationt   lsl_constants_stringt   lsl_constants_vectort   lsl_invalid_brokent   lsl_invalid_deprecatedt   lsl_invalid_illegalt   lsl_invalid_unimplementedt   lsl_reserved_godmodet   lsl_reserved_logt   lsl_operatorsR   RG   RF   R   RN   R	   Ro   R
   RO   R5   RP   RM   R   R}   Rn   R   RH   RI   RJ   R   R   R   RQ   RR   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR     s~   														c        5  B   s  e  Z d  Z d Z d g Z d g Z e j e j BZ	 d Z
 dZ dZ dZ dZ dZ dZ dZ dZ dZ d Z dZ dZ dZ dZ i de f de j f de f de f de j df de f de e e  j! e  f de e" e  j!  f de# f ddj$ e  e# j% f ddj$ e ddd  e e" e  j&  f de e e" e  f ddj$ e  e e" e  j'  f ddj$ e  e  j( f ddj$ e  e  j! f ddj$ e  e" f ddj$ e  e" f ddj$ e  e  j! f ddj$ e  e  j! f ddj$ e  e  j! f ddj$ e  e  j) f ddj$ e  e  j! f ddj$ e  e  j! f ddj$ e  e  j! f de j* f de
 e  j+ f de, j- f de, j. f g d6de j df de j df de j f de j f g d6Z/ RS(  sV  
    For `AppleScript source code
    <http://developer.apple.com/documentation/AppleScript/
    Conceptual/AppleScriptLangGuide>`_,
    including `AppleScript Studio
    <http://developer.apple.com/documentation/AppleScript/
    Reference/StudioReference>`_.
    Contributed by Andreas Amann <aamann@mac.com>.

    .. versionadded:: 1.0
    t   AppleScriptt   applescripts   *.applescripts   [a-zA-Z]\w*s   current applicationt   falset   linefeeds   missing valuet   pit   quotet   resultRa   t   spacet   tabs   text item delimiterst   truet   versions   alias s   application s   boolean s   class s	   constant s   date s   file s   integer s   list s   number s   POSIX file s   real s   record s
   reference s
   RGB color s   script s   text s
   unit typess   (?:Unicode )?textR&   t
   attachments   attribute runt	   charactert   dayt   montht	   paragrapht   wordt   yeart   aboutt   abovet   againsts
   apart fromt   arounds
   aside fromt   att   belowt   beneatht   besidet   betweenRb   t   givens
   instead oft   ont   ontos   out oft   overt   sinces   ASCII (character|number)t   activatet   beeps
   choose URLs   choose applications   choose colors   choose file( name)?s   choose folders   choose from lists   choose remote applications   clipboard infos   close( access)?t   copyt   counts   current datet   delayt   deletes   display (alert|dialog)s   do shell scriptt	   duplicatet   existss   get eofs   get volume settingss   info fort   launchs   list (disks|folder)s   load scriptt   logt   makes   mount volumet   newt   offsets   open( (for access|location))?s   path tot   printt   quits   random numbert   readt   rounds   run( script)?t   says   scripting componentss!   set (eof|the clipboard to|volume)s   store scriptt	   summarizes   system attributes   system infos   the clipboards   time to GMTt   writes   quoted forms   (in )?back ofs   (in )?front ofs   [0-9]+(st|nd|rd|th)t   firstt   secondt   thirdt   fourtht   fiftht   sixtht   seventht   eightht   nintht   tentht   aftert   backt   beforet   behindt   everyt   frontR9   t   lastt   middlet   somet   thatt   throught   thrut   wheret   whoseRh   Ri   s   is equalt   equalss   (is )?equal tos   is nots   isn'ts   isn't equal( to)?s   is not equal( to)?s   doesn't equals   does not equals   (is )?greater thans   comes afters   is not less than or equal( to)?s   isn't less than or equal( to)?s   (is )?less thans   comes befores"   is not greater than or equal( to)?s!   isn't greater than or equal( to)?s"   (is  )?greater than or equal( to)?s   is not less thans   isn't less thans   does not come befores   doesn't come befores   (is )?less than or equal( to)?s   is not greater thans   isn't greater thans   does not come afters   doesn't come afters   starts? withs   begins? withs
   ends? withs	   contains?s   does not contains   doesn't contains   is ins   is contained bys	   is not ins   is not contained bys   isn't contained byt   divR2   Rj   s   (a  )?(ref( to)?|reference to)t   ist   doest   consideringRg   t   errort   exitRd   RX   t   ignoringRc   t   repeatt   tellRY   t   timest   tot   tryt   untils   using terms fromR_   t   whiths   with timeout( of)?s   with transactiont   byt   continuet   ends   its?t   met   myt   oft   ast   globalt   locals   prop(erty)?R+   t   gett   butt   putt	   returningt   thes   action cells   alert replyt   applicationt   boxs   browser( cell)?t   bundles   button( cell)?t   cells	   clip views
   color wells   color-panels   combo box( item)?t   controls%   data( (cell|column|item|row|source))?s   default entrys   dialog replyt   documents	   drag infot   drawert   events   font(-panel)?t	   formatters   image( (cell|view))?t   matrixs   menu( item)?t   items   movie( view)?s
   open-panels   outline viewt   panelt
   pasteboardt   plugins   popup buttons   progress indicatort	   responders
   save-panels   scroll views   secure text field( cell)?t   slidert   sounds
   split viewt   steppers   tab view( item)?s-   table( (column|header cell|header view|view))s   text( (field( cell)?|view))?s   toolbar( item)?s   user-defaultst   viewt   windows   accept outline drops   accept table dropt   actiont	   activateds   alert endeds   awake from nibs
   became keys   became mains   begin editings   bounds changeds
   cell values   cell value changeds   change cell values   change item valuet   changeds   child of items   choose menu itemt   clickeds   clicked toolbar itemt   closeds   column clickeds   column moveds   column resizeds   conclude drops   data representationt   deminiaturizeds   dialog endeds   document nib names   double clickeds    drag( (entered|exited|updated))?t   drops   end editingt   exposedt   idles   item expandables
   item values   item value changeds   items changeds   keyboard downs   keyboard upt   launcheds   load data representationt   miniaturizeds
   mouse downs   mouse draggeds   mouse entereds   mouse exiteds   mouse moveds   mouse upt   moveds   number of browser rowss   number of itemss   number of rowss   open untitledt   openeds   panel endeds   parameters updateds   plugin loadeds   prepare drops   prepare outline drags   prepare outline drops   prepare table drags   prepare table drops   read from files   resigned actives   resigned keys   resigned mains   resized( sub views)?s   right mouse downs   right mouse draggeds   right mouse ups   rows changeds   scroll wheels   selected tab view items   selection changeds   selection changings   should begin editings   should closes   should collapse items   should end editings   should expand items   should open( untitled)?s'   should quit( after last window closed)?s   should select columns   should select items   should select rows   should select tab view items   should selection changes   should zoomt   showns   update menu items   update parameterss   update toolbar items
   was hiddens   was miniaturizeds   will become actives
   will closes   will dismisss   will display browser cells   will display cells   will display item cells   will display outline cells   will finish launchings	   will hides   will miniaturizes	   will moves	   will opens   will pop ups	   will quits   will resign actives   will resize( sub views)?s   will select tab view items	   will shows	   will zooms   write to filet   zoomedt   animatet   appends   call methodt   centers   close drawers   close panelt   displays   display alerts   display dialogs   display panelt   got   hidet	   highlightt	   increments   item fors
   load images
   load movies   load nibs
   load panels
   load sounds   localized strings
   lock focuss   open drawers   path fort   pauses   perform actiont   playt   registert   resumet   scrolls   select( all)?t   shows   size to fitt   starts	   step backs   step forwardt   stopt   synchronizes   unlock focusR.   s   accepts arrow keys   action methodt   activet	   alignments   allowed identifierss   allows branch selections   allows column reorderings   allows column resizings   allows column selections   allows customizations   allows editing text attributess   allows empty selections   allows mixed states   allows multiple selections   allows reorderings   allows undos   alpha( value)?s   alternate images   alternate increment values   alternate titles   animation delays   associated file names   associated objects   auto completess   auto displays   auto enables itemss   auto repeats   auto resizes( outline column)?s   auto save expanded itemss   auto save names   auto save table columnss   auto saves configurations   auto scrolls   auto sizes all columns to fits   auto sizes cellss   background colors   bezel states   bezel stylet   bezeleds   border rects   border typet   bordereds   bounds( rotation)?s   box types   button returneds   button types   can choose directoriess   can choose filess   can draws   can hides$   cell( (background color|size|type))?t
   charactersRV   s   click counts   clicked( data)? columns   clicked data items   clicked( data)? rowt	   closeablet	   collatings   color( (mode|panel))s   command key downt   configurations#   content(s| (size|view( margins)?))?t   contextt
   continuouss   control key downs   control sizes   control tints   control views   controller visibles   coordinate systems   copies( on scroll)?s   corner views   current cells   current columns   current( field)?  editors   current( menu)? items   current rows   current tab view items   data sources   default identifierss   delta (x|y|z)s   destination windowt	   directorys   display modes   displayed cells   document( (edited|rect|view))?s   double values   dragged columns   dragged distances   dragged itemss   draws( cell)? backgrounds
   draws grids   dynamically scrollss   echos bulletst   edget   editables   edited( data)? columns   edited data items   edited( data)? rowt   enableds   enclosing scroll views   ending pages   error handlings   event numbers
   event types   excluded from windows menus   executable patht   expandeds
   fax numbers   field editors	   file kinds	   file names	   file types   first responders   first visible columnt   flippedt   floatings   font( panel)?s   frameworks patht	   frontmosts   gave ups
   grid colors   has data itemss   has horizontal rulers   has horizontal scrollers   has parent data items   has resize indicators
   has shadows   has sub menus   has vertical rulers   has vertical scrollers   header cells   header viewt   hiddens   hides when deactivateds   highlights bys   horizontal line scrolls   horizontal page scrolls   horizontal ruler views   horizontally resizables
   icon imaget   idt
   identifiers   ignores multiple clickss;   image( (alignment|dims when disabled|frame style|scaling))?s   imports graphicss   increment values   indentation per levelt   indeterminates   integer values   intercell spacings   item heights+   key( (code|equivalent( modifier)?|window))?s   knob thicknesst   labels   last( visible)? columns   leading offsett   leaft   levels   line scrollt   loadeds   localized sortt   locations	   loop modes   main( (bunde|menu|window))?s   marker follows cells   matrix modes   maximum( content)? sizes   maximum visible columnss   menu( form representation)?t   miniaturizables   minimized images   minimized titles   minimum column widths   minimum( content)? sizet   modalt   modifieds   mouse down states   movie( (controller|file|rect))?t   mutedRA   s   needs displays
   next states	   next texts   number of tick markss   only tick mark valuest   opaques
   open panels   option key downs   outline table columns   page scrolls   pages acrosss
   pages downs   palette labels   pane splitters   parent data items   parent windows   path( (names|separator))?t   playings   plays every frames   plays selection onlyt   positions   preferred edges   preferred typet   pressures   previous textt   promptt
   propertiess   prototype cells
   pulls downt   rates   released when closedt   repeateds   requested print times   required file typet	   resizables   resized columns   resource paths   returns recordss   reuses columnss	   rich texts	   roll overs
   row heights   rulers visibles
   save panels   scripts patht
   scrollables   selectable( identifiers)?s   selected cells   selected( data)? columns?s   selected data items?s   selected( data)? rows?s   selected item identifiers   selection by rects   send action on arrow keys   sends action when done editings   separates columnss   separator items   sequence numbers   services menus   shared frameworks paths   shared support patht   sheets   shift key downs   shows alphas   shows state bys   size( mode)?s   smart insert delete enableds   sort case sensitivitys   sort columns
   sort orders	   sort types   sorted( data rows)?s   source( mask)?s   spell checking enableds   starting paget   states   string values   sub menus
   super menus
   super views   tab key traverses cellss	   tab states   tab types   tab views
   table viewt   tags   target( printer)?s
   text colors   text container inserts   text container origins   text returneds   tick mark positions
   time stamps+   title(d| (cell|font|height|position|rect))?s   tool tipt   toolbars   trailing offsett   transparents   treat packages as directoriess   truncated labelst   typess   unmodified characterss   update viewss   use sort indicators   user defaultss   uses data sources
   uses rulers   uses threaded animations   uses title from previous columns   value wrapss0   vertical( (line scroll|page scroll|ruler view))?s   vertically resizables   visible( document rect)?t   volumet   widths   windows menut   wrapst   zoomables   \s+u   ¬\ns   's\s+s
   (--|#).*?$s   \(\*R   s
   [(){}!,.:]u   («)([^»]+)(»)sx   \b((?:considering|ignoring)\s*)(application responses|case|diacriticals|hyphens|numeric strings|punctuation|white space)u)   (-|\*|\+|&|≠|>=?|<=?|=|≥|≤|/|÷|\^)s   \b(%s)\bt   |s   ^(\s*(?:on|end)\s+)(%s)Nis   ^(\s*)(in|on|script|to)(\s+)s   \b(as )(%s)\bs
   \b(%s)s?\bs   "(\\\\|\\"|[^"])*"s&   [-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?s   [-+]?\d+R   s   #pushs   \*\)s   #pops   [^*(]+s   [*(](   R   s   current applicationR   R   s   missing valueR   R   s   results   returnR   R   s   text item delimitersR   s   version(   s   alias s   application s   boolean s   class s	   constant s   date s   file s   integer s   list s   number s   POSIX file s   real s   record s
   reference s
   RGB color s   script s   text s
   unit typess   (?:Unicode )?texts   string(   R   s   attribute runR   R   R   R   R   R   (   R   R   R   s
   apart fromR   s
   aside froms   atR   R   R   R   s   forR   s
   instead ofR   R   s   out ofR   R   (3   s   ASCII (character|number)R   R   s
   choose URLs   choose applications   choose colors   choose file( name)?s   choose folders   choose from lists   choose remote applications   clipboard infos   close( access)?s   copys   counts   current dateR   R   s   display (alert|dialog)s   do shell scriptR   s   existss   get eofs   get volume settingss   info forR   s   list (disks|folder)s   load scripts   logR   s   mount volumes   news   offsets   open( (for access|location))?s   path tos   prints   quits   random numbers   reads   rounds   run( script)?R   s   scripting componentss!   set (eof|the clipboard to|volume)s   store scriptR   s   system attributes   system infos   the clipboards   time to GMTs   writes   quoted form(   s   (in )?back ofs   (in )?front ofs   [0-9]+(st|nd|rd|th)R   R   R   R   R   R   R   R   R   R   s   afterR   R   R   R   R   s   indexR   R   R   R   R   R   R   R   (.   s   ands   ors   is equalR   s   (is )?equal tos   is nots   isn'ts   isn't equal( to)?s   is not equal( to)?s   doesn't equals   does not equals   (is )?greater thans   comes afters   is not less than or equal( to)?s   isn't less than or equal( to)?s   (is )?less thans   comes befores"   is not greater than or equal( to)?s!   isn't greater than or equal( to)?s"   (is  )?greater than or equal( to)?s   is not less thans   isn't less thans   does not come befores   doesn't come befores   (is )?less than or equal( to)?s   is not greater thans   isn't greater thans   does not come afters   doesn't come afters   starts? withs   begins? withs
   ends? withs	   contains?s   does not contains   doesn't contains   is ins   is contained bys	   is not ins   is not contained bys   isn't contained byR   s   mods   nots   (a  )?(ref( to)?|reference to)R   R   (   R   s   elses   errors   exits   froms   ifR   s   ins   repeats   tells   thens   timesR   R   R   s   using terms froms   whileR   s   with timeout( of)?s   with transactionR   R   s   ends   its?R   R   s   returnR   R   (   R   R   s   prop(erty)?s   sets   get(   R   R   R   R   (1   s   action cells   alert replyR   R   s   browser( cell)?R   s   button( cell)?R  s	   clip views
   color wells   color-panels   combo box( item)?R  s%   data( (cell|column|item|row|source))?s   default entrys   dialog replyR  s	   drag infoR  R  s   font(-panel)?R  s   image( (cell|view))?R  s   menu( item)?s   items   movie( view)?s
   open-panels   outline viewR	  R
  R  s   popup buttons   progress indicatorR  s
   save-panels   scroll views   secure text field( cell)?R  R  s
   split viewR  s   tab view( item)?s-   table( (column|header cell|header view|view))s   text( (field( cell)?|view))?s   toolbar( item)?s   user-defaultsR  R  (t   s   accept outline drops   accept table drops   actionR  s   alert endeds   awake from nibs
   became keys   became mains   begin editings   bounds changeds
   cell values   cell value changeds   change cell values   change item valueR  s   child of items   choose menu itemR  s   clicked toolbar items   closeds   column clickeds   column moveds   column resizeds   conclude drops   data representationR  s   dialog endeds   document nib names   double clickeds    drag( (entered|exited|updated))?R  s   end editingR  R  s   item expandables
   item values   item value changeds   items changeds   keyboard downs   keyboard upR  s   load data representationR  s
   mouse downs   mouse draggeds   mouse entereds   mouse exiteds   mouse moveds   mouse upR  s   number of browser rowss   number of itemss   number of rowss   open untitledR  s   panel endeds   parameters updateds   plugin loadeds   prepare drops   prepare outline drags   prepare outline drops   prepare table drags   prepare table drops   read from files   resigned actives   resigned keys   resigned mains   resized( sub views)?s   right mouse downs   right mouse draggeds   right mouse ups   rows changeds   scroll wheels   selected tab view items   selection changeds   selection changings   should begin editings   should closes   should collapse items   should end editings   should expand items   should open( untitled)?s'   should quit( after last window closed)?s   should select columns   should select items   should select rows   should select tab view items   should selection changes   should zoomR  s   update menu items   update parameterss   update toolbar items
   was hiddens   was miniaturizeds   will become actives
   will closes   will dismisss   will display browser cells   will display cells   will display item cells   will display outline cells   will finish launchings	   will hides   will miniaturizes	   will moves	   will opens   will pop ups	   will quits   will resign actives   will resize( sub views)?s   will select tab view items	   will shows	   will zooms   write to fileR   ()   R!  s   appends   call methods   centers   close drawers   close panelR$  s   display alerts   display dialogs   display panelR%  R&  R'  R(  s   item fors
   load images
   load movies   load nibs
   load panels
   load sounds   localized strings
   lock focuss   logs   open drawers   path fors   pauses   perform actionR*  s   registerR,  R-  s   select( all)?R.  s   size to fits   starts	   step backs   step forwards   stopR1  s   unlock focuss   update(5  s   accepts arrow keys   action methodR2  R3  s   allowed identifierss   allows branch selections   allows column reorderings   allows column resizings   allows column selections   allows customizations   allows editing text attributess   allows empty selections   allows mixed states   allows multiple selections   allows reorderings   allows undos   alpha( value)?s   alternate images   alternate increment values   alternate titles   animation delays   associated file names   associated objects   auto completess   auto displays   auto enables itemss   auto repeats   auto resizes( outline column)?s   auto save expanded itemss   auto save names   auto save table columnss   auto saves configurations   auto scrolls   auto sizes all columns to fits   auto sizes cellss   background colors   bezel states   bezel styleR4  s   border rects   border typeR5  s   bounds( rotation)?s   box types   button returneds   button types   can choose directoriess   can choose filess   can draws   can hides$   cell( (background color|size|type))?R6  s   classs   click counts   clicked( data)? columns   clicked data items   clicked( data)? rowR7  R8  s   color( (mode|panel))s   command key downR9  s#   content(s| (size|view( margins)?))?R:  R;  s   control key downs   control sizes   control tints   control views   controller visibles   coordinate systems   copies( on scroll)?s   corner views   current cells   current columns   current( field)?  editors   current( menu)? items   current rows   current tab view items   data sources   default identifierss   delta (x|y|z)s   destination windowR<  s   display modes   displayed cells   document( (edited|rect|view))?s   double values   dragged columns   dragged distances   dragged itemss   draws( cell)? backgrounds
   draws grids   dynamically scrollss   echos bulletsR=  R>  s   edited( data)? columns   edited data items   edited( data)? rowR?  s   enclosing scroll views   ending pages   error handlings   event numbers
   event types   excluded from windows menus   executable pathR@  s
   fax numbers   field editors	   file kinds	   file names	   file types   first responders   first visible columnRA  RB  s   font( panel)?R  s   frameworks pathRC  s   gave ups
   grid colors   has data itemss   has horizontal rulers   has horizontal scrollers   has parent data items   has resize indicators
   has shadows   has sub menus   has vertical rulers   has vertical scrollers   header cells   header viewRD  s   hides when deactivateds   highlights bys   horizontal line scrolls   horizontal page scrolls   horizontal ruler views   horizontally resizables
   icon images   idRF  s   ignores multiple clickss;   image( (alignment|dims when disabled|frame style|scaling))?s   imports graphicss   increment values   indentation per levelRG  s   indexs   integer values   intercell spacings   item heights+   key( (code|equivalent( modifier)?|window))?s   knob thicknessRH  s   last( visible)? columns   leading offsetRI  s   levels   line scrollRK  s   localized sortRL  s	   loop modes   main( (bunde|menu|window))?s   marker follows cells   matrix modes   maximum( content)? sizes   maximum visible columnss   menu( form representation)?RM  R  s   minimized images   minimized titles   minimum column widths   minimum( content)? sizeRN  RO  s   mouse down states   movie( (controller|file|rect))?RP  s   names   needs displays
   next states	   next texts   number of tick markss   only tick mark valuesRQ  s
   open panels   option key downs   outline table columns   page scrolls   pages acrosss
   pages downs   palette labels   pane splitters   parent data items   parent windowR
  s   path( (names|separator))?RR  s   plays every frames   plays selection onlyRS  s   preferred edges   preferred typeRT  s   previous texts   promptRV  s   prototype cells
   pulls downRW  s   released when closedRX  s   requested print times   required file typeRY  s   resized columns   resource paths   returns recordss   reuses columnss	   rich texts	   roll overs
   row heights   rulers visibles
   save panels   scripts pathRZ  s   selectable( identifiers)?s   selected cells   selected( data)? columns?s   selected data items?s   selected( data)? rows?s   selected item identifiers   selection by rects   send action on arrow keys   sends action when done editings   separates columnss   separator items   sequence numbers   services menus   shared frameworks paths   shared support pathR[  s   shift key downs   shows alphas   shows state bys   size( mode)?s   smart insert delete enableds   sort case sensitivitys   sort columns
   sort orders	   sort types   sorted( data rows)?R  s   source( mask)?s   spell checking enableds   starting pages   states   string values   sub menus
   super menus
   super views   tab key traverses cellss	   tab states   tab types   tab views
   table viewR]  s   target( printer)?s
   text colors   text container inserts   text container origins   text returneds   tick mark positions
   time stamps+   title(d| (cell|font|height|position|rect))?s   tool tipR^  s   trailing offsetR_  s   treat packages as directoriess   truncated labelss   typess   unmodified characterss   update viewss   use sort indicators   user defaultss   uses data sources
   uses rulers   uses threaded animations   uses title from previous columns   value wrapss   versions0   vertical( (line scroll|page scroll|ruler view))?s   vertically resizableR  s   visible( document rect)?Ra  s   widthR  s   windows menuRc  Rd  R   (0   R>   R?   R@   RA   RB   RC   Rx   Rz   Ry   R{   t   Identifierst   Literalst   Classest   BuiltInt   HandlerParamst   Commandst
   Referencest	   Operatorst   Controlt   DeclarationsR}   t   StudioClassest   StudioEventst   StudioCommandst   StudioPropertiesR   R   RQ   R   RF   R   R   R
   R5   R	   R   t   joinRK   RP   RO   RM   t	   AttributeRN   Rn   R   RH   RJ   RR   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR   m  sR  		                                                                                                                                                                                                                                               					c        D   B   sp  e  Z d  Z d Z d d g Z d d d d g Z d g Z e j Z	 i d	 e
 f d
 e j d f d e d f d e d f d e f d e e j e
 e e
 e j  f d e e j e
 e  f e d  e d  e d  d e f g d 6e du dZ d[ e e j e
 e  f g d 6d\ e j f g d 6d] e f g d 6d^ e f d_ e f d e d` f da e d` f g d 6db e f dc e f dd e d` f da e d` f g d 6de e j f df e j d` f dg e j f g d 6Z dh   Z e di  Z e dj  Z e dk  Z e dl  Z  e dm  Z! e dn  Z" e do  Z# e dp f e dq f e dr f e" dr f e  dr f e! ds f e# dp f f Z$ dt   Z% RS(v   s:  
    `Rexx <http://www.rexxinfo.org/>`_ is a scripting language available for
    a wide range of different platforms with its roots found on mainframe
    systems. It is popular for I/O- and data based tasks and can act as glue
    language to bind different applications together.

    .. versionadded:: 2.0
    t   Rexxt   rexxt   arexxs   *.rexxs   *.rexs   *.rxs   *.arexxs   text/x-rexxs   \ss   /\*R   R#   t   string_doubleR    t   string_singles   [0-9]+(\.[0-9]+)?(e[+-]?[0-9])?s%   ([a-z_]\w*)(\s*)(:)(\s*)(procedure)\bs   ([a-z_]\w*)(\s*)(:)t   functiont   keywordt   operators	   [a-z_]\w*R   t   abbrevt   abst   addresst   argt   b2xt   bitandt   bitort   bitxort   c2dt   c2xR#  t   charint   charoutt   charst   comparet	   conditiont   copiest   d2ct   d2xt   datatypet   datet   delstrt   delwordt   digitst	   errortextt   formt   formatt   fuzzt   insertt   lastpost   leftt   lengtht   lineint   lineoutt   linest   maxt   mint   overlayt   post   queuedt   randomt   reverset   rightt   signt
   sourcelineR   t   streamt   stript   substrt   subwordt   symbolt   timet   tracet	   translatet   truncR;   t   verifyR   t	   wordindext
   wordlengtht   wordposR   t   x2bt   x2ct   x2dt   xrangeRm   s	   (\s*)(\()s   (address|arg|by|call|do|drop|else|end|exit|for|forever|if|interpret|iterate|leave|nop|numeric|off|on|options|parse|pull|push|queue|return|say|select|signal|to|then|trace|until|while)\bs   (-|//|/|\(|\)|\*\*|\*|\\<<|\\<|\\==|\\=|\\>>|\\>|\\|\|\||\||&&|&|%|\+|<<=|<<|<=|<>|<|==|=|><|>=|>>=|>>|>|¬<<|¬<|¬==|¬=|¬>>|¬>|¬|\.|,)s   [^"\n]+s   ""s   #pops   \ns   [^\'\n]s   \'\'s   \'s   [^*]+s   \*/s   \*c         C   s   t  j |  t  j  S(   N(   Rx   t   compileRz   (   t   s(    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyt   <lambda>  s    s   ^\s*address\s+command\bs   ^\s*address\s+s   ^\s*do\s+while\bs   ^\s*if\b.+\bthen\s+do\s*$s)   ^\s*([a-z_]\w*)(\s*)(:)(\s*)(procedure)\bs   \belse\s+do\s*$s$   ^\s*parse\s+(upper\s+)?(arg|value)\bg?g?g?g      ?c            sk   t  j d |  t  j  r d S|  j d  rg |  j     t   f d   t j D  d } t | d  Sd S(   sr   
        Check for inital comment and patterns that distinguish Rexx from other
        C-like languages.
        s   /\*\**\s*rexxg      ?s   /*c         3   s*   |  ]  \ } } | j     r | Vq d  S(   N(   t   search(   t   .0t   patternt   weight(   t	   lowerText(    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pys	   <genexpr>  s   	g{Gz?N(	   Rx   R  t
   IGNORECASEt
   startswitht   lowert   sumR   t   PATTERNS_AND_WEIGHTSR  (   R8   R   (    (   R  s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyt   analyse_text  s    (B   R~  s   absR  s   argR  R  R  R  R  R  s   centerR  R  s   charsR  R  R  R  R  R  R  R  R  R  R  R  s   formatR  s   insertR  R  R  R  R  s   liness   maxs   minR  s   posR  R  s   reverseR  R  R  s   spaces   streams   stripR  R  R  R  R  s	   translateR  s   valueR  s   wordR  R  R  s   wordsR  R  R  s   xrange(&   R>   R?   R@   RA   RB   RC   RD   Rx   R  R{   R   R   RF   R   R   R   R
   RP   R   R	   RL   t   LabelR   R   R   R5   R}   RR   t   _ct   _ADDRESS_COMMAND_PATTERNt   _ADDRESS_PATTERNt   _DO_WHILE_PATTERNt   _IF_THEN_DO_PATTERNt   _PROCEDURE_PATTERNt   _ELSE_DO_PATTERNt   _PARSE_ARG_PATTERNR  R  (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR     s   							         											c           B   s   e  Z d  Z d Z d g Z d d g Z d g Z i d e j f d e	 f d e
 j f d	 e
 j f d
 e f d e
 j f d e
 j j f d e f d e f d e f d e e
 j e  f d e f g d 6Z RS(   so   
    For `MOOCode <http://www.moo.mud.org/>`_ (the MOO scripting
    language).

    .. versionadded:: 0.9
    t   MOOCodes   *.moot   moocodet   moos   text/x-moocodes   (0|[1-9][0-9_]*)s   "(\\\\|\\"|[^"])*"s   (E_PERM|E_DIV)s   ((#[-0-9]+)|(\$\w+))st   \b(if|else|elseif|endif|for|endfor|fork|endfork|while|endwhile|break|continue|return|try|except|endtry|finally|in)\bs   (random|length)s   (player|caller|this|args)s   \s+s   \ns   ([!;=,{}&|:.\[\]@()<>?]+)s	   (\w+)(\()s   (\w+)R   (   R>   R?   R@   RA   RC   RB   RD   R   RJ   R   R
   t	   Exceptiont   EntityR	   R5   Rn   t   InstanceR   R   R   RP   RR   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR   !  s&   						c           B   s  e  Z d  Z d Z d d g Z d d g Z d d g Z e j e j	 BZ
 i d e e e j e e  f d	 e f d
 e j f d e j f d e j f d e f d e j f d e j f d e e j e  d f d e e j e  d f e d d d e j f e d d d e j f d e f d e j f d e e e j  f d e j f d e f d e f d e j  f d e j! f d e j" f d e f g d 6d e j# d f g d 6d e j d f g d 6Z$ RS(   s\   
    For `Hybris <http://www.hybris-lang.org>`_ source code.

    .. versionadded:: 1.4
    t   Hybrist   hybrist   hys   *.hys   *.hybs   text/x-hybriss   application/x-hybriss>   ^(\s*(?:function|method|operator\s+)+?)([a-zA-Z_]\w*)(\s*)(\()s   [^\S\n]+s   //.*?\ns	   /\*.*?\*/s   @[a-zA-Z_][\w.]*so   (break|case|catch|next|default|do|else|finally|for|foreach|of|unless|if|new|return|switch|me|throw|try|while)\bsK   (extends|private|protected|public|static|throws|function|method|operator)\bsK   (true|false|null|__FILE__|__LINE__|__VERSION__|__LIB_PATH__|__INC_PATH__)\bs   (class|struct)(\s+)RV   s   (import|include)(\s+)R]   t
   gc_collectt   gc_mm_itemst   gc_mm_usaget   gc_collect_thresholdt	   urlencodet	   urldecodet   base64encodet   base64decodet   sha1t   crc32t   sha2t   md5t   md5_filet   acost   asint   atant   atan2t   ceilt   cost   cosht   expt   fabst   floort   fmodR   t   log10t   powt   sint   sinht   sqrtt   tant   tanht   isintt   isfloatt   ischart   isstringt   isarrayt   ismapt   isaliast   typeoft   sizeoft   tointt   tostringt   fromxmlt   toxmlt   binaryt   packt   loadt   evalt	   var_namest
   var_valuest   user_functionst   dyn_functionst   methodst   callt   call_methodt   mknodt   mkfifot   mountt   umount2t   umountt   tickst   usleept   sleepR  t   strtimet   strdatet   dllopent   dlllinkt   dllcallt   dllcall_argvt   dllcloset   envt   exect   forkt   getpidt   waitt   popent   pcloseR   t   killt   pthread_createt   pthread_create_argvt   pthread_exitt   pthread_joint   pthread_killt	   smtp_sendt   http_gett	   http_postt   http_downloadt   sockett   bindt   listent   acceptt   getsocknamet   getpeernamet
   settimeoutt   connectt   servert   recvt   sendt   closeR   t   printlnt   printft   inputt   readlinet   serial_opent   serial_fcntlt   serial_get_attrt   serial_get_ispeedt   serial_get_ospeedt   serial_set_attrt   serial_set_ispeedt   serial_set_ospeedt   serial_writet   serial_readt   serial_closet   xml_loadt	   xml_parset   fopent   fseekt   ftellt   fsizet   freadt   fwritet   fgetst   fcloset   filet   readdirt   pcre_replacet   sizet   popt   unmapt   hast   keyst   valuesR  t   findR  t   replaceR6   t   trimt   removet   containsRt  Rm   s   \bt   MethodReferencet   Runnert   Dllt   Threadt   Pipet   Processt   Runnablet   CGIt   ClientSockett   Sockett   ServerSockett   Filet   Consolet	   DirectoryR  s   "(\\\\|\\"|[^"])*"s   '\\.'|'[^\\]'|'\\u[0-9a-f]{4}'s   (\.)([a-zA-Z_]\w*)s   [a-zA-Z_]\w*:s   [a-zA-Z_$]\w*s   [~^*!%&\[\](){}<>|+=:;,./?\-@]+s%   [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?s   0x[0-9a-f]+s   [0-9]+L?s   \nR   s   [a-zA-Z_]\w*s   #pops	   [\w.]+\*?(   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   logR  s   powR  R  R  R  R  R  R  R  s   isstringR  R  R   R  R  R  R  R  R  R  R  s   loads   evalR  R  R  R  R  s   callR  s   mknods   mkfifoR  R  R  R  R  R  s   timeR  R  R  R  R  R  R   s   envs   execs   forks   getpids   waits   popenR'  s   exits   killR)  R*  R+  R,  R-  R.  R/  R0  R1  R2  R3  R4  R5  R6  R7  R8  R9  R:  R;  s   sends   closes   printR>  R?  s   inputs   readlineRB  RC  RD  RE  RF  RG  RH  RI  RJ  RK  RL  RM  RN  RO  RP  RQ  RR  RS  RT  RU  RV  s   fileRX  RY  s   sizes   popR\  R]  s   keyss   valuess   lengths   finds   substrs   replaces   splitRb  s   removeRd  s   join(   Re  Rf  Rg  Rh  Ri  Rj  Rk  Rl  Rm  Rn  Ro  Rp  Rq  Rr  s	   Exception(%   R>   R?   R@   RA   RB   RC   RD   Rx   Rz   Ry   R{   R   R	   R
   RP   R   R   R   RG   RF   t	   DecoratorRL   RM   t	   NamespaceR   R5   Ro   R   t   CharRu  R  R   RH   RI   RJ   RO   RR   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyR   L  s~   			                   	  				(!   R@   Rx   t   pygments.lexerR    R   R   R   R   R   t   pygments.tokenR   R   R   R	   R
   R   R   R   R   R   t   pygments.utilR   R   R   t   __all__R   R   R   R   R   R   R   R   (    (    (    s=   /usr/lib/python2.7/dist-packages/pygments/lexers/scripting.pyt   <module>
   s   .F{DBT Dq+