1
0

vbscript.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. Language: VBScript
  3. Author: Nikita Ledyaev <[email protected]>
  4. Contributors: Michal Gabrukiewicz <[email protected]>
  5. Category: scripting
  6. */
  7. function(hljs) {
  8. return {
  9. aliases: ['vbs'],
  10. case_insensitive: true,
  11. keywords: {
  12. keyword:
  13. 'call class const dim do loop erase execute executeglobal exit for each next function ' +
  14. 'if then else on error option explicit new private property let get public randomize ' +
  15. 'redim rem select case set stop sub while wend with end to elseif is or xor and not ' +
  16. 'class_initialize class_terminate default preserve in me byval byref step resume goto',
  17. built_in:
  18. 'lcase month vartype instrrev ubound setlocale getobject rgb getref string ' +
  19. 'weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency ' +
  20. 'conversions csng timevalue second year space abs clng timeserial fixs len asc ' +
  21. 'isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate ' +
  22. 'instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex ' +
  23. 'chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ' +
  24. 'strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion ' +
  25. 'scriptengine split scriptengineminorversion cint sin datepart ltrim sqr ' +
  26. 'scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw ' +
  27. 'chrw regexp server response request cstr err',
  28. literal:
  29. 'true false null nothing empty'
  30. },
  31. illegal: '//',
  32. contains: [
  33. hljs.inherit(hljs.QUOTE_STRING_MODE, {contains: [{begin: '""'}]}),
  34. hljs.COMMENT(
  35. /'/,
  36. /$/,
  37. {
  38. relevance: 0
  39. }
  40. ),
  41. hljs.C_NUMBER_MODE
  42. ]
  43. };
  44. }