bat icon indicating copy to clipboard operation
bat copied to clipboard

Add VBScript syntax

Open philippe-elsass-deltatre opened this issue 4 years ago • 8 comments

Syntax: VBScript

Guideline Criteria: https://packagecontrol.io/packages/VBScript (80k+ downloads, 15k on Mac/Linux)

Although VBScript isn't that popular on Mac/Linux, the syntax is used for a number of basic-inspired languages like BrightScript.

Oh no, it looks like it's an old syntax format and doesn't have a .sublime-syntax.

Have you tried using the ASP syntax bundled with bat? https://github.com/sublimehq/Packages/blob/759d6eed9b4beed87e602a23303a121c3a6c2fb3/ASP/ASP.sublime-syntax

keith-hall avatar Feb 14 '22 09:02 keith-hall

@keith-hall good call, but it doesn't work - code highlighting is only active inside specific markup.

I could convert the old tmLanguage VBScript syntax to .sublime-syntax with https://github.com/aziz/SublimeSyntaxConvertor and it seems to be working OK. Certainly cumbersome to set up though.

@keith-hall good call, but it doesn't work - code highlighting is only active inside specific markup.

seems like it works fine here image

keith-hall avatar Feb 14 '22 20:02 keith-hall

Hmm OK I was confused that bat --list-languages would report HTML (ASP) and not ASP.

That said, while better than nothing, this ASP syntax configuration (right) seem specialised to basic ASP scripting and is quite limited (and often confused) compared to the VBScript one (left): image

Okay. I'd be in favor of adding the specialized VBScript syntax. What do you think @keith-hall?

sharkdp avatar Mar 06 '22 19:03 sharkdp

Yes, I think it makes sense to have a specialized VBScript syntax, because although similar to ASP, the ASP syntax definition is very strict.

keith-hall avatar Mar 06 '22 22:03 keith-hall