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

Infinite loop when computing semantic tokens for an ENV instruction with multiple embedded comments #74

Closed
rcjsuen opened this issue Jul 24, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jul 24, 2020

ENV a \
 b \
 # comment 
 # comment 
 c
let lib = require("dockerfile-language-service");
let service = lib.DockerfileLanguageServiceFactory.createLanguageService();
let content = "ENV a \\\n b \\\n # comment \n # comment \n c";
service.computeSemanticTokens(content);

The code above will create an infinite loop on RunKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant