Skip to content

Commit 2affb98

Browse files
committed
fix: fix the Perl exports
1 parent c1db695 commit 2affb98

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

lib/grammars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import js from "./grammars/javascript"
1414
import lisp from "./grammars/lisp"
1515
import lua from "./grammars/lua"
1616
import ml from "./grammars/ml"
17-
import * as perl from "./grammars/perl"
17+
import perl from "./grammars/perl"
1818
import php from "./grammars/php"
1919
import * as python from "./grammars/python"
2020
import ruby from "./grammars/ruby"

lib/grammars/perl.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import GrammarUtils from "../grammar-utils"
44

5-
export const Perl = {
5+
const Perl = {
66
"Selection Based": {
77
command: "perl",
88
args(context) {
@@ -20,7 +20,7 @@ export const Perl = {
2020
},
2121
}
2222

23-
exports.Raku = {
23+
const Raku = {
2424
"Selection Based": {
2525
command: "raku",
2626
args(context) {
@@ -36,4 +36,11 @@ exports.Raku = {
3636
},
3737
}
3838

39-
exports["Perl 6"] = exports.Raku
39+
const Perl6 = Raku
40+
41+
const PerlGrammars = {
42+
Perl,
43+
Raku,
44+
"Perl 6": Perl6,
45+
}
46+
export default PerlGrammars

0 commit comments

Comments
 (0)