Skip to content

Commit

Permalink
fix: fix the Perl exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 22, 2021
1 parent c1db695 commit 2affb98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/grammars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import js from "./grammars/javascript"
import lisp from "./grammars/lisp"
import lua from "./grammars/lua"
import ml from "./grammars/ml"
import * as perl from "./grammars/perl"
import perl from "./grammars/perl"
import php from "./grammars/php"
import * as python from "./grammars/python"
import ruby from "./grammars/ruby"
Expand Down
13 changes: 10 additions & 3 deletions lib/grammars/perl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import GrammarUtils from "../grammar-utils"

export const Perl = {
const Perl = {
"Selection Based": {
command: "perl",
args(context) {
Expand All @@ -20,7 +20,7 @@ export const Perl = {
},
}

exports.Raku = {
const Raku = {
"Selection Based": {
command: "raku",
args(context) {
Expand All @@ -36,4 +36,11 @@ exports.Raku = {
},
}

exports["Perl 6"] = exports.Raku
const Perl6 = Raku

const PerlGrammars = {
Perl,
Raku,
"Perl 6": Perl6,
}
export default PerlGrammars

0 comments on commit 2affb98

Please sign in to comment.