Skip to content

Gnikit/issue486 #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Fixed `error stop variable` syntax highlighting
([#486](https://github.com/fortran-lang/vscode-fortran-support/issues/486))
- Fixed issue with linter cache containing outdated folders
([#464](https://github.com/fortran-lang/vscode-fortran-support/issues/464))
- Fixed slow performance of very long lines by using a different solution for
Expand Down
3 changes: 3 additions & 0 deletions syntaxes/fortran_free-form.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,9 @@
{
"include": "#string-operators"
},
{
"include": "#variable"
},
{
"include": "#invalid-character"
}
Expand Down
4 changes: 4 additions & 0 deletions test/resources/error-stop.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
error stop
error stop 10
error stop "val"//"10"
error stop label
21 changes: 21 additions & 0 deletions test/resources/error-stop.f90.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
>error stop
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
>error stop 10
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran
# ^^ source.fortran.free meta.statement.control.errorstop.fortran constant.numeric.fortran
>error stop "val"//"10"
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.begin.fortran
# ^^^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.end.fortran
# ^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.other.concatination.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.begin.fortran
# ^^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran string.quoted.double.fortran punctuation.definition.string.end.fortran
>error stop label
#^^^^^^^^^^ source.fortran.free meta.statement.control.errorstop.fortran keyword.control.errorstop.fortran
# ^ source.fortran.free meta.statement.control.errorstop.fortran
# ^^^^^ source.fortran.free meta.statement.control.errorstop.fortran meta.parameter.fortran
>