Skip to content

Color "if"s in conditional imports/exports - #18

Merged
devoncarew merged 1 commit into
dart-lang:masterfrom
DanTup:handle-import-conditionals
Jun 14, 2021
Merged

devoncarew merged 1 commit into
dart-lang:masterfrom
DanTup:handle-import-conditionals

Conversation

@DanTup

@DanTup DanTup commented Jun 14, 2021

Copy link
Copy Markdown
Collaborator

This adds colour to the ifs in conditional imports (previously they were white):

Screenshot 2021-06-14 at 17 12 43

I've marked them as "control keywords" to match the color of other ifs in the program, although I'm not sure if that logic is entirely sound. Having them a different color to other ifs looked a little odd (in this theme, control keywords are pink and other keywords blue).

(I've done the same in LSP semantic tokens version - we should keep them in-sync if we decide to change it here).

@devoncarew

@devoncarew
devoncarew merged commit e0055eb into dart-lang:master Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants