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

Coloring broken after //import comment on the import declaration line #774

Closed
mysticatea opened this issue Sep 12, 2019 · 1 comment
Closed

Comments

@mysticatea
Copy link

TS and JS Grammar Extension version: 0.0.52

Code

import util from "util"
import chalk from "chalk" // import

const Levels = {
    0: { label: "DEBUG", color: chalk.gray.bold },
    1: { label: "INFO ", color: chalk.blueBright.bold },
    2: { label: "WARN ", color: chalk.magenta.bold },
    3: { label: "ERROR", color: chalk.red.bold },
}
type Level = keyof typeof Levels

//....

image

This will break coloring if we used // eslint-disable-line no-hoge-import-like comments.

@mysticatea
Copy link
Author

I have noticed that GitHub's syntax highlight is broken in the same way.

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

1 participant