Open hex13 opened 8 years ago
ok. Acorn has option allowHashBang
(When this is enabled (off by default), if the code starts with the characters #! (as in a shellscript), the first line will be treated as a comment)
https://github.com/ternjs/acorn
Added option and it works, but test is needed to avoid errors in future.
when parsing with Acorn:
SyntaxError: Unexpected character '#' (1:0) at Parser.pp.raise (/Users/lukasz/sandbox/lupa/node_modules/acorn/dist/acorn.js:920:13)