fixup bc63ecca: unget only if matched
This commit is contained in:
		
							parent
							
								
									af7a402bd3
								
							
						
					
					
						commit
						b2ab3d45ad
					
				| 
						 | 
				
			
			@ -2288,12 +2288,13 @@ Parser.prototype = function() {
 | 
			
		|||
                        value += tokenStream.token().value;
 | 
			
		||||
                        value += this._readWhitespace();
 | 
			
		||||
 | 
			
		||||
                        if (tokenStream.match([Tokens.IDENT])
 | 
			
		||||
                        && tokenStream.token().value.toLowerCase() == 'i') {
 | 
			
		||||
                            value += tokenStream.token().value;
 | 
			
		||||
                            value += this._readWhitespace();
 | 
			
		||||
                        } else {
 | 
			
		||||
                            tokenStream.unget();
 | 
			
		||||
                        if (tokenStream.match([Tokens.IDENT])) {
 | 
			
		||||
                            if (tokenStream.token().value.toLowerCase() == 'i') {
 | 
			
		||||
                                value += tokenStream.token().value;
 | 
			
		||||
                                value += this._readWhitespace();
 | 
			
		||||
                            } else {
 | 
			
		||||
                                tokenStream.unget();
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user