sweet-js / sweet-core

Sweeten your JavaScript.
https://www.sweetjs.org
BSD 2-Clause "Simplified" License
4.58k stars 208 forks source link

Do not include lang directive in output #718

Closed disnet closed 7 years ago

disnet commented 7 years ago

No reason for the 'lang sweet.js' directive to be in the codegen'd output so omit it.

Also make all directives actually directives in the shift output AST so they don't get wrapped in parens.

disnet commented 7 years ago

@gabejohnson heh, glad you forced me to add tests. Definitely had a bug.