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

tab in source file may lead to irrelevant syntax errors #60

Open
lebotlan opened this issue Oct 11, 2017 · 0 comments
Open

tab in source file may lead to irrelevant syntax errors #60

lebotlan opened this issue Oct 11, 2017 · 0 comments

Comments

@lebotlan
Copy link

lebotlan commented Oct 11, 2017

Consider a source file which contains tabs (\t)

tab.ml.gz

(tab.ml md5sum is 6684e09f9bb32a7ca8a570c86caa398e -- to check that no character conversion occured.)

let f x = (* the tabs are here *) x + 1 + 2 + (3 + 4)

When opening it in ocaml-top and running it, strange syntax errors appear as if the line with tabs was not completely parsed.

Syntax error: ')' expected, the highlighted '(' might be unmatched

Note : a source file may contain tabs when it is edited with another text editor (e.g. vi, or the kind of indecent text editor that students use at home).

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

1 participant