File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 var segs = [ ] , unmatched , left_context ,
3636 next_match_idx = 0 , prev_match_idx = 0
3737 ;
38-
38+
3939 while ( next_match_idx < code . length ) {
4040 unmatched = "" ;
4141
7676 }
7777 else if (
7878 match [ 0 ] . match ( / f u n c t i o n | r e t u r n | v a r | l e t | c o n s t | f o r | w h i l e | d o | i f | e l s e | t r y | c a t c h | f i n a l l y | t h r o w | b r e a k | c o n t i n u e | s w i t c h | c a s e | d e f a u l t | d e l e t e | d e b u g g e r | i n | i n s t a n c e o f | n e w | t h i s | t y p e o f | v o i d | w i t h | c l a s s | e x p o r t | i m p o r t | e x t e n d s | s u p e r | y i e l d / ) &&
79- ! left_context . match ( / \. $ / )
79+ ! left_context . match ( / \. \s * $ / )
8080 ) {
8181 segs . push ( {
8282 type : SEGMENT_KEYWORD ,
108108
109109 segs = split ( seg . val ) ;
110110 if ( segs . length > 0 ) {
111- segs . unshift ( i , 1 ) ; // add splice arguments onto front of array
112- segments . splice . apply ( segments , segs ) ;
111+ segments . splice . apply ( [ i , 1 ] . concat ( segments ) , segs ) ;
113112 i += segs . length - 2 ;
114113 }
115114 }
You can’t perform that action at this time.
0 commit comments