diff --git a/tagmanager/ctags/js.c b/tagmanager/ctags/js.c index 66b38898..b4f84b88 100644 --- a/tagmanager/ctags/js.c +++ b/tagmanager/ctags/js.c @@ -370,11 +370,12 @@ getNextChar: do { c = fileGetc (); - token->lineNumber = getSourceLineNumber (); - token->filePosition = getInputFilePosition (); } while (c == '\t' || c == ' ' || c == '\n'); + token->lineNumber = getSourceLineNumber (); + token->filePosition = getInputFilePosition (); + switch (c) { case EOF: longjmp (Exception, (int)ExceptionEOF); break;