Skip to content

Implement hashbang syntax - #6145

Merged
chakrabot merged 1 commit into
chakra-core:masterfrom
boingoing:hashbang
Jun 5, 2019
Merged

Implement hashbang syntax#6145
chakrabot merged 1 commit into
chakra-core:masterfrom
boingoing:hashbang

Conversation

@boingoing

Copy link
Copy Markdown
Contributor

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 June 5, 2019 03:52

@zenparsing zenparsing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants