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