Skip to content

Commit c1db695

Browse files
committed
fix: fix the Lua exports
1 parent 1e7e9d8 commit c1db695

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
@@ -12,7 +12,7 @@ import haskell from "./grammars/haskell"
1212
import * as java from "./grammars/java"
1313
import js from "./grammars/javascript"
1414
import lisp from "./grammars/lisp"
15-
import * as lua from "./grammars/lua"
15+
import lua from "./grammars/lua"
1616
import ml from "./grammars/ml"
1717
import * as perl from "./grammars/perl"
1818
import php from "./grammars/php"

lib/grammars/lua.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 Lua = {
5+
const Lua = {
66
"Selection Based": {
77
command: "lua",
88
args(context) {
@@ -20,9 +20,9 @@ export const Lua = {
2020
},
2121
}
2222

23-
exports["Lua (WoW)"] = exports.Lua
23+
const WOW = Lua
2424

25-
export const MoonScript = {
25+
const MoonScript = {
2626
"Selection Based": {
2727
command: "moon",
2828
args(context) {
@@ -37,3 +37,10 @@ export const MoonScript = {
3737
},
3838
},
3939
}
40+
41+
const LuaGrammars = {
42+
Lua,
43+
"Lua (WoW)": WOW,
44+
MoonScript,
45+
}
46+
export default LuaGrammars

0 commit comments

Comments
 (0)