fix(theme-common): fix missing code block MagicComments style in Visual Basic (.NET) 16 (#9727)

This commit is contained in:
Tatsunori Uchino 2024-01-13 05:13:24 +09:00 committed by sebastien
parent 141e360a83
commit f55aad181f
2 changed files with 23 additions and 5 deletions

View file

@ -28,6 +28,7 @@ const commentPatterns = {
wasm: {start: '\\;\\;', end: ''},
tex: {start: '%', end: ''},
vb: {start: "[']", end: ''},
vbnet: {start: "(?:_\\s*)?[']", end: ''}, // Visual Studio 2019 or later
rem: {start: '[Rr][Ee][Mm]\\b', end: ''},
f90: {start: '!', end: ''}, // Free format only
ml: {start: '\\(\\*', end: '\\*\\)'},
@ -113,10 +114,11 @@ function getAllMagicCommentDirectiveStyles(
return getCommentPattern(['wasm'], magicCommentDirectives);
case 'vb':
case 'vbnet':
case 'vba':
case 'visual-basic':
return getCommentPattern(['vb', 'rem'], magicCommentDirectives);
case 'vbnet':
return getCommentPattern(['vbnet', 'rem'], magicCommentDirectives);
case 'batch':
return getCommentPattern(['rem'], magicCommentDirectives);