File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 230
230
"prefer-numeric-literals" : " error" ,
231
231
"prefer-reflect" : " off" ,
232
232
"prefer-rest-params" : " off" ,
233
- "prefer-spread" : " error " ,
233
+ "prefer-spread" : " off " ,
234
234
"prefer-template" : " off" ,
235
235
"quote-props" : " off" ,
236
236
"quotes" : " off" ,
Original file line number Diff line number Diff line change @@ -61,19 +61,24 @@ SPEG_actions.prototype.parsing_ordered_choice = function(node) {
61
61
} ;
62
62
63
63
SPEG_actions . prototype . parsing_sub_expression = function ( node ) {
64
- return function ( ) {
65
- var result = node . children [ 1 ] . children [ 0 ] . apply ( this , arguments ) ;
64
+ return function ( state ) {
65
+ var result = node . children [ 1 ] . children [ 0 ] . call ( this , state ) ;
66
+ var tags = node . children [ 0 ] . children . map ( function ( tag_node ) {
67
+ return tag_node . children [ 0 ] . match ;
68
+ } ) ;
66
69
if ( result ) {
67
- var tags = node . children [ 0 ] . children . map ( function ( tag_node ) {
68
- return tag_node . children [ 0 ] . match ;
69
- } ) ;
70
70
if ( tags . length > 0 ) {
71
71
if ( result . tags ) {
72
72
result . tags = tags . concat ( result . tags ) ;
73
73
} else {
74
74
result . tags = tags ;
75
75
}
76
76
}
77
+ } else {
78
+ if ( ! state . failedTags ) {
79
+ state . failedTags = [ ] ;
80
+ }
81
+ state . failedTags . push . apply ( state . failedTags , tags ) ;
77
82
}
78
83
return result ;
79
84
}
You can’t perform that action at this time.
0 commit comments