1<?php 2/************************************************************************************* 3 * rpmspec.php 4 * --------------------------------- 5 * Author: Paul Grinberg (gri6507 TA unity-linux TOD org) 6 * Copyright: (c) 2010 Paul Grinberg 7 * Release Version: 1.0.9.1 8 * Date Started: 2010/04/27 9 * 10 * RPM Spec language file for GeSHi. 11 * 12 * CHANGES 13 * ------- 14 * 2010/04/27 (0.1) 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' => 'RPM Specification File', 39 'COMMENT_SINGLE' => array(1 => '#'), 40 'COMMENT_MULTI' => array(), 41 'QUOTEMARKS' => array('"','`'), 42 'ESCAPE_CHAR' => '\\', 43 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 44 'CASE_SENSITIVE' => array( 45 GESHI_COMMENTS => false, 46 ), 47 'KEYWORDS' => array( 48 ), 49 'SYMBOLS' => array( 50 '<', '>', '=', 51 '!', '@', '~', '&', '|', '^', 52 '+','-', '*', '/', '%', 53 ',', ';', '?', '.', ':' 54 ), 55 'STYLES' => array( 56 'KEYWORDS' => array( 57 ), 58 'COMMENTS' => array( 59 1 => 'color: #666666; font-style: italic;', 60 'MULTI' => 'color: #666666; font-style: italic;' 61 ), 62 'ESCAPE_CHAR' => array( 63 0 => 'color: #000099; font-weight: bold;', 64 'HARD' => 'color: #000099; font-weight: bold;' 65 ), 66 'BRACKETS' => array( 67 0 => 'color: #009900;' 68 ), 69 'STRINGS' => array( 70 0 => 'color: #ff0000;', 71 ), 72 'NUMBERS' => array( 73 0 => 'color: #cc66cc;' 74 ), 75 'METHODS' => array( 76 1 => 'color: #006600;', 77 2 => 'color: #006600;' 78 ), 79 'SYMBOLS' => array( 80 0 => 'color: #339933;' 81 ), 82 'REGEXPS' => array( 83 1 => 'color: #0000ff;', 84 2 => 'color: #009999;', 85 3 => 'color: #000000; font-weight: bold;', 86 4 => 'color: #ff6600; font-style: italic;', 87 ), 88 'SCRIPT' => array( 89 ) 90 ), 91 'REGEXPS' => array( 92 1 => array( 93 // search for generic macros 94 GESHI_SEARCH => '(%{?[a-zA-Z0-9_]+}?)', 95 GESHI_REPLACE => '\\1', 96 GESHI_MODIFIERS => '', 97 GESHI_BEFORE => '', 98 GESHI_AFTER => '', 99 ), 100 2 => array( 101 // search for special macros 102 GESHI_SEARCH => '(%(?:define|patch\d*|mklibname|mkrel|configure\S+|makeinstall\S+|make_session|make|defattr|config|doc|setup))', 103 GESHI_REPLACE => '\\1', 104 GESHI_MODIFIERS => 'i', 105 GESHI_BEFORE => '', 106 GESHI_AFTER => '', 107 ), 108 3 => array ( 109 // special definitions 110 GESHI_SEARCH => '((?:summary|license|buildroot|buildrequires|provides|version|release|source\d*|group|buildarch|autoreqprov|provides|obsoletes|vendor|distribution|suggests|autoreq|autoprov|conflicts|name|url|requires|patch\d*):)', 111 GESHI_REPLACE => '\\1', 112 GESHI_MODIFIERS => 'i', 113 GESHI_BEFORE => '', 114 GESHI_AFTER => '', 115 ), 116 4 => array ( 117 // section delimiting words 118 GESHI_SEARCH => '(%(?:description|package|prep|build|install|clean|postun|preun|post|pre|files|changelog))', 119 GESHI_REPLACE => '\\1', 120 GESHI_MODIFIERS => 'i', 121 GESHI_BEFORE => '', 122 GESHI_AFTER => '', 123 ), 124 ), 125 'URLS' => array(), 126 'OOLANG' => false, 127 'OBJECT_SPLITTERS' => array(), 128 'HIGHLIGHT_STRICT_BLOCK' => array(), 129 'STRICT_MODE_APPLIES' => GESHI_NEVER, 130 'SCRIPT_DELIMITERS' => array(), 131); 132