A tumblelog CMS built on AJAX, PHP and MySQL.

applescript.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*************************************************************************************
  3. * applescript.php
  4. * --------
  5. * Author: Stephan Klimek (http://www.initware.org)
  6. * Copyright: Stephan Klimek (http://www.initware.org)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2005/07/20
  9. *
  10. * AppleScript language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. *
  15. * TODO
  16. * -------------------------
  17. * URL settings to references
  18. *
  19. **************************************************************************************
  20. *
  21. * This file is part of GeSHi.
  22. *
  23. * GeSHi is free software; you can redistribute it and/or modify
  24. * it under the terms of the GNU General Public License as published by
  25. * the Free Software Foundation; either version 2 of the License, or
  26. * (at your option) any later version.
  27. *
  28. * GeSHi is distributed in the hope that it will be useful,
  29. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31. * GNU General Public License for more details.
  32. *
  33. * You should have received a copy of the GNU General Public License
  34. * along with GeSHi; if not, write to the Free Software
  35. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  36. *
  37. ************************************************************************************/
  38. $language_data = array (
  39. 'LANG_NAME' => 'AppleScript',
  40. 'COMMENT_SINGLE' => array(1 => '--'),
  41. 'COMMENT_MULTI' => array( '(*' => '*)'),
  42. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  43. 'QUOTEMARKS' => array('"',"'"),
  44. 'ESCAPE_CHAR' => '\\',
  45. 'KEYWORDS' => array(
  46. 1 => array(
  47. 'script','property','prop','end','copy','to','set','global','local','on','to','of',
  48. 'in','given','with','without','return','continue','tell','if','then','else','repeat',
  49. 'times','while','until','from','exit','try','error','considering','ignoring','timeout',
  50. 'transaction','my','get','put','into','is'
  51. ),
  52. 2 => array(
  53. 'each','some','every','whose','where','id','index','first','second','third','fourth',
  54. 'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
  55. 'rd','th','middle','named','through','thru','before','after','beginning','the'
  56. ),
  57. 3 => array(
  58. 'close','copy','count','delete','duplicate','exists','launch','make','move','open',
  59. 'print','quit','reopen','run','save','saving',
  60. 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
  61. 'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
  62. 'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
  63. 'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
  64. 'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
  65. 'mar','april','apr','may','june','jun','july','jul','august','aug','september',
  66. 'sep','october','oct','november','nov','december','dec','minutes','hours',
  67. 'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
  68. )
  69. ),
  70. 'SYMBOLS' => array(
  71. ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
  72. ),
  73. 'CASE_SENSITIVE' => array(
  74. GESHI_COMMENTS => true,
  75. 1 => false,
  76. 2 => false,
  77. 3 => false,
  78. ),
  79. 'STYLES' => array(
  80. 'KEYWORDS' => array(
  81. 1 => 'color: #b1b100;',
  82. 2 => 'color: #000000; font-weight: bold;',
  83. 3 => 'color: #000066;'
  84. ),
  85. 'COMMENTS' => array(
  86. 1 => 'color: #808080; font-style: italic;',
  87. 'MULTI' => 'color: #808080; font-style: italic;'
  88. ),
  89. 'ESCAPE_CHAR' => array(
  90. 0 => 'color: #000099; font-weight: bold;'
  91. ),
  92. 'BRACKETS' => array(
  93. 0 => 'color: #66cc66;'
  94. ),
  95. 'STRINGS' => array(
  96. 0 => 'color: #ff0000;'
  97. ),
  98. 'NUMBERS' => array(
  99. 0 => 'color: #cc66cc;'
  100. ),
  101. 'METHODS' => array(
  102. 1 => 'color: #006600;',
  103. 2 => 'color: #006600;'
  104. ),
  105. 'SYMBOLS' => array(
  106. 0 => 'color: #66cc66;'
  107. ),
  108. 'REGEXPS' => array(
  109. 0 => 'color: #0000ff;',
  110. 4 => 'color: #009999;',
  111. ),
  112. 'SCRIPT' => array(
  113. )
  114. ),
  115. 'URLS' => array(
  116. 3 => ''
  117. ),
  118. 'OOLANG' => true,
  119. 'OBJECT_SPLITTERS' => array(
  120. 1 => ',+-=&lt;&gt;/?^&amp;*'
  121. ),
  122. 'REGEXPS' => array(
  123. 0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
  124. 4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
  125. ),
  126. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  127. 'SCRIPT_DELIMITERS' => array(
  128. ),
  129. 'HIGHLIGHT_STRICT_BLOCK' => array(
  130. )
  131. );
  132. ?>