niklasvh / php.js

PHP to JavaScript converter and VM written in JavaScript
http://phpjs.hertzen.com
MIT License
860 stars 115 forks source link

multiline strings throw out error line numbers #43

Closed adamjimenez closed 10 years ago

adamjimenez commented 10 years ago

e.g:

<?php
$foo = "test
multiline

string"
a
?>

shows error on line 3 instead of 6.