rosenbrockc / fortpy

Python Emacs Intellisense and Unit Testing Support for Fortran
MIT License
21 stars 4 forks source link

Precompiler Parsing Issue #111

Open mtmoncur opened 7 years ago

mtmoncur commented 7 years ago

If a precompiler tag like #endif is commented out, fortpy still detects it as needing precompilation. This can be fixed by updating the pre-compiler regex to be ^[\s]#endif$ in fortpy.parsers.module.

mtmoncur commented 7 years ago

Actually you need ^[\s]*#endif$ and compile with multiline.