-
Notifications
You must be signed in to change notification settings - Fork 57
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
Preprocessor statements in declarations break parsing #203
Comments
BTW this has now been fixed in |
Actually @rwirth , this is not entirely fixed. If the variable definition spans multiple lines and there are preprocessor directives inside it, the preprocessor directives are now ignored. The reason why I chose to do that is because currently we would have to create a second preprocessor parser to evaluate So instead of doing that, I will at some point sit down and implement the preprocessor similarly to the rest of the Fortran objects. you can find the solution in v2.0.0 of |
My project contains a lot of declarations like this:
The variables
var1
andvar2
do not get recognized by fortls and I do not get a hover. The debug log shows fortls returning null results:Preprocessing is activated for
.f90
files.I have temporarily fixed this by replacing the preprocessor directives with a string of spaces of equal length when performing the
output_file.append
inpreprocess_file
. This seems to work but I do not know if it breaks something else.The text was updated successfully, but these errors were encountered: