plugins/geshi/geshi/applescript.php
changeset 3 f3e2bbbd2155
parent 2 9e3258dfae15
equal deleted inserted replaced
2:9e3258dfae15 3:f3e2bbbd2155
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * applescript.php
     3  * applescript.php
     4  * --------
     4  * --------
     5  * Author: Stephan Klimek (http://www.initware.org)
     5  * Author: Stephan Klimek (http://www.initware.org)
     6  * Copyright: Stephan Klimek (http://www.initware.org)
     6  * Copyright: Stephan Klimek (http://www.initware.org)
     7  * Release Version: 1.0.8.2
     7  * Release Version: 1.0.8.4
     8  * Date Started: 2005/07/20
     8  * Date Started: 2005/07/20
     9  *
     9  *
    10  * AppleScript language file for GeSHi.
    10  * AppleScript language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    49     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    49     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    50     'QUOTEMARKS' => array('"'),
    50     'QUOTEMARKS' => array('"'),
    51     'ESCAPE_CHAR' => '\\',
    51     'ESCAPE_CHAR' => '\\',
    52     'KEYWORDS' => array(
    52     'KEYWORDS' => array(
    53         1 => array(
    53         1 => array(
       
    54             'application','close','count','delete','duplicate','exists','launch','make','move','open',
       
    55             'print','quit','reopen','run','save','saving', 'idle', 'path to', 'number', 'alias', 'list', 'text', 'string',
       
    56             'integer', 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
       
    57             'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
       
    58             'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false', 'id',
       
    59             'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
       
    60             'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
       
    61             'mar','april','apr','may','june','jun','july','jul','august','aug','september', 'quote', 'do JavaScript',
       
    62             'sep','october','oct','november','nov','december','dec','minutes','hours', 'name', 'default answer',
       
    63             'days','weeks', 'folder', 'folders', 'file', 'files', 'window', 'eject', 'disk', 'reveal', 'sleep',
       
    64             'shut down', 'restart', 'display dialog', 'buttons', 'invisibles', 'item', 'items', 'delimiters', 'offset of',
       
    65             'AppleScript\'s', 'choose file', 'choose folder', 'choose from list', 'beep', 'contents', 'do shell script',
       
    66             'paragraph', 'paragraphs', 'missing value', 'quoted form', 'desktop', 'POSIX path', 'POSIX file',
       
    67             'activate', 'document', 'adding', 'receiving', 'content', 'new', 'properties', 'info for', 'bounds',
       
    68             'selection', 'extension', 'into', 'onto', 'by', 'between', 'against', 'set the clipboard to', 'the clipboard'
       
    69             ),
       
    70         2 => array(
       
    71             'each','some','every','whose','where','index','first','second','third','fourth',
       
    72             'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
       
    73             'rd','th','middle','named','through','thru','before','after','beginning','the', 'as',
       
    74             'div','mod','and','not','or','contains','equal','equals','isnt', 'less', 'greater'
       
    75             ),
       
    76         3 => array(
    54             'script','property','prop','end','to','set','global','local','on','of',
    77             'script','property','prop','end','to','set','global','local','on','of',
    55             'in','given','with','without','return','continue','tell','if','then','else','repeat',
    78             'in','given','with','without','return','continue','tell','if','then','else','repeat',
    56             'times','while','until','from','exit','try','error','considering','ignoring','timeout',
    79             'times','while','until','from','exit','try','error','considering','ignoring','timeout',
    57             'transaction','my','get','put','into','is'
    80             'transaction','my','get','put','is', 'copy'
    58             ),
       
    59         2 => array(
       
    60             'each','some','every','whose','where','id','index','first','second','third','fourth',
       
    61             'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
       
    62             'rd','th','middle','named','through','thru','before','after','beginning','the'
       
    63             ),
       
    64         3 => array(
       
    65             'close','copy','count','delete','duplicate','exists','launch','make','move','open',
       
    66             'print','quit','reopen','run','save','saving',
       
    67             'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
       
    68             'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
       
    69             'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
       
    70             'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
       
    71             'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
       
    72             'mar','april','apr','may','june','jun','july','jul','august','aug','september',
       
    73             'sep','october','oct','november','nov','december','dec','minutes','hours',
       
    74             'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
       
    75             )
    81             )
    76         ),
    82         ),
    77     'SYMBOLS' => array(
    83     'SYMBOLS' => array(
    78         ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
    84         ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
    79         ),
    85         ),
    83         2 => false,
    89         2 => false,
    84         3 => false,
    90         3 => false,
    85         ),
    91         ),
    86     'STYLES' => array(
    92     'STYLES' => array(
    87         'KEYWORDS' => array(
    93         'KEYWORDS' => array(
    88             1 => 'color: #b1b100;',
    94             1 => 'color: #0066ff;',
    89             2 => 'color: #000000; font-weight: bold;',
    95             2 => 'color: #ff0033;',
    90             3 => 'color: #000066;'
    96             3 => 'color: #ff0033; font-weight: bold;'
    91             ),
    97             ),
    92         'COMMENTS' => array(
    98         'COMMENTS' => array(
    93             1 => 'color: #808080; font-style: italic;',
    99             1 => 'color: #808080; font-style: italic;',
    94             2 => '',
   100             2 => '',
    95             3 => 'color: #ff0000;',
   101             3 => 'color: #ff0000;',
    96             'MULTI' => 'color: #808080; font-style: italic;'
   102             'MULTI' => 'color: #808080; font-style: italic;'
    97             ),
   103             ),
    98         'ESCAPE_CHAR' => array(
   104         'ESCAPE_CHAR' => array(
    99             0 => 'color: #000099; font-weight: bold;'
   105             0 => 'color: #000000; font-weight: bold;'
   100             ),
   106             ),
   101         'BRACKETS' => array(
   107         'BRACKETS' => array(
   102             0 => 'color: #66cc66;'
   108             0 => 'color: #000000;'
   103             ),
   109             ),
   104         'STRINGS' => array(
   110         'STRINGS' => array(
   105             0 => 'color: #ff0000;'
   111             0 => 'color: #009900;'
   106             ),
   112             ),
   107         'NUMBERS' => array(
   113         'NUMBERS' => array(
   108             0 => 'color: #cc66cc;'
   114             0 => 'color: #000000;'
   109             ),
   115             ),
   110         'METHODS' => array(
   116         'METHODS' => array(
   111             1 => 'color: #006600;',
   117             1 => 'color: #006600;',
   112             2 => 'color: #006600;'
   118             2 => 'color: #006600;'
   113             ),
   119             ),
   114         'SYMBOLS' => array(
   120         'SYMBOLS' => array(
   115             0 => 'color: #66cc66;'
   121             0 => 'color: #000000;'
   116             ),
   122             ),
   117         'REGEXPS' => array(
   123         'REGEXPS' => array(
   118             0 => 'color: #0000ff;',
   124             0 => 'color: #339933;',
   119             4 => 'color: #009999;',
   125             4 => 'color: #0066ff;',
   120             ),
   126             ),
   121         'SCRIPT' => array(
   127         'SCRIPT' => array(
   122             )
   128             )
   123         ),
   129         ),
   124     'URLS' => array(
   130     'URLS' => array(
   138         ),
   144         ),
   139     'STRICT_MODE_APPLIES' => GESHI_NEVER,
   145     'STRICT_MODE_APPLIES' => GESHI_NEVER,
   140     'SCRIPT_DELIMITERS' => array(
   146     'SCRIPT_DELIMITERS' => array(
   141         ),
   147         ),
   142     'HIGHLIGHT_STRICT_BLOCK' => array(
   148     'HIGHLIGHT_STRICT_BLOCK' => array(
       
   149         ),
       
   150     'PARSER_CONTROL' => array(
       
   151         'KEYWORDS' => array(
       
   152             'SPACE_AS_WHITESPACE' => true
       
   153             )
   143         )
   154         )
   144 );
   155 );
   145 
   156 
   146 ?>
   157 ?>