-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously in a styled `jsFuncCall` region (e.g. `styled(<here>)`), only keyword items (e.g. "\k") was highlighted, this thus was excluding certain js constructs like property access syntax and function calls. This commit changes this to basically ignore the specifics inside of the insides of the `jsFuncCall` and to transparently highlight this. It also adds styles to display the issue as was proposed in #44. This should fix #44.
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import styled from 'styled-components'; | ||
|
||
const Schedule = styled.div` | ||
display: none; | ||
`; | ||
|
||
Schedule.Part = styled.div` | ||
align-items: center; | ||
display: flex; | ||
`; | ||
|
||
const Something = styled(Link)` | ||
align-items: center; | ||
display: none; | ||
`; | ||
|
||
function test() { | ||
return styled.div; | ||
} | ||
|
||
Schedule.CourseTimes = styled(test())` | ||
align-items: flex-start; | ||
img { | ||
margin-top: 0.3rem; | ||
} | ||
`; | ||
|
||
Schedule.CourseTimes = styled(Schedule.Part)` | ||
align-items: flex-start; | ||
img { | ||
margin-top: 0.3rem; | ||
} | ||
`; |