[Pkg-javascript-commits] [node-acorn-jsx] 368/484: Note allowHashBang option in README

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 5512e26ac0b257e28221dc43bbf54e824f98143c
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Thu Dec 18 10:19:22 2014 +0100

    Note allowHashBang option in README
    
    Issue #180
---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 58627b0..6cac0f0 100644
--- a/README.md
+++ b/README.md
@@ -72,6 +72,10 @@ object referring to that same position.
   declarations can only appear at a program's top level. Setting this
   option to `true` allows them anywhere where a statement is allowed.
 
+- **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.
+
 - **locations**: When `true`, each node has a `loc` object attached
   with `start` and `end` subobjects, each of which contains the
   one-based line and zero-based column numbers in `{line, column}`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list