Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hashbang syntax #6145

Merged
merged 1 commit into from Jun 5, 2019
Merged

Implement hashbang syntax #6145

merged 1 commit into from Jun 5, 2019

Conversation

@boingoing
Copy link
Contributor

@boingoing boingoing commented Jun 5, 2019

Hashbang is a single-line comment syntax designed to mimic interpreter directive syntax common in command-line scripting.

The proposal has reached stage 3 and the syntax is fully supported in SpiderMonkey and V8. See the proposal:
https://github.com/tc39/proposal-hashbang

This a pretty simple syntax with only a couple of rules. The hashbang acts like a single-line comment except the hashbang sequence (#!) must be the first token in the source text.

@boingoing boingoing requested a review from zenparsing Jun 5, 2019
Copy link
Contributor

@zenparsing zenparsing left a comment

@boingoing is on a roll!

Hashbang is a single-line comment syntax designed to mimic interpreter directive syntax common in command-line scripting.

The proposal has reached stage 3 and the syntax is fully supported in SpiderMonkey and V8. See the proposal:
https://github.com/tc39/proposal-hashbang

This a pretty simple syntax with only a couple of rules. The hashbang acts like a single-line comment except the hashbang sequence (`#!`) must be the first token in the source text.
@chakrabot chakrabot merged commit 0b9470d into chakra-core:master Jun 5, 2019
5 of 10 checks passed
chakrabot pushed a commit that referenced this issue Jun 5, 2019
Merge pull request #6145 from boingoing:hashbang

Hashbang is a single-line comment syntax designed to mimic interpreter directive syntax common in command-line scripting.

The proposal has reached stage 3 and the syntax is fully supported in SpiderMonkey and V8. See the proposal:
https://github.com/tc39/proposal-hashbang

This a pretty simple syntax with only a couple of rules. The hashbang acts like a single-line comment except the hashbang sequence (`#!`) must be the first token in the source text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants