Skip to content

Commit 7d24885

Browse files
authored
Merge pull request #506 from fortran-lang:gnikit/issue486
Gnikit/issue486
2 parents b3a649b + 03c8844 commit 7d24885

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7070

7171
### Fixed
7272

73+
- Fixed `error stop variable` syntax highlighting
74+
([#486](https://github.com/fortran-lang/vscode-fortran-support/issues/486))
7375
- Fixed issue with linter cache containing outdated folders
7476
([#464](https://github.com/fortran-lang/vscode-fortran-support/issues/464))
7577
- Fixed slow performance of very long lines by using a different solution for

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,6 +2203,9 @@
22032203
{
22042204
"include": "#string-operators"
22052205
},
2206+
{
2207+
"include": "#variable"
2208+
},
22062209
{
22072210
"include": "#invalid-character"
22082211
}

test/resources/error-stop.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error stop
2+
error stop 10
3+
error stop "val"//"10"
4+
error stop label

test/resources/error-stop.f90.snap

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
>error stop
2+
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
3+
>error stop 10
4+
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
5+
# ^ source.fortran.free meta.statement.control.errorstop.fortran
6+
# ^^ source.fortran.free meta.statement.control.errorstop.fortran constant.numeric.fortran
7+
>error stop "val"//"10"
8+
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
9+
# ^ source.fortran.free meta.statement.control.errorstop.fortran
10+
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.begin.fortran
11+
# ^^^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran
12+
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.end.fortran
13+
# ^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.other.concatination.fortran
14+
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.begin.fortran
15+
# ^^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran
16+
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.end.fortran
17+
>error stop label
18+
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
19+
# ^ source.fortran.free meta.statement.control.errorstop.fortran
20+
# ^^^^^ source.fortran.free meta.statement.control.errorstop.fortran meta.parameter.fortran
21+
>

0 commit comments

Comments
 (0)