You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: Incorrect Syntax Highlighting for VB.NET in Monaco Editor
Description
When using Monaco Editor to highlight VB.NET code, the syntax highlighting renders incorrectly under certain conditions. Specifically, when the following VB.NET code is entered:
Public Class Form1
Private Sub abc()
End Sub
End Class
The End Sub and Sub keywords are incorrectly rendered in green (as if they were comments).
This behavior does not align with the expected VB.NET syntax highlighting rules.
Steps to Reproduce
Set the language of Monaco Editor to vb.
Paste the following VB.NET code into the editor:
Public Class Form1
Private Sub abc()
End Sub
End Class
Observe that the End Sub and Sub keywords are highlighted in green.
Expected Behavior
End Sub and Sub should be rendered in a different color, as per VB.NET syntax highlighting conventions, not in green.
Actual Behavior
End Sub and Sub are highlighted in green, which is incorrect.
Environment
Monaco Editor Version: [monaco-editor-0.52.2]
Browser: [Google Chrome-131.0.6778.140]
Operating System: [Windows 10]
Screenshots
Additional Notes
This issue appears to be related to the VB.NET syntax tokenizer used by Monaco Editor. It seems to misidentify certain keywords as comments.
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
Bug Report: Incorrect Syntax Highlighting for VB.NET in Monaco Editor
Description
When using Monaco Editor to highlight VB.NET code, the syntax highlighting renders incorrectly under certain conditions. Specifically, when the following VB.NET code is entered:
Public Class Form1
Private Sub abc()
End Sub
End Class
The End Sub and Sub keywords are incorrectly rendered in green (as if they were comments).
This behavior does not align with the expected VB.NET syntax highlighting rules.
Steps to Reproduce
Set the language of Monaco Editor to vb.
Paste the following VB.NET code into the editor:
Public Class Form1
Private Sub abc()
End Sub
End Class
Observe that the End Sub and Sub keywords are highlighted in green.
Expected Behavior
End Sub and Sub should be rendered in a different color, as per VB.NET syntax highlighting conventions, not in green.
Actual Behavior
End Sub and Sub are highlighted in green, which is incorrect.
Environment
Monaco Editor Version: [monaco-editor-0.52.2]
Browser: [Google Chrome-131.0.6778.140]
Operating System: [Windows 10]
Screenshots
Additional Notes
This issue appears to be related to the VB.NET syntax tokenizer used by Monaco Editor. It seems to misidentify certain keywords as comments.
The text was updated successfully, but these errors were encountered: