mirror of https://github.com/t1meshift/js.git
				
				
				
			Fix string literal has quotes
							parent
							
								
									9f0646c6f0
								
							
						
					
					
						commit
						e7f1cc89b9
					
				|  | @ -86,7 +86,8 @@ class LiteralListener(JSBaseListener): | |||
|             value = ctx.BooleanLiteral().getText() == "true" | ||||
|             self._literal = nodes.BooleanLiteral(loc, value) | ||||
|         elif ctx.StringLiteral() is not None: | ||||
|             self._literal = nodes.StringLiteral(loc, ctx.StringLiteral().getText()) | ||||
|             value = ctx.StringLiteral().getText()[1:-1]  # Strip quotes | ||||
|             self._literal = nodes.StringLiteral(loc, value) | ||||
|         else: | ||||
|             ctx.getChild(0).enterRule(self) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue