2024-08-02 20:03:49 +00:00
<lexer >
<config >
<name > AppleScript</name>
<alias > applescript</alias>
<filename > *.applescript</filename>
<dot_all > true</dot_all>
</config>
<rules >
<state name= "root" >
<rule pattern= "\s+" >
<token type= "Text" />
</rule>
<rule pattern= "¬\n" >
<token type= "LiteralStringEscape" />
</rule>
<rule pattern= "'s\s+" >
<token type= "Text" />
</rule>
<rule pattern= "(--|#).*?$" >
<token type= "Comment" />
</rule>
<rule pattern= "\(\*" >
<token type= "CommentMultiline" />
<push state= "comment" />
</rule>
<rule pattern= "[(){}!,.:]" >
<token type= "Punctuation" />
</rule>
<rule pattern= "(«)([^»]+)(»)" >
<bygroups >
<token type= "Text" />
<token type= "NameBuiltin" />
<token type= "Text" />
</bygroups>
</rule>
<rule pattern= "\b((?:considering|ignoring)\s*)(application responses|case|diacriticals|hyphens|numeric strings|punctuation|white space)" >
<bygroups >
<token type= "Keyword" />
<token type= "NameBuiltin" />
</bygroups>
</rule>
<rule pattern= "(-|\*|\+|&|≠|>=?|<=?|=|≥|≤|/|÷|\^)" >
<token type= "Operator" />
</rule>
<rule pattern= "\b(and|or|is equal|equals|(is )?equal to|is not|isn't|isn't equal( to)?|is not equal( to)?|doesn't equal|does not equal|(is )?greater than|comes after|is not less than or equal( to)?|isn't less than or equal( to)?|(is )?less than|comes before|is not greater than or equal( to)?|isn't greater than or equal( to)?|(is )?greater than or equal( to)?|is not less than|isn't less than|does not come before|doesn't come before|(is )?less than or equal( to)?|is not greater than|isn't greater than|does not come after|doesn't come after|starts? with|begins? with|ends? with|contains?|does not contain|doesn't contain|is in|is contained by|is not in|is not contained by|isn't contained by|div|mod|not|(a )?(ref( to)?|reference to)|is|does)\b" >
<token type= "OperatorWord" />
</rule>
<rule pattern= "^(\s*(?:on|end)\s+)(zoomed|write to file|will zoom|will show|will select tab view item|will resize( sub views)?|will resign active|will quit|will pop up|will open|will move|will miniaturize|will hide|will finish launching|will display outline cell|will display item cell|will display cell|will display browser cell|will dismiss|will close|will become active|was miniaturized|was hidden|update toolbar item|update parameters|update menu item|shown|should zoom|should selection change|should select tab view item|should select row|should select item|should select column|should quit( after last window closed)?|should open( untitled)?|should expand item|should end editing|should collapse item|should close|should begin editing|selection changing|selection changed|selected tab view item|scroll wheel|rows changed|right mouse up|right mouse dragged|right mouse down|resized( sub views)?|resigned main|resigned key|resigned active|read from file|prepare table drop|prepare table drag|prepare outline drop|prepare outline drag|prepare drop|plugin loaded|parameters updated|panel ended|opened|open untitled|number of rows|number of items|number of browser rows|moved|mouse up|mouse moved|mouse exited|mouse entered|mouse dragged|mouse down|miniaturized|load data representation|launched|keyboard up|keyboard down|items changed|item value changed|item value|item expandable|idle|exposed|end editing|drop|drag( (entered|exited|updated))?|double clicked|document nib name|dialog ended|deminiaturized|data representation|conclude drop|column resized|column moved|column clicked|closed|clicked toolbar item|clicked|choose menu item|child of item|changed|change item value|change cell value|cell value changed|cell value|bounds changed|begin editing|became main|became key|awake from nib|alert ended|activated|action|accept table drop|accept outline drop)" >
<bygroups >
<token type= "Keyword" />
<token type= "NameFunction" />
</bygroups>
</rule>
<rule pattern= "^(\s*)(in|on|script|to)(\s+)" >
<bygroups >
<token type= "Text" />
<token type= "Keyword" />
<token type= "Text" />
</bygroups>
</rule>
<rule pattern= "\b(as )(alias |application |boolean |class |constant |date |file |integer |list |number |POSIX file |real |record |reference |RGB color |script |text |unit types|(?:Unicode )?text|string)\b" >
<bygroups >
<token type= "Keyword" />
<token type= "NameClass" />
</bygroups>
</rule>
<rule pattern= "\b(AppleScript|current application|false|linefeed|missing value|pi|quote|result|return|space|tab|text item delimiters|true|version)\b" >
<token type= "NameConstant" />
</rule>
<rule pattern= "\b(ASCII (character|number)|activate|beep|choose URL|choose application|choose color|choose file( name)?|choose folder|choose from list|choose remote application|clipboard info|close( access)?|copy|count|current date|delay|delete|display (alert|dialog)|do shell script|duplicate|exists|get eof|get volume settings|info for|launch|list (disks|folder)|load script|log|make|mount volume|new|offset|open( (for access|location))?|path to|print|quit|random number|read|round|run( script)?|say|scripting components|set (eof|the clipboard to|volume)|store script|summarize|system attribute|system info|the clipboard|time to GMT|write|quoted form)\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b(considering|else|error|exit|from|if|ignoring|in|repeat|tell|then|times|to|try|until|using terms from|while|with|with timeout( of)?|with transaction|by|continue|end|its?|me|my|return|of|as)\b" >
<token type= "Keyword" />
</rule>
<rule pattern= "\b(global|local|prop(erty)?|set|get)\b" >
<token type= "Keyword" />
</rule>
<rule pattern= "\b(but|put|returning|the)\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b(attachment|attribute run|character|day|month|paragraph|word|year)s?\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b(about|above|against|apart from|around|aside from|at|below|beneath|beside|between|for|given|instead of|on|onto|out of|over|since)\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b(accepts a r r o w k e y | a c t i o n m e t h o d | a c t i v e | a l i g n m e n t | a l l o w e d i d e n t i f i e r s | a l l o w s b r a n c h s e l e c t i o n | a l l o w s c o l u m n r e o r d e r i n g | a l l o w s c o l u m n r e s i z i n g | a l l o w s c o l u m n s e l e c t i o n | a l l o w s c u s t o m i z a t i o n | a l l o w s e d i t i n g t e x t a t t r i b u t e s | a l l o w s e m p t y s e l e c t i o n | a l l o w s m i x e d s t a t e | a l l o w s m u l t i p l e s e l e c t i o n | a l l o w s r e o r d e r i n g | a l l o w s u n d o | a l p h a ( v a l u e ) ? | a l t e r n a t e i m a g e | a l t e r n a t e i n c r e m e n t v a l u e | a l t e r n a t e t i t l e | a n i m a t i o n d e l a y | a s s o c i a t e d f i l e n a m e | a s s o c i a t e d o b j e c t | a u t o c o m p l e t e s | a u t o d i s p l a y | a u t o e n a b l e s i t e m s | a u t o r e p e a t | a u t o r e s i z e s ( o u t l i n e c o l u m n ) ? | a u t o s a v e e x p a n d e d i t e m s | a u t o s a v e n a m e | a u t o s a v e t a b l e c o l u m n s | a u t o s a v e s c o n f i g u r a t i o n | a u t o s c r o l l | a u t o s i z e s a l l c o l u m n s t o f i t | a u t o s i z e s c e l l s | b a c k g r o u n d c o l o r | b e z e l s t a t e | b e z e l s t y l e | b e z e l e d | b o r d e r r e c t | b o r d e r t y p e | b o r d e r e d | b o u n d s ( r o t a t i o n ) ? | b o x t y p e | b u t t o n r e t u r n e d | b u t t o n t y p e | c a n c h o o s e d i r e c t o r i e s | c a n c h o o s e f i l e s | c a n d r a w | c a n h i d e | c e l l ( ( b a c k g r o u n d c o l o r | s i z e | t y p e ) ) ? | c h a r a c t e r s | c l a s s | c l i c k c o u n t | c l i c k e d ( d a t a ) ? c o l u m n | c l i c k e d d a t a i t e m | c l i c k e d ( d a t a ) ? r o w | c l o s e a b l e | c o l l a t i n g | c o l o r ( ( m o d e | p a n e l ) ) | c o m m a n d k e y d o w n | c o n f i g u r a t i o n | c o n t e n t ( s | ( s i z e | v i e w ( m a r g i n s ) ? ) ) ? | c o n t e x t | c o n t i n u o u s | c o n t r o l k e y d o w n | c o n t r o l s i z e | c o n t r o l t i n t | c o n t r o l v i e w | c o n t r o l l e r v i s i b l e | c o o r d i n a t e s y s t e m | c o p i e s ( o n s c r o l l ) ? | c o r n e r v i e w | c u r r e n t c e l l | c u r r e n t c o l u m n | c u r r e n t ( f i e l d ) ? e d i t o r | c u r r e n t ( m e n u ) ? i t e m | c u r r e n t r o w | c u r r e n t t a b v i e w i t e m | d a t a s o u r c e | d e f a u l t i d e n t i f i e r s | d e l t a ( x | y | z ) | d e s t i n a t i o n w i n d o w | d i r e c t o r y | d i s p l a y m o d e | d i s p l a y e d c e l l | d o c u m e n t ( ( e d i t e d | r e c t | v i e w ) ) ? | d o u b l e v a l u e | d r a g g e d c o l u m n | d r a g g e d d i s t a n c e | d r a g g e d i t e m s | d r a w s ( c e l l ) ? b a c k g r o u n d | d r a w s g r i d | d y n a m i c a l l y s c r o l l s | e c h o s b u l l e t s | e d g e | e d i t a b l e | e d i t e d ( d a t a ) ? c o l u m n | e d i t e d d a t a i t e m | e d i t e d ( d a t a ) ? r o w | e n a b l e d | e n c l o s i n g s c r o l l v i e w | e n d i n g p a g e | e r r o r h a n d l i n g | e v e n t n u m b e r | e v e n t t y p e | e x c l u d e d f r o m w i n d o w s m e n u | e x e c u t a b l e p a t h | e x p a n d e d | f a x n u m b e r | f i e l d e d i t o r | f i l e k i n d | f i l e n a m e | f i l e t y p e | f i r s t r e s p o n d e r | f i r s t v i s i b l e c o l u m n | f l i p p e d | f l o a t i n g | f o n t ( p a n e l ) ? | f o r m a t t e r | f r a m e w o r k s p a t h | f r o n t m o s t | g a v e u p | g r i d c o l o r | h a s d a t a i t e m s | h a s h o r i z o n t a l r u l e r | h a s h o r i z o n t a l s c r o l l e r | h a s p a r e n t d a t a i t e m | h a s r e s i z e i n d i c a t o r | h a s s h a d o w | h a s s u b m e n u | h a s v e r t i c a l r u l e r | h a s v e r t i c a l s c r o l l e r | h e a d e r c e l l | h e a d e r v i e w | h i d d e n | h i d e s w h e n d e a c t i v a t e d | h i g h l i g h t s b y | h o r i z o n t a l l i n e s c r o l l | h o r i z o n t a l p a g e s c r o l l | h o r i z o n t a l r u l e r v i e w | h o r i z o n t a l l y r e s i z a b l e | i c o n i m a g e | i d | i d e n t i f i e r | i g n o r e s m u l t i p l e c l i c k s | i m a g e ( ( a l i g n m e n t | d i m s w h e n d i s a b l e d | f r a m e s t y l e | s c a l i n g ) ) ? | i m p o r t s g r a p h i c s | i n c r e m e n t v a l u e | i n d e n t a t i o n p e r l e v e l | i n d e t e r m i n a t e | i n d e x | i n t e g e r v a l u e | i n t e r c e l l s p a c i n g | i t e m h e i g h t | k e y ( ( c o d e | e q u i v a l e n t ( m o d i f i e r ) ? | w i n d o w ) ) ? | k n o b t h i c k n e s s | l a b e l | l a s t ( v i s i b l e ) ? c o l u m n | l e a d i n g o f f s e t | l e a f | l e v e l | l i n e s c r o l l | l o a d e d | l o c a l i z e d s o r t | l o c a t i o n | l o o p m o d e | m a i n ( ( b u n d e | m e n u | w i n d o w ) ) ? | m a r k e r f o l l o w s c e l l | m a t r i x m o d e | m a x i m u m ( c o n t e n t ) ? s i z e | m a x i m u m v i s i b l e c o l u m n s | m e n u ( f o r m r e p r e s e n t a t i o n ) ? | m i n i a t u r i z a b l e | m i n i a t u r i z e d | m i n i m i z e d i m a g e | m i n i m i z e d t i t l e | m i n i m u m c o l u m n w i d t h | m i n i m u m ( c o n t e n t ) ? s i z e | m o d a l | m o d i f i e d | m o u s e d o w n s t a t e | m o v i e ( ( c o n t r o l l e r | f i l e | r e c t ) ) ? | m u t e d | n a m e | n e e d s d i s p l a y | n e x t s t a t e | n e x t t e x t | n u m b e r o f t i c k m a r k s | o n l y t i c k m a r k v a l u e s | o p a q u e | o p e n p a n e l | o p t i o n k e y d o w n | o u t l i n e t a b l e c o l u m n | p a g e s c r o l l | p a g e s a c r o s s | p a g e s d o w n | p a l e t t e l a b e l | p a n e s p l i t t e r | p a r e n t d a t a i t e m | p a r e n t w i n d o w | p a s t e b o a r d | p a t h ( ( n a m e s | s e p a r a t o r ) ) ? | p l a y i n g | p l a y s e v e r y f r a m e | p l a y s s e l e c t i o n o n l y | p o s i t i o n | p r e f e r r e d e d g e | p r e f e r r e d t y p e | p r e s s u r e | p r e v i o u s t e x t | p r o m p t | p r o p e r t i e s | p r o t o t y p e c e l l | p u l l s d o w n | r a t e | r e l e a s e d w h e n c l o s e d | r e p e a t e d | r e q u e s t e d p r i n t t i m e | r e q u i r e d f i l e t y p e | r e s i z a b l e | r e s i z e d c o l u m n | r e s o u r c e p a t h | r e t u r n s r e c o r d s | r e u s e s c o l u m n s | r i c h t e x t | r o l l o v e r | r o w h e i g h t | r u l e r s v i s i b l e | s a v e p a n e l | s c r i p t s p a t h | s c r o l l a b l e | s e l e c t a b l e ( i d e n t i f i e r s ) ? | s e l e c t e d c e l l | s e l e c t e d ( d a t a ) ? c o l u m n s ? | s e l e c t e d d a t a i t e m s ? | s e l e c t e d ( d a t a ) ? r o w s ? | s e l e c t e d i t e m i d e n t i f i e r | s e l e c t i o n b y r e c t | s e n d a c t i o n o n a r r o w k e y | s e n d s a c t i o n w h e n d o n e e d i t i n g | s e p a r a t e s c o l u m n s | s e p a r a t o r i t e m | s e q u e n c e n u m b e r | s e r v i c e s m e n u | s h a r e d f r a m e w o r k s p a t h | s h a r e d s u p p o r t p a t h | s h e e t | s h i f t k e y d o w n | s h o w s a l p h a | s h o w s s t a t e b y | s i z e ( m o d e ) ? | s m a r t
<token type= "NameAttribute" />
</rule>
<rule pattern= "\b(action cell|alert reply|application|box|browser( cell)?|bundle|button( cell)?|cell|clip view|color well|color-panel|combo box( item)?|control|data( (cell|column|item|row|source))?|default entry|dialog reply|document|drag info|drawer|event|font(-panel)?|formatter|image( (cell|view))?|matrix|menu( item)?|item|movie( view)?|open-panel|outline view|panel|pasteboard|plugin|popup button|progress indicator|responder|save-panel|scroll view|secure text field( cell)?|slider|sound|split view|stepper|tab view( item)?|table( (column|header cell|header view|view))|text( (field( cell)?|view))?|toolbar( item)?|user-defaults|view|window)s?\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b(animate|append|call method|center|close drawer|close panel|display|display alert|display dialog|display panel|go|hide|highlight|increment|item for|load image|load movie|load nib|load panel|load sound|localized string|lock focus|log|open drawer|path for|pause|perform action|play|register|resume|scroll|select( all)?|show|size to fit|start|step back|step forward|stop|synchronize|unlock focus|update)\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= "\b((in )?back of|(in )?front of|[0-9]+(st|nd|rd|th)|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|after|back|before|behind|every|front|index|last|middle|some|that|through|thru|where|whose)\b" >
<token type= "NameBuiltin" />
</rule>
<rule pattern= ""(\\\\|\\"|[^"])*"" >
<token type= "LiteralStringDouble" />
</rule>
<rule pattern= "\b([a-zA-Z]\w*)\b" >
<token type= "NameVariable" />
</rule>
<rule pattern= "[-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?" >
<token type= "LiteralNumberFloat" />
</rule>
<rule pattern= "[-+]?\d+" >
<token type= "LiteralNumberInteger" />
</rule>
</state>
<state name= "comment" >
<rule pattern= "\(\*" >
<token type= "CommentMultiline" />
<push />
</rule>
<rule pattern= "\*\)" >
<token type= "CommentMultiline" />
<pop depth= "1" />
</rule>
<rule pattern= "[^*(]+" >
<token type= "CommentMultiline" />
</rule>
<rule pattern= "[*(]" >
<token type= "CommentMultiline" />
</rule>
</state>
</rules>
2024-08-26 23:18:28 +00:00
</lexer>