123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- # -*- coding: utf-8 -*-
- """
- pygments.lexers._vbscript_builtins
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- These are manually translated lists from
- http://www.indusoft.com/pdf/VBScript%20Reference.pdf.
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
- :license: BSD, see LICENSE for details.
- """
- KEYWORDS = [
- 'ByRef',
- 'ByVal',
- # dim: special rule
- 'call',
- 'case',
- 'class',
- # const: special rule
- 'do',
- 'each',
- 'else',
- 'elseif',
- 'end',
- 'erase',
- 'execute',
- 'function',
- 'exit',
- 'for',
- 'function',
- 'GetRef',
- 'global',
- 'if',
- 'let',
- 'loop',
- 'next',
- 'new',
- # option: special rule
- 'private',
- 'public',
- 'redim',
- 'select',
- 'set',
- 'sub',
- 'then',
- 'wend',
- 'while',
- 'with',
- ]
- BUILTIN_FUNCTIONS = [
- 'Abs',
- 'Array',
- 'Asc',
- 'Atn',
- 'CBool',
- 'CByte',
- 'CCur',
- 'CDate',
- 'CDbl',
- 'Chr',
- 'CInt',
- 'CLng',
- 'Cos',
- 'CreateObject',
- 'CSng',
- 'CStr',
- 'Date',
- 'DateAdd',
- 'DateDiff',
- 'DatePart',
- 'DateSerial',
- 'DateValue',
- 'Day',
- 'Eval',
- 'Exp',
- 'Filter',
- 'Fix',
- 'FormatCurrency',
- 'FormatDateTime',
- 'FormatNumber',
- 'FormatPercent',
- 'GetObject',
- 'GetLocale',
- 'Hex',
- 'Hour',
- 'InStr',
- 'inStrRev',
- 'Int',
- 'IsArray',
- 'IsDate',
- 'IsEmpty',
- 'IsNull',
- 'IsNumeric',
- 'IsObject',
- 'Join',
- 'LBound',
- 'LCase',
- 'Left',
- 'Len',
- 'LoadPicture',
- 'Log',
- 'LTrim',
- 'Mid',
- 'Minute',
- 'Month',
- 'MonthName',
- 'MsgBox',
- 'Now',
- 'Oct',
- 'Randomize',
- 'RegExp',
- 'Replace',
- 'RGB',
- 'Right',
- 'Rnd',
- 'Round',
- 'RTrim',
- 'ScriptEngine',
- 'ScriptEngineBuildVersion',
- 'ScriptEngineMajorVersion',
- 'ScriptEngineMinorVersion',
- 'Second',
- 'SetLocale',
- 'Sgn',
- 'Space',
- 'Split',
- 'Sqr',
- 'StrComp',
- 'String',
- 'StrReverse',
- 'Tan',
- 'Time',
- 'Timer',
- 'TimeSerial',
- 'TimeValue',
- 'Trim',
- 'TypeName',
- 'UBound',
- 'UCase',
- 'VarType',
- 'Weekday',
- 'WeekdayName',
- 'Year',
- ]
- BUILTIN_VARIABLES = [
- 'Debug',
- 'Dictionary',
- 'Drive',
- 'Drives',
- 'Err',
- 'File',
- 'Files',
- 'FileSystemObject',
- 'Folder',
- 'Folders',
- 'Match',
- 'Matches',
- 'RegExp',
- 'Submatches',
- 'TextStream',
- ]
- OPERATORS = [
- '+',
- '-',
- '*',
- '/',
- '\\',
- '^',
- '|',
- '<',
- '<=',
- '>',
- '>=',
- '=',
- '<>',
- '&',
- '$',
- ]
- OPERATOR_WORDS = [
- 'mod',
- 'and',
- 'or',
- 'xor',
- 'eqv',
- 'imp',
- 'is',
- 'not',
- ]
- BUILTIN_CONSTANTS = [
- 'False',
- 'True',
- 'vbAbort',
- 'vbAbortRetryIgnore',
- 'vbApplicationModal',
- 'vbArray',
- 'vbBinaryCompare',
- 'vbBlack',
- 'vbBlue',
- 'vbBoole',
- 'vbByte',
- 'vbCancel',
- 'vbCr',
- 'vbCritical',
- 'vbCrLf',
- 'vbCurrency',
- 'vbCyan',
- 'vbDataObject',
- 'vbDate',
- 'vbDefaultButton1',
- 'vbDefaultButton2',
- 'vbDefaultButton3',
- 'vbDefaultButton4',
- 'vbDouble',
- 'vbEmpty',
- 'vbError',
- 'vbExclamation',
- 'vbFalse',
- 'vbFirstFullWeek',
- 'vbFirstJan1',
- 'vbFormFeed',
- 'vbFriday',
- 'vbGeneralDate',
- 'vbGreen',
- 'vbIgnore',
- 'vbInformation',
- 'vbInteger',
- 'vbLf',
- 'vbLong',
- 'vbLongDate',
- 'vbLongTime',
- 'vbMagenta',
- 'vbMonday',
- 'vbMsgBoxHelpButton',
- 'vbMsgBoxRight',
- 'vbMsgBoxRtlReading',
- 'vbMsgBoxSetForeground',
- 'vbNewLine',
- 'vbNo',
- 'vbNull',
- 'vbNullChar',
- 'vbNullString',
- 'vbObject',
- 'vbObjectError',
- 'vbOK',
- 'vbOKCancel',
- 'vbOKOnly',
- 'vbQuestion',
- 'vbRed',
- 'vbRetry',
- 'vbRetryCancel',
- 'vbSaturday',
- 'vbShortDate',
- 'vbShortTime',
- 'vbSingle',
- 'vbString',
- 'vbSunday',
- 'vbSystemModal',
- 'vbTab',
- 'vbTextCompare',
- 'vbThursday',
- 'vbTrue',
- 'vbTuesday',
- 'vbUseDefault',
- 'vbUseSystem',
- 'vbUseSystem',
- 'vbVariant',
- 'vbVerticalTab',
- 'vbWednesday',
- 'vbWhite',
- 'vbYellow',
- 'vbYes',
- 'vbYesNo',
- 'vbYesNoCancel',
- ]
|