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

Support highlighting of here-document names #121

Closed
rcjsuen opened this issue Sep 11, 2023 · 0 comments
Closed

Support highlighting of here-document names #121

rcjsuen opened this issue Sep 11, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Sep 11, 2023

We should provide highlight ranges for a here-document's name.

const lib = require("dockerfile-language-service");
const service = lib.DockerfileLanguageServiceFactory.createLanguageService();
const ranges = service.computeHighlightRanges("FROM alpine\nRUN echo <<file\nabc\nfile", { line: 1, character: 13 });
console.log(ranges.length);
0
@rcjsuen rcjsuen added the enhancement New feature or request label Sep 11, 2023
@rcjsuen rcjsuen self-assigned this Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant