Highlighting doesn't work when wrapping the result of a function
See original GitHub issueThis is an extremely obscure edge case, as I’m sure hardly anybody has had a need to do this. But I’m in the middle of writing a library and have a line which looks like this
const Bounds = styled(Stylable("div"))`
box-sizing: border-box;
display: flex;
`;
and the highlighting does not work. If I remove the ("div")
it works.
I’m a bit busy atm (otherwise I’d fix it now), but tomorrow or sometime later this week I’ll try and fix this issue. Just wanted to open an issue so that there’s a documented record of it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Console syntax highlighting not working when RStudio has ...
When using RStudio with a project open, the console doesn't highlight function calls. (Console in lower right-hand corner)
Read more >Enabling line wrap with React-Syntax-Highlighter?
The wrapLines is NOT about wrapping lines of code at a pre-defined length or the container width. It's about surrounding each line in...
Read more >Example: Styling - CodeMirror
When defining an editor theme, you'll usually want to provide both a theme extension and a highlight style that looks good with it....
Read more >Code blocks - Material for MkDocs - GitHub Pages
The following sections discuss how to use different syntax highlighting features with Pygments, the recommended highlighter, so they don't apply when using a ......
Read more >highlight | InstantSearch.js - Algolia
Note that the value is already bound to the function inside a string template, so you don't have to provide it. For this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t know if it’s related, but also it does not work when specifying the props type (Typescript)
Although, it works correctly when defining them inline for the function parameter:
I confirm the same thing here, example :
Do you this can be fixed ? Would be amazing 😃 thanks