You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
If I attempt to run find . -name '*.js' | xargs jsctags from the root of the doctorjs repository, I receive the following error:
/usr/local/bin/jsctags:195
throw e;
^
SyntaxError: ./bin/dr.js:1: Illegal token
at Object.Narcissus.lexer.Tokenizer.newSyntaxError (/usr/local/narcissus/lib/jslex.js:546:21)
at Object.Narcissus.lexer.Tokenizer.get (/usr/local/narcissus/lib/jslex.js:527:28)
at Object.Narcissus.lexer.Tokenizer.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:9)
at parse (/usr/local/narcissus/lib/jsparse.js:1841:17)
at Object.exports.Tags.Object.create.Trait.compose.Trait.scan (/usr/local/lib/jsctags/ctags/index.js:101:19)
at processPath (/usr/local/bin/jsctags:189:18)
at Object.<anonymous> (/usr/local/bin/jsctags:207:5)```
Granted, this means that there is invalid javascript in the file. But jsctags should not bomb out because one line fails.
Even if it is too much trouble for the parser to throw out bad input and continue, jsctags should at least run the rest of it's arguments.