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.

182 lines
7.6KB

  1. <?php
  2. /*************************************************************************************
  3. * vbnet.php
  4. * ---------
  5. * Author: Alan Juden (alan@judenware.org)
  6. * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/06/04
  9. *
  10. * VB.NET language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2004/11/27 (1.0.0)
  15. * - Initial release
  16. *
  17. * TODO (updated 2004/11/27)
  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' => 'vb.net',
  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. 'AddHandler', 'AddressOf', 'Alias', 'And', 'AndAlso', 'As', 'ByRef', 'ByVal',
  50. 'Call', 'Case', 'Catch', 'Char', 'Class', 'Const', 'Continue',
  51. 'Declare', 'Default',
  52. 'Delegate', 'Dim', 'DirectCast', 'Do', 'Each', 'Else', 'ElseIf', 'End', 'EndIf',
  53. 'Enum', 'Erase', 'Error', 'Event', 'Exit', 'False', 'Finally', 'For', 'Friend', 'Function',
  54. 'Get', 'GetType', 'GetXMLNamespace', 'Global', 'GoSub', 'GoTo', 'Handles', 'If', 'Implements',
  55. 'Imports', 'In', 'Inherits', 'Interface', 'Is', 'IsNot', 'Let', 'Lib', 'Like', 'Loop', 'Me',
  56. 'Mod', 'Module', 'Module Statement', 'MustInherit', 'MustOverride', 'MyBase', 'MyClass', 'Namespace',
  57. 'Narrowing', 'New', 'Next', 'Not', 'Nothing', 'NotInheritable', 'NotOverridable', 'Of', 'On',
  58. 'Operator', 'Option', 'Optional', 'Or', 'OrElse', 'Out', 'Overloads', 'Overridable', 'Overrides',
  59. 'ParamArray', 'Partial', 'Private', 'Property', 'Protected', 'Public', 'RaiseEvent', 'ReadOnly', 'ReDim',
  60. 'REM', 'RemoveHandler', 'Resume', 'Return', 'Select','Set', 'Shadows', 'Shared', 'Static', 'Step',
  61. 'Stop', 'Structure', 'Sub', 'SyncLock', 'Then', 'Throw', 'To', 'True', 'Try', 'TryCast', 'TypeOf',
  62. 'Using', 'Wend', 'When', 'While', 'Widening', 'With', 'WithEvents', 'WriteOnly', 'Xor'
  63. ),
  64. //Data Types
  65. 2 => array(
  66. 'Boolean', 'Byte', 'Date', 'Decimal', 'Double', 'Integer', 'Long', 'Object',
  67. 'SByte', 'Short', 'Single', 'String', 'UInteger', 'ULong', 'UShort'
  68. ),
  69. //Compiler Directives
  70. 3 => array(
  71. '#Const', '#Else', '#ElseIf', '#End', '#If'
  72. ),
  73. //Constants
  74. 4 => array(
  75. 'CBool', 'CByte', 'CChar', 'CChr', 'CDate', 'CDbl', 'CDec','CInt', 'CLng', 'CLng8', 'CObj', 'CSByte', 'CShort',
  76. 'CSng', 'CStr', 'CType', 'CUInt', 'CULng', 'CUShort'
  77. ),
  78. //Linq
  79. 5 => array(
  80. 'By','From','Group','Where'
  81. ),
  82. //Built-in functions
  83. 7 => array(
  84. 'ABS', 'ARRAY', 'ASC', 'ASCB', 'ASCW', 'CALLBYNAME', 'CHOOSE', 'CHR', 'CHR$', 'CHRB', 'CHRB$', 'CHRW',
  85. 'CLOSE', 'COMMAND', 'COMMAND$', 'CONVERSION',
  86. 'COS', 'CREATEOBJECT', 'CURDIR', 'CVDATE', 'DATEADD',
  87. 'DATEDIFF', 'DATEPART', 'DATESERIAL', 'DATEVALUE', 'DAY', 'DDB', 'DIR', 'DIR$',
  88. 'EOF', 'ERROR$', 'EXP', 'FILEATTR', 'FILECOPY', 'FILEDATATIME', 'FILELEN', 'FILTER',
  89. 'FIX', 'FORMAT', 'FORMAT$', 'FORMATCURRENCY', 'FORMATDATETIME', 'FORMATNUMBER',
  90. 'FORMATPERCENT', 'FREEFILE', 'FV', 'GETALLSETTINGS', 'GETATTRGETOBJECT', 'GETSETTING',
  91. 'HEX', 'HEX$', 'HOUR', 'IIF', 'IMESTATUS', 'INPUT$', 'INPUTB', 'INPUTB$', 'INPUTBOX',
  92. 'INSTR', 'INSTRB', 'INSTRREV', 'INT', 'IPMT', 'IRR', 'ISARRAY', 'ISDATE', 'ISEMPTY',
  93. 'ISERROR', 'ISNULL', 'ISNUMERIC', 'ISOBJECT', 'JOIN', 'LBOUND', 'LCASE', 'LCASE$',
  94. 'LEFT', 'LEFT$', 'LEFTB', 'LEFTB$', 'LENB', 'LINEINPUT', 'LOC', 'LOF', 'LOG', 'LTRIM',
  95. 'LTRIM$', 'MID$', 'MIDB', 'MIDB$', 'MINUTE', 'MIRR', 'MKDIR', 'MONTH', 'MONTHNAME',
  96. 'MSGBOX', 'NOW', 'NPER', 'NPV', 'OCT', 'OCT$', 'PARTITION', 'PMT', 'PPMT', 'PV',
  97. 'RATE', 'REPLACE', 'RIGHT', 'RIGHT$', 'RIGHTB', 'RIGHTB$', 'RMDIR', 'RND', 'RTRIM',
  98. 'RTRIM$', 'SECOND', 'SIN', 'SLN', 'SPACE', 'SPACE$', 'SPC', 'SPLIT', 'SQRT', 'STR', 'STR$',
  99. 'STRCOMP', 'STRCONV', 'STRING$', 'STRREVERSE', 'SYD', 'TAB', 'TAN', 'TIMEOFDAY',
  100. 'TIMER', 'TIMESERIAL', 'TIMEVALUE', 'TODAY', 'TRIM', 'TRIM$', 'TYPENAME', 'UBOUND',
  101. 'UCASE', 'UCASE$', 'VAL', 'WEEKDAY', 'WEEKDAYNAME', 'YEAR'
  102. ),
  103. ),
  104. 'SYMBOLS' => array(
  105. '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!',
  106. '(', ')', '{', '}', '.'
  107. ),
  108. 'CASE_SENSITIVE' => array(
  109. GESHI_COMMENTS => false,
  110. 1 => false,
  111. 2 => false,
  112. 3 => false,
  113. 4 => false,
  114. 5 => false,
  115. 7 => false
  116. ),
  117. 'STYLES' => array(
  118. 'KEYWORDS' => array(
  119. 1 => 'color: #0000FF; font-weight: bold;', //Keywords
  120. 2 => 'color: #6a5acd;', //primitive Data Types
  121. 3 => 'color: #6a5acd; font-weight: bold;', //preprocessor-commands
  122. 4 => 'color: #cd6a5a;', //Constants
  123. 5 => 'color: #cd6a5a; font-weight: bold;', //LinQ
  124. 7 => 'color: #000066;', //Built-in functions
  125. ),
  126. 'COMMENTS' => array(
  127. 1 => 'color: #008000; font-style: italic;',
  128. 'MULTI' => 'color: #008000; font-style: italic;'
  129. ),
  130. 'ESCAPE_CHAR' => array(
  131. 0 => 'color: #008080; font-weight: bold;'
  132. ),
  133. 'BRACKETS' => array(
  134. 0 => 'color: #000000;'
  135. ),
  136. 'STRINGS' => array(
  137. 0 => 'color: #a52a2a; back-color: #fffacd;'
  138. ),
  139. 'NUMBERS' => array(
  140. 0 => 'color: #a52a2a; back-color: #fffacd;'
  141. ),
  142. 'METHODS' => array(
  143. 1 => 'color: #000000;'
  144. ),
  145. 'SYMBOLS' => array(
  146. 0 => 'color: #000000;'
  147. ),
  148. 'REGEXPS' => array(
  149. ),
  150. 'SCRIPT' => array(
  151. )
  152. ),
  153. 'URLS' => array(
  154. 1 => '',
  155. 2 => '',
  156. 3 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com',
  157. 4 => '',
  158. 5 => '',
  159. 7 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com'
  160. ),
  161. 'OOLANG' => true,
  162. 'OBJECT_SPLITTERS' => array(
  163. 1 =>'.'
  164. ),
  165. 'REGEXPS' => array(
  166. ),
  167. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  168. 'SCRIPT_DELIMITERS' => array(
  169. ),
  170. 'HIGHLIGHT_STRICT_BLOCK' => array(
  171. ),
  172. 'PARSER_CONTROL' => array(
  173. 'KEYWORDS' => array(
  174. 7 => array(
  175. 'DISALLOWED_AFTER' => '(?!\w)(?=\s*\()'
  176. )
  177. )
  178. )
  179. );
  180. ?>