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 @@ -18,7 +18,7 @@ import perl from "./grammars/perl"
18
18
import php from "./grammars/php"
19
19
import * as python from "./grammars/python"
20
20
import ruby from "./grammars/ruby"
21
- import * as shell from "./grammars/shell"
21
+ import shell from "./grammars/shell"
22
22
import * as windows from "./grammars/windows"
23
23
24
24
const Grammars = {
Original file line number Diff line number Diff line change 2
2
3
3
import GrammarUtils from "../grammar-utils"
4
4
5
- exports [ "Bash Automated Test System ( Bats)" ] = {
5
+ const Bats = {
6
6
"Selection Based" : {
7
7
command : "bats" ,
8
8
args ( context ) {
@@ -20,7 +20,7 @@ exports["Bash Automated Test System (Bats)"] = {
20
20
} ,
21
21
}
22
22
23
- export const Bash = {
23
+ const Bash = {
24
24
"Selection Based" : {
25
25
command : process . env . SHELL ,
26
26
args ( context ) {
@@ -36,9 +36,9 @@ export const Bash = {
36
36
} ,
37
37
}
38
38
39
- exports [ " Shell Script" ] = exports . Bash
39
+ const Shell = Bash
40
40
41
- exports [ "Shell Script ( Fish)" ] = {
41
+ const Fish = {
42
42
"Selection Based" : {
43
43
command : "fish" ,
44
44
args ( context ) {
@@ -54,7 +54,7 @@ exports["Shell Script (Fish)"] = {
54
54
} ,
55
55
}
56
56
57
- export const Tcl = {
57
+ const Tcl = {
58
58
"Selection Based" : {
59
59
command : "tclsh" ,
60
60
args ( context ) {
@@ -71,3 +71,12 @@ export const Tcl = {
71
71
} ,
72
72
} ,
73
73
}
74
+
75
+ const ShellGrammars = {
76
+ "Bash Automated Test System (Bats)" : Bats ,
77
+ Bash,
78
+ Tcl,
79
+ "Shell Script" : Shell ,
80
+ "Shell Script (Fish)" : Fish ,
81
+ }
82
+ export default ShellGrammars
You can’t perform that action at this time.
0 commit comments