You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and some sample Python text like # test, the background rule from the comment scope selector applies, and the foreground rule from the comment.line scope selector applies, as can be seen by:
This is because Sublime applies rules from all scope selectors in the color scheme that match the scope stack, in ascending order of their score, so that the rules with a higher score override those with a lower score.
In syntect, currently it just uses the rule with the highest matching score, and so the background from comment isn't applied.
In Sublime Text, given a simple color scheme like:
and some sample Python text like
# test
, thebackground
rule from thecomment
scope selector applies, and theforeground
rule from thecomment.line
scope selector applies, as can be seen by:This is because Sublime applies rules from all scope selectors in the color scheme that match the scope stack, in ascending order of their score, so that the rules with a higher score override those with a lower score.
In
syntect
, currently it just uses the rule with the highest matching score, and so thebackground
fromcomment
isn't applied.The text was updated successfully, but these errors were encountered: