Skip to content

Visual Basic 6 (VB6) code is identified as Visual Basic for Applications (VBA).

Summary

Per github.com/github-linguist/linguist/issues/5824#issuecomment-1281743474, if we exclude the extensions already associated to VBA, solely:

Extension Type
.ctl User Control file
.dsr Active Designer file

...use the VB6 syntax.

Steps to reproduce

Create VB6 code in a GitLab repository.

Example Project

gitlab.com/pavel.reznicek/pexeso-meteso/-/tree/a0b3d9c5290fc6f6c1e17d3f487c0d1cc9396da2

What is the current bug behavior?

It is identified as VBA.

What is the expected correct behavior?

It should be identified as VB6 code.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

  1. github.com/github-linguist/linguist/pull/6155/files

  2. github.com/github-linguist/linguist/pull/6355/files

  3. github.com/tannerhelland/PhotoDemon/pull/457/files

  4. github.com/github-linguist/linguist/issues/5824#issuecomment-1281743474