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

Conversation

@boingoing
Copy link
Member

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
Member

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.
@boingoing boingoing force-pushed the boingoing:hashbang branch from 859f7bc to 0b9470d Jun 5, 2019
@chakrabot chakrabot merged commit 0b9470d into microsoft:master Jun 5, 2019
5 of 10 checks passed
5 of 10 checks passed
Linux (Ubuntu 16.04) queued
Details
Windows 10 in progress
Details
Windows 7 in progress
Details
Windows 8 in progress
Details
macOS queued
Details
Check ASCII #12161 succeeded
Details
Copyright Check #12162 succeeded
Details
EOL Check #12163 succeeded
Details
Tab Check #12164 succeeded
Details
license/cla All CLA requirements met.
Details
chakrabot pushed a commit that referenced this pull request 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
Projects
None yet
3 participants
You can’t perform that action at this time.