JGCSCS 4 Visual Basic.NET *.bas JGsoft support@editpadpro.com http://www.editpadpro.com http://msdn.microsoft.com/vbasic/ TRUE ' 1 Designed for Visual Basic.NET, but can also be used for VB6 and other versions of Basic. 5 #region preprocessor Rem comment Public Shared Sub Test() Number = 1234; String = "abcdef"; Date = #2005/05/19# End Sub 0 FALSE 12 String The closing " is optional, so unterminated strings are colored as well "[^"\r\n]++(?:"c?)? TRUE FALSE 9 0 0 FALSE Preprocessor statement Can be terminated by a comment ^[ \t]*+#.*?(?:$|'|rem) FALSE FALSE 11 0 0 FALSE Date Closing # is optional, so unterminated dates are colored as well #[^#\r\n]*+#? FALSE FALSE 18 0 0 FALSE Comment '.*+ FALSE FALSE 5 0 0 TRUE Comment \brem\b.*+ TRUE FALSE 5 0 0 TRUE Reserved word \b(?:addhandler|addressof|andalso|alias|and|ansi|as(?:sembly)?|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdec|cdbl|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do(?:uble)?|each|else(?:if)?|end|enum|erase|error|event|exit|false|finally|for|friend|function|get(?:type)?|gosub|goto|handles|if|implements|imports|in(?:herits|teger|terface)?|is|let|lib|like|long|loop|me|mod(?:ule)?|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not(?:hing)?|notinheritable|notoverridable|object|on|option(?:al)?|or(?:else)?|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|true|try|typeof|unicode|until|variant|when|while|with(?:events)?|writeonly|xor)\b TRUE TRUE 7 0 0 FALSE Integer \b[0-9]++[%&SIL]? TRUE FALSE 10 0 0 FALSE Real \b(?:[0-9]++)?\.?[0-9]+(?:e[+-]?[0-9]+)?[@!#FRD]? FALSE FALSE 10 0 0 FALSE Hex number &H[0-9A-F]++[SIL%&]? TRUE FALSE 10 0 0 FALSE Octal number &O[0-7]++[SIL%&]? TRUE FALSE 10 0 0 FALSE Operator [*+-/\^&<=>]++ FALSE FALSE 13 0 0 FALSE Bracket [()]++ FALSE FALSE 17 0 0 FALSE 4 ( ) TRUE 3 [ ] TRUE 3 { } TRUE 3 " " FALSE 2 0