KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

epc.php 5.1KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /*************************************************************************************
  3. * epc.php
  4. * --------
  5. * Author: Thorsten Muehlfelder (muehlfelder@enertex.de)
  6. * Copyright: (c) 2010 Enertex Bayern GmbH
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/08/26
  9. *
  10. * Enerscript language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/08/26 (1.0.8.10)
  15. * - First Release
  16. *
  17. *************************************************************************************
  18. *
  19. * This file is part of GeSHi.
  20. *
  21. * GeSHi is free software; you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation; either version 2 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * GeSHi is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with GeSHi; if not, write to the Free Software
  33. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34. *
  35. ************************************************************************************/
  36. $language_data = array (
  37. 'LANG_NAME' => 'EPC',
  38. 'COMMENT_SINGLE' => array('//'),
  39. 'COMMENT_MULTI' => array('/*' => '*/'),
  40. 'COMMENT_REGEXP' => array(
  41. //[Sections]
  42. //1 => "/^\\[.*\\]/"
  43. ),
  44. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  45. 'QUOTEMARKS' => array(
  46. 0 => '"',
  47. 1 => '$'
  48. ),
  49. 'ESCAPE_CHAR' => '',
  50. 'KEYWORDS' => array(
  51. 1 => array(
  52. 'if', 'then', 'else', 'endif',
  53. 'and', 'or', 'xor', 'hysteresis'
  54. ),
  55. 2 => array(
  56. 'read', 'write', 'event',
  57. 'gettime', 'settime', 'getdate', 'setdate', 'gettimedate', 'settimedate',
  58. 'hour', 'minute', 'second', 'changehour', 'changeminute', 'changesecond',
  59. 'date', 'month', 'day', 'dayofweek', 'sun', 'azimuth', 'elevation',
  60. 'sunrisehour', 'sunriseminute', 'sunsethour', 'sunsetminute',
  61. 'wtime', 'htime', 'mtime', 'stime',
  62. 'cwtime', 'chtime', 'cmtime', 'cstime',
  63. 'delay', 'after', 'cycle',
  64. 'readflash', 'writeflash',
  65. 'abs', 'acos', 'asin', 'atan', 'cos', 'ceil', 'average', 'exp', 'floor',
  66. 'log', 'max', 'min', 'mod', 'pow', 'sqrt', 'sin', 'tan', 'change', 'convert',
  67. 'eval', 'systemstart', 'random', 'comobject', 'sleep', 'scene', 'storescene', 'callscene',
  68. 'find', 'stringcast', 'stringset', 'stringformat', 'split', 'size',
  69. 'readrs232'. 'sendrs232', 'address', 'readknx',
  70. 'readudp', 'sendudp', 'connecttcp', 'closetcp', 'readtcp', 'sendtcp',
  71. 'resolve', 'sendmail',
  72. 'button', 'webbutton', 'chart', 'webchart', 'webdisplay', 'getslider', 'pshifter', 'mpshifter',
  73. 'getpslider', 'mbutton', 'mbbutton', 'mchart', 'mpchart', 'mpbutton', 'pdisplay', 'pchart',
  74. 'pbutton', 'setslider', 'setpslider', 'slider', 'pslider', 'page', 'line', 'header',
  75. 'footer', 'none', 'plink', 'link', 'frame', 'dframe'
  76. )
  77. ),
  78. 'SYMBOLS' => array(
  79. 0 => array(
  80. '%', 'b01',
  81. ),
  82. 1 => array(
  83. '+', '-', '==', '>=', '=<',
  84. ),
  85. ),
  86. 'CASE_SENSITIVE' => array(
  87. GESHI_COMMENTS => false,
  88. 1 => true,
  89. 2 => true
  90. ),
  91. 'STYLES' => array(
  92. 'KEYWORDS' => array(
  93. 1 => 'color: #e63ec3;',
  94. 2 => 'color: #e63ec3;'
  95. ),
  96. 'COMMENTS' => array(
  97. 0 => 'color: #0000ff;'
  98. //1 => 'color: #ffa500;'
  99. ),
  100. 'ESCAPE_CHAR' => array(
  101. 1 => 'color: #000099;'
  102. ),
  103. 'BRACKETS' => array(
  104. 0 => 'color: #000000;'
  105. ),
  106. 'STRINGS' => array(
  107. 0 => 'color: #8a0808;',
  108. 1 => 'color: #6e6e6e;'
  109. ),
  110. 'NUMBERS' => array(
  111. 0 => 'color: #0b610b;'
  112. ),
  113. 'METHODS' => array(
  114. ),
  115. 'SYMBOLS' => array(
  116. 0 => 'color: #0b610b;',
  117. 1 => 'color: #e63ec3;'
  118. ),
  119. 'REGEXPS' => array(
  120. 1 => 'color: #0b610b;'
  121. ),
  122. 'SCRIPT' => array(
  123. )
  124. ),
  125. 'URLS' => array(
  126. 1 => '',
  127. 2 => ''
  128. ),
  129. 'OOLANG' => false,
  130. 'OBJECT_SPLITTERS' => array(
  131. ),
  132. 'REGEXPS' => array(
  133. // Numbers, e.g. 255u08
  134. 1 => "[0-9]*[subf][0136][12468]"
  135. ),
  136. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  137. 'SCRIPT_DELIMITERS' => array(
  138. ),
  139. 'HIGHLIGHT_STRICT_BLOCK' => array(
  140. ),
  141. 'TAB_WIDTH' => 4,
  142. 'PARSER_CONTROL' => array(
  143. 'COMMENTS' => array(
  144. 'DISALLOWED_BEFORE' => '$'
  145. ),
  146. 'KEYWORDS' => array(
  147. 'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])",
  148. 'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%=\\/])"
  149. )
  150. )
  151. );
  152. ?>