Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes #1608.
The patterns for invisible characters (ICs) are now also recursively added to the
inside
of every pattern.I also had to change the color of ICs because in #1607 I changed the color to
inherit
which causes the ICs to have different colors depending on which token they are inside of.So, to make everything consistent, I changed the color to grey (
rgb(128, 128, 128)
) and made it half transparent so it would blend in. Looks really similar to #1607.Most of the code is just traversing the language definition, handling the different kinds of tokens (simple regex, array, pattern object), and trying not to fall because of the added tokens for ICs and the
rest
property.