Skip to content

Commit

Permalink
(fortran) added block and endblock keywords (#2343)
Browse files Browse the repository at this point in the history
* Added Fortran `block` statement.
* Added Fortran `endblock` statement.

- Closes #2342.
  • Loading branch information
interkosmos authored and joshgoebel committed Jan 3, 2020
1 parent 701184e commit 42f1df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ Core Changes:

Language Improvements:

- (fortran) added `block` and `endblock` keywords (#2343) [Philipp Engel][]
- (javascript) support jsx fragments (#2333) [Josh Goebel][]
- (ini) support TOML arrays, clean up grammar (#2335) [Josh Goebel][]
- (vbnet) add nameof operator to the keywords (#2329) [Youssef Victor][]
- (stan) updated with improved coverage of language keywords and patterns. (#1829) [Jeffrey Arnold][]

[Jeffrey Arnold]: https://github.com/jrnold
[Josh Goebel]: https://github.com/yyyc514
[Philipp Engel]: https://github.com/interkosmos
[Youssef Victor]: https://github.com/Youssef1313


Expand Down
2 changes: 1 addition & 1 deletion src/languages/fortran.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function(hljs) {
var F_KEYWORDS = {
literal: '.False. .True.',
keyword: 'kind do while private call intrinsic where elsewhere ' +
'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' +
'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock ' +
'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' +
'goto save else use module select case ' +
'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' +
Expand Down

0 comments on commit 42f1df4

Please sign in to comment.