-
-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Hi, thanks for the great work! I have a little issue here regarding to the error stop statement.
If I use an character variable instead of an actual string after error stop, it will be highlighted as invalid. The corresponding textmate scope is invalid.error.character.fortran. I am not sure if this is reproducible on other computers, but on my laptop it appears even in the simplest case (like the image shown below).
I think this issue is related to the regex definition of "error-stop-statement" in the json file,
| "error-stop-statement": { |
where only "#constants" and "#string-operators" are allowed after error stop. Apparently, it is difficult for the regex definition to capture all scalar character constant expressions and scalar integer constant expressions. Since I know you are also the author of fortls (Great work and thanks again!), I wonder if it is possible to use fortls instead of a regex definition to highlight what comes after error stop?
