mozilla/doctorjs — Issue #35: support the sha-bang syntax
Author: raincole
Created: 2012-01-17 06:35:18+00:00
State: open

When using `javascript` as a command line script language, I want to add the `#!/usr/bin/env node` at the first line to make bash use `node`.

But `jsctags` doesn't recogize it:

examples/coercion.js:1: Illegal token

```
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: examples/coercion.js:1: Illegal token
at Object.newSyntaxError (/usr/local/narcissus/lib/jslex.js:546:21)
at Object.get (/usr/local/narcissus/lib/jslex.js:527:28)
at Object.peek (/usr/local/narcissus/lib/jslex.js:176:27)
at Object.done (/usr/local/narcissus/lib/jslex.js:149:25)
at Statements (/usr/local/narcissus/lib/jsparse.js:394:22)
at Script (/usr/local/narcissus/lib/jsparse.js:180:23)
at parse (/usr/local/narcissus/lib/jsparse.js:1841:17)
at Object.scan (/usr/local/lib/jsctags/ctags/index.js:101:19)
at processPath (/usr/local/bin/jsctags:189:18)
at Object. (/usr/local/bin/jsctags:207:5)
```

Could you consider this syntax?