Skip to content

Commit

Permalink
Adding fortran-modern support
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed Sep 2, 2018
1 parent a772f37 commit 8762226
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Change Log

## [1.2.6] (2018-06-10)
## [1.2.6] (2018-09-02)
### Features
* Adding support for Flax ([71f6326](https://github.com/aaron-bond/better-comments/commit/71f6326)), merges [#76](https://github.com/aaron-bond/better-comments/issues/76)
* Adding support for Fortran (modern) ([](https://github.com/aaron-bond/better-comments/commit/)), closes [#89](https://github.com/aaron-bond/better-comments/issues/89)
### House Keeping
* Updating README to reflect actual styntax better ([71f9019](https://github.com/aaron-bond/better-comments/commit/71f9019)), merges [#77](https://github.com/aaron-bond/better-comments/issues/77)

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"onLanguage:erlang",
"onLanguage:flax",
"onLanguage:fsharp",
"onLanguage:fortran-modern",
"onLanguage:go",
"onLanguage:graphql",
"onLanguage:groovy",
Expand Down
4 changes: 4 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ export class Parser {
this.supportedLanguage = this.contributions.highlightPlainText;
break;

case "fortran-modern":
this.delimiter = "c";
break;

default:
this.supportedLanguage = false;
break;
Expand Down
13 changes: 13 additions & 0 deletions src/test/samples/fortran.f03
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
program circle
real r, area

c ! This program reads a real number r and prints
c * the area of a circle with radius r.

write (*,*) 'Give radius r:'
read (*,*) r
area = 3.14159*r*r
write (*,*) 'Area = ', area

stop
end

0 comments on commit 8762226

Please sign in to comment.