File tree 4 files changed +628
-468
lines changed
4 files changed +628
-468
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ argument "command argument"
62
62
= commandName
63
63
/ processSubstitution
64
64
65
- concatenation
65
+ concatenation "concatenation of strings and/or variables"
66
66
= pieces :( glob
67
67
/ bareword
68
68
/ environmentVariable
@@ -72,8 +72,8 @@ concatenation
72
72
/ doubleQuote
73
73
)+
74
74
75
- bareword
76
- = cs :barewordChar +
75
+ bareword "bareword"
76
+ = ! '#' cs :barewordChar +
77
77
78
78
barewordChar
79
79
= '\\ ' chr :barewordMeta { return chr }
@@ -157,8 +157,9 @@ pipe =
157
157
space
158
158
= " " / "\t "
159
159
160
- spaceNL
161
- = space / "\n "
160
+ spaceNL = space / "\n " / comment
161
+
162
+ comment = '#' [^\n ]* ("\n " / EOF )
162
163
163
164
keyword
164
165
= ( "while"
Original file line number Diff line number Diff line change 4
4
"description" : " Parse bash scripts into AST's" ,
5
5
"main" : " parser.js" ,
6
6
"dependencies" : {
7
+ "array-map" : " 0.0.0" ,
7
8
"isarray" : " 0.0.1" ,
8
- "array-map " : " 0.0 .0"
9
+ "parsimmon " : " ^0.7 .0"
9
10
},
10
11
"scripts" : {
11
12
"test" : " tape tests/*.js" ,
34
35
}
35
36
},
36
37
"devDependencies" : {
37
- "pegjs" : " ~0.8 .0" ,
38
- "pegjs-override-action" : " 0.0.7 " ,
38
+ "pegjs" : " ~0.9 .0" ,
39
+ "pegjs-override-action" : " 0.2.3 " ,
39
40
"tape" : " ^4.5.1" ,
40
41
"markdown-code-blocks" : " 0.0.1" ,
41
42
"xtend" : " ~2.1.1"
You can’t perform that action at this time.
0 commit comments