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 230230 "prefer-numeric-literals" : " error" ,
231231 "prefer-reflect" : " off" ,
232232 "prefer-rest-params" : " off" ,
233- "prefer-spread" : " error " ,
233+ "prefer-spread" : " off " ,
234234 "prefer-template" : " off" ,
235235 "quote-props" : " off" ,
236236 "quotes" : " off" ,
Original file line number Diff line number Diff line change @@ -61,19 +61,24 @@ SPEG_actions.prototype.parsing_ordered_choice = function(node) {
6161} ;
6262
6363SPEG_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+ } ) ;
6669 if ( result ) {
67- var tags = node . children [ 0 ] . children . map ( function ( tag_node ) {
68- return tag_node . children [ 0 ] . match ;
69- } ) ;
7070 if ( tags . length > 0 ) {
7171 if ( result . tags ) {
7272 result . tags = tags . concat ( result . tags ) ;
7373 } else {
7474 result . tags = tags ;
7575 }
7676 }
77+ } else {
78+ if ( ! state . failedTags ) {
79+ state . failedTags = [ ] ;
80+ }
81+ state . failedTags . push . apply ( state . failedTags , tags ) ;
7782 }
7883 return result ;
7984 }
You can’t perform that action at this time.
0 commit comments