Skip to content

Highlight of ERROR STOP #486

Closed
Closed
@han190

Description

@han190

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).

image

I think this issue is related to the regex definition of "error-stop-statement" in the json file,

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions