File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import perl from "./grammars/perl"
1818import php from "./grammars/php"
1919import * as python from "./grammars/python"
2020import ruby from "./grammars/ruby"
21- import * as shell from "./grammars/shell"
21+ import shell from "./grammars/shell"
2222import * as windows from "./grammars/windows"
2323
2424const Grammars = {
Original file line number Diff line number Diff line change 22
33import GrammarUtils from "../grammar-utils"
44
5- exports [ "Bash Automated Test System ( Bats)" ] = {
5+ const Bats = {
66 "Selection Based" : {
77 command : "bats" ,
88 args ( context ) {
@@ -20,7 +20,7 @@ exports["Bash Automated Test System (Bats)"] = {
2020 } ,
2121}
2222
23- export const Bash = {
23+ const Bash = {
2424 "Selection Based" : {
2525 command : process . env . SHELL ,
2626 args ( context ) {
@@ -36,9 +36,9 @@ export const Bash = {
3636 } ,
3737}
3838
39- exports [ " Shell Script" ] = exports . Bash
39+ const Shell = Bash
4040
41- exports [ "Shell Script ( Fish)" ] = {
41+ const Fish = {
4242 "Selection Based" : {
4343 command : "fish" ,
4444 args ( context ) {
@@ -54,7 +54,7 @@ exports["Shell Script (Fish)"] = {
5454 } ,
5555}
5656
57- export const Tcl = {
57+ const Tcl = {
5858 "Selection Based" : {
5959 command : "tclsh" ,
6060 args ( context ) {
@@ -71,3 +71,12 @@ export const Tcl = {
7171 } ,
7272 } ,
7373}
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