Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/lexers/_vbscript_builtins.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 06:54 +0000

1""" 

2 pygments.lexers._vbscript_builtins 

3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 These are manually translated lists from 

6 http://www.indusoft.com/pdf/VBScript%20Reference.pdf. 

7 

8 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. 

9 :license: BSD, see LICENSE for details. 

10""" 

11 

12KEYWORDS = [ 

13 'ByRef', 

14 'ByVal', 

15 # dim: special rule 

16 'call', 

17 'case', 

18 'class', 

19 # const: special rule 

20 'do', 

21 'each', 

22 'else', 

23 'elseif', 

24 'end', 

25 'erase', 

26 'execute', 

27 'function', 

28 'exit', 

29 'for', 

30 'function', 

31 'GetRef', 

32 'global', 

33 'if', 

34 'let', 

35 'loop', 

36 'next', 

37 'new', 

38 # option: special rule 

39 'private', 

40 'public', 

41 'redim', 

42 'select', 

43 'set', 

44 'sub', 

45 'then', 

46 'wend', 

47 'while', 

48 'with', 

49] 

50 

51BUILTIN_FUNCTIONS = [ 

52 'Abs', 

53 'Array', 

54 'Asc', 

55 'Atn', 

56 'CBool', 

57 'CByte', 

58 'CCur', 

59 'CDate', 

60 'CDbl', 

61 'Chr', 

62 'CInt', 

63 'CLng', 

64 'Cos', 

65 'CreateObject', 

66 'CSng', 

67 'CStr', 

68 'Date', 

69 'DateAdd', 

70 'DateDiff', 

71 'DatePart', 

72 'DateSerial', 

73 'DateValue', 

74 'Day', 

75 'Eval', 

76 'Exp', 

77 'Filter', 

78 'Fix', 

79 'FormatCurrency', 

80 'FormatDateTime', 

81 'FormatNumber', 

82 'FormatPercent', 

83 'GetObject', 

84 'GetLocale', 

85 'Hex', 

86 'Hour', 

87 'InStr', 

88 'inStrRev', 

89 'Int', 

90 'IsArray', 

91 'IsDate', 

92 'IsEmpty', 

93 'IsNull', 

94 'IsNumeric', 

95 'IsObject', 

96 'Join', 

97 'LBound', 

98 'LCase', 

99 'Left', 

100 'Len', 

101 'LoadPicture', 

102 'Log', 

103 'LTrim', 

104 'Mid', 

105 'Minute', 

106 'Month', 

107 'MonthName', 

108 'MsgBox', 

109 'Now', 

110 'Oct', 

111 'Randomize', 

112 'RegExp', 

113 'Replace', 

114 'RGB', 

115 'Right', 

116 'Rnd', 

117 'Round', 

118 'RTrim', 

119 'ScriptEngine', 

120 'ScriptEngineBuildVersion', 

121 'ScriptEngineMajorVersion', 

122 'ScriptEngineMinorVersion', 

123 'Second', 

124 'SetLocale', 

125 'Sgn', 

126 'Space', 

127 'Split', 

128 'Sqr', 

129 'StrComp', 

130 'String', 

131 'StrReverse', 

132 'Tan', 

133 'Time', 

134 'Timer', 

135 'TimeSerial', 

136 'TimeValue', 

137 'Trim', 

138 'TypeName', 

139 'UBound', 

140 'UCase', 

141 'VarType', 

142 'Weekday', 

143 'WeekdayName', 

144 'Year', 

145] 

146 

147BUILTIN_VARIABLES = [ 

148 'Debug', 

149 'Dictionary', 

150 'Drive', 

151 'Drives', 

152 'Err', 

153 'File', 

154 'Files', 

155 'FileSystemObject', 

156 'Folder', 

157 'Folders', 

158 'Match', 

159 'Matches', 

160 'RegExp', 

161 'Submatches', 

162 'TextStream', 

163] 

164 

165OPERATORS = [ 

166 '+', 

167 '-', 

168 '*', 

169 '/', 

170 '\\', 

171 '^', 

172 '|', 

173 '<', 

174 '<=', 

175 '>', 

176 '>=', 

177 '=', 

178 '<>', 

179 '&', 

180 '$', 

181] 

182 

183OPERATOR_WORDS = [ 

184 'mod', 

185 'and', 

186 'or', 

187 'xor', 

188 'eqv', 

189 'imp', 

190 'is', 

191 'not', 

192] 

193 

194BUILTIN_CONSTANTS = [ 

195 'False', 

196 'True', 

197 'vbAbort', 

198 'vbAbortRetryIgnore', 

199 'vbApplicationModal', 

200 'vbArray', 

201 'vbBinaryCompare', 

202 'vbBlack', 

203 'vbBlue', 

204 'vbBoole', 

205 'vbByte', 

206 'vbCancel', 

207 'vbCr', 

208 'vbCritical', 

209 'vbCrLf', 

210 'vbCurrency', 

211 'vbCyan', 

212 'vbDataObject', 

213 'vbDate', 

214 'vbDefaultButton1', 

215 'vbDefaultButton2', 

216 'vbDefaultButton3', 

217 'vbDefaultButton4', 

218 'vbDouble', 

219 'vbEmpty', 

220 'vbError', 

221 'vbExclamation', 

222 'vbFalse', 

223 'vbFirstFullWeek', 

224 'vbFirstJan1', 

225 'vbFormFeed', 

226 'vbFriday', 

227 'vbGeneralDate', 

228 'vbGreen', 

229 'vbIgnore', 

230 'vbInformation', 

231 'vbInteger', 

232 'vbLf', 

233 'vbLong', 

234 'vbLongDate', 

235 'vbLongTime', 

236 'vbMagenta', 

237 'vbMonday', 

238 'vbMsgBoxHelpButton', 

239 'vbMsgBoxRight', 

240 'vbMsgBoxRtlReading', 

241 'vbMsgBoxSetForeground', 

242 'vbNewLine', 

243 'vbNo', 

244 'vbNull', 

245 'vbNullChar', 

246 'vbNullString', 

247 'vbObject', 

248 'vbObjectError', 

249 'vbOK', 

250 'vbOKCancel', 

251 'vbOKOnly', 

252 'vbQuestion', 

253 'vbRed', 

254 'vbRetry', 

255 'vbRetryCancel', 

256 'vbSaturday', 

257 'vbShortDate', 

258 'vbShortTime', 

259 'vbSingle', 

260 'vbString', 

261 'vbSunday', 

262 'vbSystemModal', 

263 'vbTab', 

264 'vbTextCompare', 

265 'vbThursday', 

266 'vbTrue', 

267 'vbTuesday', 

268 'vbUseDefault', 

269 'vbUseSystem', 

270 'vbUseSystem', 

271 'vbVariant', 

272 'vbVerticalTab', 

273 'vbWednesday', 

274 'vbWhite', 

275 'vbYellow', 

276 'vbYes', 

277 'vbYesNo', 

278 'vbYesNoCancel', 

279]