question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax highlighting for '@import' rules is broken

See original GitHub issue

Hi, not sure if this issue is related to [this] but it appears that the colouring is now broken for injectGlobal

image

It seems fine with normal components however:

image

Thanks for this really nice extension [this]: https://github.com/styled-components/vscode-styled-components/issues/50

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Briggybroscommented, Feb 13, 2018

I think you would have to use const importUrl = '\'https://fonts.googleapis.com/css?family=Open+Sans|Roboto\'';

I don’t think it should be the recommended way, but it works for now.

0reactions
Cu3PO42commented, Feb 13, 2018

Oops. I forgot @import rules are valid in injectGlobal. I will try to fix that later today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax highlight is broken when changing the view state - v6
Hello, I'm building a simple code editor in browser with file tree support. so basically I've a single dom element (BTW I'm using...
Read more >
Syntax Highlight Guide | Visual Studio Code Extension API
A guide to syntax highlighting. ... The tokenization of text is about breaking the text into segments and to classify each segment with...
Read more >
Syntax highlighting not working for Python in VS Code with ...
I'm using "python.formatting.provider": "black" but I also tried autopep8 and yapf . They all seem to fail in the same way, by getting...
Read more >
Known failures - Prism.js
Known failures. A list of rare edge cases where Prism highlights code incorrectly. ... There are always such cases in every regex-based syntax...
Read more >
ESLint | IntelliJ IDEA Documentation - JetBrains
See Configuring ESLint highlighting to learn how to override these settings. ... You can import some of the ESLint code style rules to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found