File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import php from "./grammars/php"
19
19
import * as python from "./grammars/python"
20
20
import ruby from "./grammars/ruby"
21
21
import shell from "./grammars/shell"
22
- import * as windows from "./grammars/windows"
22
+ import windows from "./grammars/windows"
23
23
24
24
const Grammars = {
25
25
...grammarMap ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import GrammarUtils from "../grammar-utils"
4
4
5
5
//if GrammarUtils.OperatingSystem.isWindows()
6
6
7
- export const AutoHotKey = {
7
+ const AutoHotKey = {
8
8
"Selection Based" : {
9
9
command : "AutoHotKey" ,
10
10
args ( context ) {
@@ -22,7 +22,7 @@ export const AutoHotKey = {
22
22
} ,
23
23
}
24
24
25
- export const Batch = {
25
+ const Batch = {
26
26
"File Based" : {
27
27
command : "cmd.exe" ,
28
28
args ( { filepath } ) {
@@ -31,9 +31,9 @@ export const Batch = {
31
31
} ,
32
32
}
33
33
34
- exports [ "Batch File" ] = exports . Batch
34
+ const BatchFile = Batch
35
35
36
- export const PowerShell = {
36
+ const PowerShell = {
37
37
"Selection Based" : {
38
38
command : "powershell" ,
39
39
args ( context ) {
@@ -49,7 +49,7 @@ export const PowerShell = {
49
49
} ,
50
50
}
51
51
52
- export const VBScript = {
52
+ const VBScript = {
53
53
"Selection Based" : {
54
54
command : "cscript" ,
55
55
args ( context ) {
@@ -66,3 +66,12 @@ export const VBScript = {
66
66
} ,
67
67
} ,
68
68
}
69
+
70
+ const WindowsGrammars = {
71
+ AutoHotKey,
72
+ Batch,
73
+ "Batch File" : BatchFile ,
74
+ PowerShell,
75
+ VBScript,
76
+ }
77
+ export default WindowsGrammars
You can’t perform that action at this time.
0 commit comments