PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/lib/geshi/geshilang/applescript.php

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