]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/vbscript.js
1 /*! `vbscript` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= ( function () {
8 Description: VBScript ("Microsoft Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic.
9 Author: Nikita Ledyaev <lenikita@yandex.ru>
10 Contributors: Michal Gabrukiewicz <mgabru@gmail.com>
11 Website: https://en.wikipedia.org/wiki/VBScript
15 /** @type LanguageFn */
16 function vbscript ( hljs
) {
17 const regex
= hljs
. regex
;
18 const BUILT_IN_FUNCTIONS
= [
116 const BUILT_IN_OBJECTS
= [
120 // take no arguments so can be called without ()
122 "scriptenginebuildversion" ,
123 "scriptengineminorversion" ,
124 "scriptenginemajorversion"
127 const BUILT_IN_CALL
= {
128 begin : regex
. concat ( regex
. either (... BUILT_IN_FUNCTIONS
), " \\ s* \\ (" ),
129 // relevance 0 because this is acting as a beginKeywords really
131 keywords : { built_in : BUILT_IN_FUNCTIONS
}
205 case_insensitive : true ,
208 built_in : BUILT_IN_OBJECTS
,
214 hljs
. inherit ( hljs
. QUOTE_STRING_MODE
, { contains : [ { begin : '""' } ] }),
229 hljs.registerLanguage(' vbscript
', hljsGrammar);