Closed fredcouderc closed 7 months ago
Off the top of my head it should be possible. The main complication would be if the preprocessor heuristics interfered with the main fortls functionality (which I think is the case). Currently and intentionally, these 2 are quite separate.
In general, the expectations for fortls should be that it is able to provide LSP support for valid (or soon to be valid) Fortran code. I am afraid that any syntax outside of that like convenience modifications and vendor specific extensions fall at the bottom of the priority list.
I am working on a PR for a similar issue (spaces between the hash and the directive), so I'll test out adding spaces in front as well and include that in my submission
For the sake of code readability, I like to be able to leave blank spaces front of C preprocessing directives,
which I then process with sed directives before compilation in my makefile.
It is possible to add this possibility in regex formulas and have no error of kind:
Variable "r" declared twice in scope
?Thanks very much