Skip to content

Commit

Permalink
Update dotnet.py with _obas aliases (#2170)
Browse files Browse the repository at this point in the history
DotNet lexer works with LibreOffice Basic, OpenOffice Basic, and StarOffice Basic.

* Update _mapping.py
  • Loading branch information
flywire committed Jun 29, 2022
1 parent 4bd02e2 commit d76d361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygments/lexers/_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
'VGLLexer': ('pygments.lexers.dsls', 'VGL', ('vgl',), ('*.rpf',), ()),
'ValaLexer': ('pygments.lexers.c_like', 'Vala', ('vala', 'vapi'), ('*.vala', '*.vapi'), ('text/x-vala',)),
'VbNetAspxLexer': ('pygments.lexers.dotnet', 'aspx-vb', ('aspx-vb',), ('*.aspx', '*.asax', '*.ascx', '*.ashx', '*.asmx', '*.axd'), ()),
'VbNetLexer': ('pygments.lexers.dotnet', 'VB.net', ('vb.net', 'vbnet'), ('*.vb', '*.bas'), ('text/x-vbnet', 'text/x-vba')),
'VbNetLexer': ('pygments.lexers.dotnet', 'VB.net', ('vb.net', 'vbnet', 'lobas', 'oobas', 'sobas'), ('*.vb', '*.bas'), ('text/x-vbnet', 'text/x-vba')),
'VelocityHtmlLexer': ('pygments.lexers.templates', 'HTML+Velocity', ('html+velocity',), (), ('text/html+velocity',)),
'VelocityLexer': ('pygments.lexers.templates', 'Velocity', ('velocity',), ('*.vm', '*.fhtml'), ()),
'VelocityXmlLexer': ('pygments.lexers.templates', 'XML+Velocity', ('xml+velocity',), (), ('application/xml+velocity',)),
Expand Down
3 changes: 2 additions & 1 deletion pygments/lexers/dotnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,12 @@ class BooLexer(RegexLexer):
class VbNetLexer(RegexLexer):
"""
For Visual Basic.NET source code.
Also LibreOffice Basic, OpenOffice Basic, and StarOffice Basic.
"""

name = 'VB.net'
url = 'https://docs.microsoft.com/en-us/dotnet/visual-basic/'
aliases = ['vb.net', 'vbnet']
aliases = ['vb.net', 'vbnet', 'lobas', 'oobas', 'sobas']
filenames = ['*.vb', '*.bas']
mimetypes = ['text/x-vbnet', 'text/x-vba'] # (?)

Expand Down

0 comments on commit d76d361

Please sign in to comment.