Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Var declaration statement with multiple declarations not tokenized correctly #41

Closed
aeschli opened this issue Jan 8, 2016 · 5 comments

Comments

@aeschli
Copy link

aeschli commented Jan 8, 2016

Tokenize

var token_text, token_type, last_type, last_last_text, indent_string;

Note that only the fist identifier gets a token
image

the rest is one single token with scope
token expr meta var

@stkb
Copy link
Contributor

stkb commented Jan 24, 2016

Dup of #16. I'm working on it at the moment :)

@anubmat
Copy link
Contributor

anubmat commented Mar 3, 2016

Looks good in sublime-text
error_41_sublime

Is a problem in vscode
error_41_vscode

@anubmat anubmat closed this as completed Mar 3, 2016
@aeschli
Copy link
Author

aeschli commented Mar 3, 2016

Seems to also work in the latest version of VSCode (@anubmat on what version are you, and which theme?) :
image

@anubmat
Copy link
Contributor

anubmat commented Mar 3, 2016

I am at version 10.8 and color theme Dark+ (default dark)

@thorn0
Copy link

thorn0 commented Mar 8, 2016

VS Code 0.10.10. It works if the declaration is single-line but breaks if it's not:
image

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

No branches or pull requests

4 participants