klmr / klmr/hyperlight

VB comment

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
16
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```
I found a problem with the comment highlighting with VB.

If you have a single quote comment which has nothing after it the comment
carries onto the next line.

Example:

'
' Test this fails by including Imports System in the last comment
'
Imports System

'
' Test, this is fine
Imports System

I don't quite understand the original regex "/(?:'{1,2}[^']|rem\s).*/i" but I
managed to fix the problem for me by changing it to "/'{1,2}.*?\n/i".
```

Original issue reported on code.google.com by `s...@samclarke.com` on 17 Aug 2011 at 9:40

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the VB comment-highlighting rule and reproduce the supplied examples, focusing on a standalone single quote followed by another comment and then Imports System. Compare the current regex with the proposed alternatives and verify that comments stop at the line ending without changing the case that already works.

Written by the indexing model from the issue text.

Assessment

Tech stack
visualbasic
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.