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.

make.php 5.1KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. /*************************************************************************************
  3. * make.php
  4. * --------
  5. * Author: Neil Bird <phoenix@fnxweb.com>
  6. * Copyright: (c) 2008 Neil Bird
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2008/08/26
  9. *
  10. * make language file for GeSHi.
  11. *
  12. * (GNU make specific)
  13. *
  14. * CHANGES
  15. * -------
  16. * 2008/09/05 (1.0.0)
  17. * - First Release
  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' => 'GNU make',
  40. 'COMMENT_SINGLE' => array(1 => '#'),
  41. 'COMMENT_REGEXP' => array(
  42. //Escaped String Starters
  43. 2 => "/\\\\['\"]/siU"
  44. ),
  45. 'COMMENT_MULTI' => array(),
  46. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  47. 'QUOTEMARKS' => array("'", '"'),
  48. 'ESCAPE_CHAR' => '\\',
  49. 'KEYWORDS' => array(
  50. 1 => array(
  51. // core
  52. 'ifeq', 'else', 'endif', 'ifneq', 'ifdef', 'ifndef',
  53. 'include', 'vpath', 'export', 'unexport', 'override',
  54. 'info', 'warning', 'error'
  55. ),
  56. 2 => array(
  57. // macros, literals
  58. '.SUFFIXES', '.PHONY', '.DEFAULT', '.PRECIOUS', '.IGNORE', '.SILENT', '.EXPORT_ALL_VARIABLES', '.KEEP_STATE',
  59. '.LIBPATTERNS', '.NOTPARALLEL', '.DELETE_ON_ERROR', '.INTERMEDIATE', '.POSIX', '.SECONDARY'
  60. ),
  61. /*
  62. 3 => array(
  63. // funcs - see regex
  64. //'subst', 'addprefix', 'addsuffix', 'basename', 'call', 'dir', 'error', 'eval', 'filter-out', 'filter',
  65. //'findstring', 'firstword', 'foreach', 'if', 'join', 'notdir', 'origin', 'patsubst', 'shell', 'sort', 'strip',
  66. //'suffix', 'warning', 'wildcard', 'word', 'wordlist', 'words'
  67. )*/
  68. ),
  69. 'SYMBOLS' => array(
  70. '(', ')', '[', ']', '{', '}',
  71. '!', '@', '%', '&', '|', '/',
  72. '<', '>',
  73. '=', '-', '+', '*',
  74. '.', ':', ',', ';',
  75. '$'
  76. ),
  77. 'CASE_SENSITIVE' => array(
  78. GESHI_COMMENTS => false,
  79. 1 => false,
  80. 2 => false,
  81. //3 => false,
  82. ),
  83. 'STYLES' => array(
  84. 'KEYWORDS' => array(
  85. 1 => 'color: #666622; font-weight: bold;',
  86. 2 => 'color: #990000;',
  87. //3 => 'color: #000000; font-weight: bold;'
  88. ),
  89. 'COMMENTS' => array(
  90. 1 => 'color: #339900; font-style: italic;',
  91. 2 => 'color: #000099; font-weight: bold;',
  92. 'MULTI' => ''
  93. ),
  94. 'ESCAPE_CHAR' => array(
  95. 0 => 'color: #000099; font-weight: bold;'
  96. ),
  97. 'BRACKETS' => array( # keep same as symbols so as to make ${} and $() equiv.
  98. 0 => 'color: #004400;'
  99. ),
  100. 'STRINGS' => array(
  101. 0 => 'color: #CC2200;'
  102. ),
  103. 'NUMBERS' => array(
  104. 0 => 'color: #CC2200;'
  105. ),
  106. 'SYMBOLS' => array(
  107. 0 => 'color: #004400;'
  108. ),
  109. 'REGEXPS' => array(
  110. 0 => 'color: #000088; font-weight: bold;',
  111. 1 => 'color: #0000CC; font-weight: bold;',
  112. 2 => 'color: #000088;'
  113. ),
  114. 'SCRIPT' => array(),
  115. 'METHODS' => array()
  116. ),
  117. 'URLS' => array(
  118. 1 => '',
  119. 2 => '',
  120. //3 => ''
  121. ),
  122. 'OOLANG' => false,
  123. 'OBJECT_SPLITTERS' => array(),
  124. 'REGEXPS' => array(
  125. //Simple variables
  126. 0 => "\\$(?:[^{(&]|&(?:amp|lt|gt);)",
  127. //Complex variables/functions [built-ins]
  128. 1 => array(
  129. GESHI_SEARCH => '(\\$[({])(subst|addprefix|addsuffix|basename|call|dir|error|eval|filter-out|filter,|findstring|firstword|foreach|if|join|notdir|origin|patsubst|shell|sort|strip,|suffix|warning|wildcard|word|wordlist|words)([ })])',
  130. GESHI_REPLACE => '\\2',
  131. GESHI_MODIFIERS => '',
  132. GESHI_BEFORE => '\\1',
  133. GESHI_AFTER => '\\3'
  134. ),
  135. //Complex variables/functions [others]
  136. 2 => array(
  137. GESHI_SEARCH => '(\\$[({])([A-Za-z_][A-Za-z_0-9]*)([ })])',
  138. GESHI_REPLACE => '\\2',
  139. GESHI_MODIFIERS => '',
  140. GESHI_BEFORE => '\\1',
  141. GESHI_AFTER => '\\3'
  142. ),
  143. ),
  144. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  145. 'SCRIPT_DELIMITERS' => array(),
  146. 'HIGHLIGHT_STRICT_BLOCK' => array(),
  147. 'TAB_WIDTH' => 8
  148. // vim: set sw=4 sts=4 :
  149. );
  150. ?>