Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Vim Script: comments that look like strings. #1540

Open
ianlewis opened this issue Aug 23, 2024 · 1 comment
Open

[bug] Vim Script: comments that look like strings. #1540

ianlewis opened this issue Aug 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ianlewis
Copy link
Owner

Some comments look like strings and should be parsed as such. However, the current scanner scans the comment as if it was a string because it has a closing double quote.

" set x
let x="hello" "I am a comment not a string"

However, since even syntax highlighters get this wrong, It's probably not a common problem. Especially with TODO comments.

@ianlewis ianlewis added the bug Something isn't working label Aug 23, 2024
@ianlewis ianlewis self-assigned this Aug 23, 2024
@ianlewis
Copy link
Owner Author

This is also an issue for comments at the start of the line. This may be a more common occurrence.

" TODO: I am a TODO comment"
let x ="hello"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant