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.9.1 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 37$language_data = array ( 38 'LANG_NAME' => 'EPC', 39 'COMMENT_SINGLE' => array('//'), 40 'COMMENT_MULTI' => array('/*' => '*/'), 41 'COMMENT_REGEXP' => array( 42 //[Sections] 43 //1 => "/^\\[.*\\]/" 44 ), 45 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 46 'QUOTEMARKS' => array( 47 0 => '"', 48 1 => '$' 49 ), 50 'ESCAPE_CHAR' => '', 51 'KEYWORDS' => array( 52 1 => array( 53 'if', 'then', 'else', 'endif', 54 'and', 'or', 'xor', 'hysteresis' 55 ), 56 2 => array( 57 'read', 'write', 'event', 58 'gettime', 'settime', 'getdate', 'setdate', 'gettimedate', 'settimedate', 59 'hour', 'minute', 'second', 'changehour', 'changeminute', 'changesecond', 60 'date', 'month', 'day', 'dayofweek', 'sun', 'azimuth', 'elevation', 61 'sunrisehour', 'sunriseminute', 'sunsethour', 'sunsetminute', 62 'wtime', 'htime', 'mtime', 'stime', 63 'cwtime', 'chtime', 'cmtime', 'cstime', 64 'delay', 'after', 'cycle', 65 'readflash', 'writeflash', 66 'abs', 'acos', 'asin', 'atan', 'cos', 'ceil', 'average', 'exp', 'floor', 67 'log', 'max', 'min', 'mod', 'pow', 'sqrt', 'sin', 'tan', 'change', 'convert', 68 'eval', 'systemstart', 'random', 'comobject', 'sleep', 'scene', 'storescene', 'callscene', 69 'find', 'stringcast', 'stringset', 'stringformat', 'split', 'size', 70 'readrs232'. 'sendrs232', 'address', 'readknx', 71 'readudp', 'sendudp', 'connecttcp', 'closetcp', 'readtcp', 'sendtcp', 72 'resolve', 'sendmail', 73 'button', 'webbutton', 'chart', 'webchart', 'webdisplay', 'getslider', 'pshifter', 'mpshifter', 74 'getpslider', 'mbutton', 'mbbutton', 'mchart', 'mpchart', 'mpbutton', 'pdisplay', 'pchart', 75 'pbutton', 'setslider', 'setpslider', 'slider', 'pslider', 'page', 'line', 'header', 76 'footer', 'none', 'plink', 'link', 'frame', 'dframe' 77 ) 78 ), 79 'SYMBOLS' => array( 80 0 => array( 81 '%', 'b01', 82 ), 83 1 => array( 84 '+', '-', '==', '>=', '=<', 85 ), 86 ), 87 'CASE_SENSITIVE' => array( 88 GESHI_COMMENTS => false, 89 1 => true, 90 2 => true 91 ), 92 'STYLES' => array( 93 'KEYWORDS' => array( 94 1 => 'color: #e63ec3;', 95 2 => 'color: #e63ec3;' 96 ), 97 'COMMENTS' => array( 98 0 => 'color: #0000ff;' 99 //1 => 'color: #ffa500;' 100 ), 101 'ESCAPE_CHAR' => array( 102 1 => 'color: #000099;' 103 ), 104 'BRACKETS' => array( 105 0 => 'color: #000000;' 106 ), 107 'STRINGS' => array( 108 0 => 'color: #8a0808;', 109 1 => 'color: #6e6e6e;' 110 ), 111 'NUMBERS' => array( 112 0 => 'color: #0b610b;' 113 ), 114 'METHODS' => array( 115 ), 116 'SYMBOLS' => array( 117 0 => 'color: #0b610b;', 118 1 => 'color: #e63ec3;' 119 ), 120 'REGEXPS' => array( 121 1 => 'color: #0b610b;' 122 ), 123 'SCRIPT' => array( 124 ) 125 ), 126 'URLS' => array( 127 1 => '', 128 2 => '' 129 ), 130 'OOLANG' => false, 131 'OBJECT_SPLITTERS' => array( 132 ), 133 'REGEXPS' => array( 134 // Numbers, e.g. 255u08 135 1 => "[0-9]*[subf][0136][12468]" 136 ), 137 'STRICT_MODE_APPLIES' => GESHI_NEVER, 138 'SCRIPT_DELIMITERS' => array( 139 ), 140 'HIGHLIGHT_STRICT_BLOCK' => array( 141 ), 142 'TAB_WIDTH' => 4, 143 'PARSER_CONTROL' => array( 144 'COMMENTS' => array( 145 'DISALLOWED_BEFORE' => '$' 146 ), 147 'KEYWORDS' => array( 148 'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])", 149 'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%=\\/])" 150 ) 151 ) 152); 153