Skip to content

Commit d4f1b58

Browse files
committed
fix: fix the Fortran exports
1 parent 49d165c commit d4f1b58

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

lib/grammars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import c from "./grammars/c"
77
import coffeescript from "./grammars/coffeescript"
88
import database from "./grammars/database"
99
import doc from "./grammars/doc"
10-
import * as fortran from "./grammars/fortran"
1110
import * as haskell from "./grammars/haskell"
11+
import fortran from "./grammars/fortran"
1212
import * as java from "./grammars/java"
1313
import * as js from "./grammars/javascript"
1414
import lisp from "./grammars/lisp"

lib/grammars/fortran.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"use babel"
22

3-
import path from "path"
43
import GrammarUtils from "../grammar-utils"
54
const { command } = GrammarUtils
65

7-
exports["Fortran - Fixed Form"] = {
6+
const FortranFixedForm = {
87
"File Based": {
98
command,
109
args({ filepath }) {
@@ -13,7 +12,7 @@ exports["Fortran - Fixed Form"] = {
1312
},
1413
},
1514
}
16-
exports["Fortran - Free Form"] = {
15+
const FortranFreeForm = {
1716
"File Based": {
1817
command,
1918
args({ filepath }) {
@@ -22,5 +21,14 @@ exports["Fortran - Free Form"] = {
2221
},
2322
},
2423
}
25-
exports["Fortran - Modern"] = exports["Fortran - Free Form"]
26-
exports["Fortran - Punchcard"] = exports["Fortran - Fixed Form"]
24+
const FortranModern = FortranFreeForm
25+
const FortranPunchcard = FortranFixedForm
26+
27+
const Fortran = {
28+
"Fortran": FortranModern,
29+
"Fortran - Fixed Form": FortranFixedForm,
30+
"Fortran - Free Form": FortranFreeForm,
31+
"Fortran - Modern": FortranModern,
32+
"Fortran - Punchcard": FortranPunchcard,
33+
}
34+
export default Fortran

0 commit comments

Comments
 (0)