Skip to content

Fortran. Character variables ending in backslash cause highlighting issues. #1508

@ecasglez

Description

@ecasglez

I have used the demo section of your website to produce the following examples. It also happens in a local installation with version 2.6.1

I have some variables containing paths in Fortran. If the variables end in any character other than '\' everything works fine as in the following figure.

IssueSlashOk2

However, if the variables end in '\', the highlighting is wrong as in the following figure. You can see that line 5 containing WRITE(*,*) pathname is in red and in line 6 pathname = is also in red, and they shouldn't. In addition, in line 6 there are some frames around the backslashes.

IssueSlashBad

If there is only one line with a variable ending in '\' as in the following figure, line 5 (with the WRITE statement) is now ok, but there are the frames around the backslashes.

IssueSlashOk1

I am attaching the code used as examples to this issue.

IssueBackslash.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions