Skip to content

Commit 7db731d

Browse files
committed
fix: fix the Windows exports
1 parent a532457 commit 7db731d

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

lib/grammars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import php from "./grammars/php"
1919
import * as python from "./grammars/python"
2020
import ruby from "./grammars/ruby"
2121
import shell from "./grammars/shell"
22-
import * as windows from "./grammars/windows"
22+
import windows from "./grammars/windows"
2323

2424
const Grammars = {
2525
...grammarMap,

lib/grammars/windows.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import GrammarUtils from "../grammar-utils"
44

55
//if GrammarUtils.OperatingSystem.isWindows()
66

7-
export const AutoHotKey = {
7+
const AutoHotKey = {
88
"Selection Based": {
99
command: "AutoHotKey",
1010
args(context) {
@@ -22,7 +22,7 @@ export const AutoHotKey = {
2222
},
2323
}
2424

25-
export const Batch = {
25+
const Batch = {
2626
"File Based": {
2727
command: "cmd.exe",
2828
args({ filepath }) {
@@ -31,9 +31,9 @@ export const Batch = {
3131
},
3232
}
3333

34-
exports["Batch File"] = exports.Batch
34+
const BatchFile = Batch
3535

36-
export const PowerShell = {
36+
const PowerShell = {
3737
"Selection Based": {
3838
command: "powershell",
3939
args(context) {
@@ -49,7 +49,7 @@ export const PowerShell = {
4949
},
5050
}
5151

52-
export const VBScript = {
52+
const VBScript = {
5353
"Selection Based": {
5454
command: "cscript",
5555
args(context) {
@@ -66,3 +66,12 @@ export const VBScript = {
6666
},
6767
},
6868
}
69+
70+
const WindowsGrammars = {
71+
AutoHotKey,
72+
Batch,
73+
"Batch File": BatchFile,
74+
PowerShell,
75+
VBScript,
76+
}
77+
export default WindowsGrammars

0 commit comments

Comments
 (0)