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

"~" is incorrectly marked as syntax error #133

Open
bzoli22 opened this issue Apr 5, 2019 · 3 comments
Open

"~" is incorrectly marked as syntax error #133

bzoli22 opened this issue Apr 5, 2019 · 3 comments

Comments

@bzoli22
Copy link

bzoli22 commented Apr 5, 2019

The string literal "~" is marked as syntax error, and the closing " is ignored, messing up the parsing of the rest of the whole source code unit, which is not indexed, leading to syntax errors in all referencing modules.

While "~" is incorrect as a format string (it should be "~~"), it is perfectly acceptable as a string in all other cases.

A possible workaround is to use [$~], but that is a bit difficult to read and requires an explanation in comment.

I don't think this is a grave error or that you should put too much effort into fixing it, but I thought I report it anyway.

Thanks for this great plugin.
I look forward to updates,
Zoltan B.

@artman41
Copy link

artman41 commented Apr 5, 2019

I'd appreciate this one being fixed, I work with several files where several hundred lines are considered a single string by the parser due to this error

@JesperOAndersson
Copy link

I have the same issue as artman41. And this is something i cant change code wise cause this is widely used in a legacy product.

@pgourlain
Copy link
Owner

Hi,

Sorry for the delay...

Thanks for your report.
Could you add a sample of your problem, if already exists into this repository : https://github.com/pgourlain/erlang-vscode-test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants