Open plevold opened 2 years ago
@plevold thanks for the bug report. I will have a look, but I think it might be challenging to tell these two apart without a considerable performance hit. I will check it out
I had a look at this and I am afraid the normal syntax highlighting will not suffice to solve this. As far as I can tell there is no way to create a regex that will distinguish between a user defined format
and the format
statement. For that we will need to use the AST scopes, luckily the language server knows about scopes but I will have to implement a semantics token provider to allow this.
This looks like it's going to be a pretty big piece of work so I won't probably get around to it for quite some time.
@plevold is this issue still open?
Functions or variables named the same as a fortran keyword is highlighted differently than other functions or arrays in some situations. I appreciate that this might be a quite challenging task, but it would be really nice if the syntax highlighting could identify if the token is actually a reserved keyword or if it's a variable or function with the same name.
Screenshots![image](https://user-images.githubusercontent.com/10157556/158330025-b222090f-1ccf-46c1-83aa-04440566b61d.png)
Code sample
To Reproduce Paste code above
Fortran Form Free form, but strictly speaking also fixed form
Build info (please complete the following information):