-
-
Notifications
You must be signed in to change notification settings - Fork 42
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(parser): variable types with line continuation character not parsed #235
Comments
I missed this type of syntax, I actually didn't know this was possible. Even syntax highlighting seems to break when splitting an intrinsic type with |
This is just a minor example. Why don't you figure out a roadmap how we can use LFortran's parser and semantics for fortls? That way we can slowly work towards it and fix all issues eventually. |
Let's continue this conversation in #85 |
I am not sure if this is possible to fix with the native fortls parser since the REGEX reads something like Just another reason why a compiler parser would do a better job at capturing such edge cases. I will leave this open for now and see if and how some small number of the regular expression can be modified with lookarounds. If the performance difference (I will have to also write some tools to get performance stats) is too great or I can't figure this out in fortls I will mark it as |
The support is more permissive than the standard dictates and obviously does not comform with all the LSP responses e.g. completions under certain conditions. Fixes #235
Can't find the symbol "i" if you put the cursor at the last line and press F12 in VSCode
The following works:
I just tested one of our examples from LFortran. I don't know for sure, but I think you have to have a full Fortran parser to parse everything.
The text was updated successfully, but these errors were encountered: