-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Consider the following show-set rule:
#show heading.where(level: 2): set text(stroke: red)Here, the text becomes white after the second colon. In fact, it seems that the problem is the symbols between the first colon and the set keyword. If these symbols exist, the highlighting is lost. However, such show-set rules start being correctly highlighted if the unnamed function notation (=>) is used, like that:
#show heading.where(level: 2): it => {
// something
}Unfortunately, this does not seem to be a reliable workaround. In some cases, a show-set rule (like the first one) is necessary, for example when you need to modify the behavior of the very function you select for.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working