LightTable / Javascript

Javascript language plugin for Light Table
MIT License
56 stars 79 forks source link

fix JS evaluation with #! in the source, closes #10 #11

Closed shamrin closed 9 years ago

shamrin commented 9 years ago

This fixes Eval editor content function, when there's a '#!' in JavaScript source, due to over-aggressive shebang filtering before parsing. Now we only filter shebang strictly at the start of the file.

And rename clean-code to filter-shebang to make its purpose explicit.

(fixes #10 and LightTable/LightTable#1744)

shamrin commented 9 years ago

Hey @LightTable/committers, please review this :)

cldwalker commented 9 years ago

Thanks!