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

Closing backticks in Typscript not being understood by the lexer. #1616

Closed
vishalsatam opened this issue Oct 26, 2020 · 0 comments · Fixed by #1623
Closed

Closing backticks in Typscript not being understood by the lexer. #1616

vishalsatam opened this issue Oct 26, 2020 · 0 comments · Fixed by #1623
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@vishalsatam
Copy link

vishalsatam commented Oct 26, 2020

Name of the lexer
If there are backticks present in the code, the lexer doesn't understand when to close it and highlights all following code as if it were a string literal.

Code sample
A sample of the code that produces the bug.

const getOptionLabel = (option): string => (option.id ? `${option.name ?? USER_DEFINED} (${option.id})` : '');

/**
 * Some comments
 *
 */
const testFunction = () => {
  // Some code
};

See the code sample on rouge.jneen.net.

@vishalsatam vishalsatam added the bugfix-request A request for a bugfix to be developed. label Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant