Skip to content

Syntax highlighting fails at inline forall statements #169

Closed
@ChrisspyB

Description

@ChrisspyB

Hi all - nice extension, thanks for your work in maintaining this repo.

The syntax highlighting appears to be incorrect for forall statements that consist of only one line. Please see the following example:

Screenshot 2020-04-08 at 17 26 27

In line 4, arr(i) = i * i has been highlighted in red, even though this is valid syntax and the file compiles (gfortran). The error propagates to other parts of the program too: notice that the end statement is also no longer highlighted here. For comparison, compare with the highlighting when the forall removed.

Screenshot 2020-04-08 at 17 26 37

In more complex files, this error propagation becomes quite severe, causing a large number of syntax-highlighting issues, rendering some files almost unreadable.

Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions