Skip to content

Commit 58ec13a

Browse files
committed
Fixes nopass pointer highlighting
Fixes nopass pointer erroneous syntax highlighting #318
1 parent 2cafc11 commit 58ec13a

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
- Fixes linter activation from `Disabled` to some compiler `X` without having
1717
to restart the extension
1818
([#296](https://github.com/krvajal/vscode-fortran-support/issues/296))
19+
- Fixes nopass pointer erroneous syntax highlighting
20+
([#318](https://github.com/krvajal/vscode-fortran-support/issues/318))
1921

2022
### Changed
2123

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,9 @@
25272527
},
25282528
{
25292529
"include": "#invalid-word"
2530+
},
2531+
{
2532+
"include": "#pointer-attribute"
25302533
}
25312534
]
25322535
}

test/resources/nopass.f90

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MODULE nopass_test
2+
TYPE :: vector
3+
INTEGER(4) :: n
4+
REAL(8), POINTER, DIMENSION(:) :: v => NULL()
5+
PROCEDURE(fort_wrap), NOPASS, POINTER :: bound_nopass => NULL()
6+
CONTAINS
7+
PROCEDURE :: create => vector_create !< Doc 1
8+
PROCEDURE :: norm => vector_norm !< Doc 2
9+
PROCEDURE, PASS(self) :: bound_pass => bound_pass
10+
END TYPE vector
11+
END MODULE nopass_test

0 commit comments

Comments
 (0)