File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import php from "./grammars/php"
1919import * as python from "./grammars/python"
2020import ruby from "./grammars/ruby"
2121import shell from "./grammars/shell"
22- import * as windows from "./grammars/windows"
22+ import windows from "./grammars/windows"
2323
2424const Grammars = {
2525 ...grammarMap ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments