A tumblelog CMS built on AJAX, PHP and MySQL.

vhdl.php 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. /*************************************************************************************
  3. * vhdl.php
  4. * --------
  5. * Author: Alexander 'E-Razor' Krause (admin@erazor-zone.de)
  6. * Copyright: (c) 2005 Alexander Krause
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2005/06/15
  9. *
  10. * VHDL (VHSICADL, very high speed integrated circuit HDL) language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2006/06/15 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO
  18. * ----
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'VHDL',
  41. 'COMMENT_SINGLE' => array(1 => '--'),
  42. 'COMMENT_MULTI' => array(),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array('"'),
  45. 'ESCAPE_CHAR' => '',
  46. 'KEYWORDS' => array(
  47. /*keywords*/
  48. 1 => array(
  49. 'access','after','alias','all','assert','architecture','begin',
  50. 'block','body','buffer','bus','case','component','configuration','constant',
  51. 'disconnect','downto','else','elsif','end','entity','exit','file','for',
  52. 'function','generate','generic','group','guarded','if','impure','in',
  53. 'inertial','inout','is','label','library','linkage','literal','loop',
  54. 'map','new','next','null','of','on','open','others','out','package',
  55. 'port','postponed','procedure','process','pure','range','record','register',
  56. 'reject','report','return','select','severity','signal','shared','subtype',
  57. 'then','to','transport','type','unaffected','units','until','use','variable',
  58. 'wait','when','while','with','note','warning','error','failure','and',
  59. 'or','xor','not','nor'
  60. ),
  61. /*types*/
  62. 2 => array(
  63. 'bit','bit_vector','character','boolean','integer','real','time','string',
  64. 'severity_level','positive','natural','signed','unsigned','line','text',
  65. 'std_logic','std_logic_vector','std_ulogic','std_ulogic_vector','qsim_state',
  66. 'qsim_state_vector','qsim_12state','qsim_12state_vector','qsim_strength',
  67. 'mux_bit','mux_vector','reg_bit','reg_vector','wor_bit','wor_vector'
  68. ),
  69. /*operators*/
  70. 3 => array(
  71. '=','<=',':=','=>','=='
  72. )
  73. ),
  74. 'SYMBOLS' => array(
  75. '[', ']', '(', ')',';','<','>',':'
  76. ),
  77. 'CASE_SENSITIVE' => array(
  78. GESHI_COMMENTS => true,
  79. 1 => false,
  80. 2 => false
  81. ),
  82. 'STYLES' => array(
  83. 'KEYWORDS' => array(
  84. 1 => 'color: #000000; font-weight: bold;',
  85. 2 => 'color: #aa0000;'
  86. ),
  87. 'COMMENTS' => array(
  88. 1 => 'color: #adadad; font-style: italic;'
  89. ),
  90. 'ESCAPE_CHAR' => array(
  91. 0 => 'color: #000099; font-weight: bold;'
  92. ),
  93. 'BRACKETS' => array(
  94. 0 => 'color: #66cc66;'
  95. ),
  96. 'STRINGS' => array(
  97. 0 => 'color: #7f007f;'
  98. ),
  99. 'NUMBERS' => array(
  100. 0 => 'color: #ff0000;'
  101. ),
  102. 'METHODS' => array(
  103. ),
  104. 'SYMBOLS' => array(
  105. 0 => 'color: #66cc66;'
  106. ),
  107. 'REGEXPS' => array(
  108. 0 => 'color: #ff0000;',
  109. 1 => 'color: #ff0000;',
  110. 2 => 'color: #ff0000;',
  111. 3 => 'color: #ff0000;'
  112. ),
  113. 'SCRIPT' => array(
  114. )
  115. ),
  116. 'URLS' => array(
  117. 1 => '',
  118. 2 => ''
  119. ),
  120. 'OOLANG' => false,
  121. 'OBJECT_SPLITTERS' => array(
  122. ),
  123. 'REGEXPS' => array(
  124. 0 => '(\b(0x)[0-9a-fA-F]{2,}[hH]?|\b(0x)?[0-9a-fA-F]{2,}[hH])|'.
  125. '(\b[0-9]{1,}((\.){1}[0-9]{1,}){0,1}(E)[\-]{0,1}[0-9]{1,})|'.
  126. '(\b(ns))|'.
  127. "('[0-9a-zA-Z]+)",
  128. 1 => "\b(''[0-9]'')"
  129. ),
  130. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  131. 'SCRIPT_DELIMITERS' => array(
  132. ),
  133. 'HIGHLIGHT_STRICT_BLOCK' => array(
  134. )
  135. );
  136. ?>