dart-vim-plugin icon indicating copy to clipboard operation
dart-vim-plugin copied to clipboard

when meet class typedef extends. it is bad

Open Decodetalkers opened this issue 3 years ago • 12 comments

and I make typedef void extends to red

Decodetalkers avatar Nov 06 '21 05:11 Decodetalkers

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

google-cla[bot] avatar Nov 06 '21 05:11 google-cla[bot]

image Now It look like this, not all oriange

Decodetalkers avatar Nov 06 '21 05:11 Decodetalkers

@googlebot I signed it!

Decodetalkers avatar Nov 06 '21 05:11 Decodetalkers

image Now it looks like this

Decodetalkers avatar Nov 06 '21 07:11 Decodetalkers

image Whit some change Now I have some question about on if on should also be red or extends, with implements to purple of not change anything?

Decodetalkers avatar Nov 07 '21 14:11 Decodetalkers

And I also have some problem about the void's color. if should it be red..

Decodetalkers avatar Nov 07 '21 14:11 Decodetalkers

hello?

Decodetalkers avatar Dec 01 '21 05:12 Decodetalkers

/cc @sigmundch @natebosch who may have thoughts

cbracken avatar Jan 05 '22 20:01 cbracken

I have reservations about moving the symbols too - the existing categories map to the language definitions and I'd prefer to preserve that if we can. I understand that sometimes users want to customize what things look like, but I hope that can be done entirely by overriding the associated highlight for a syntax group in their own .vimrc.

@chen244 - it's not clear to us why late and final were highlighted differently in the first example you shared. They are both in the same group, so they should both look the same at the moment.

I tested this locally and can confirm that they do. Actually, I saw them differently at first because I had a stale dart.vim syntax file from a long time ago (before late was added). After I updated to the current version in master, I see them as the same syntax color (and in your color scheme above they would both be "red" )

sigmundch avatar Jan 05 '22 21:01 sigmundch

I'm not convinced that these changes are any better or worse than what we have.

I would be OK with splitting a couple of these into more fine-grained categories and linking them back to their current category, then you could add some personal highlight definitions linking them differently.

Is there a more high level description you could give us about why you feel like the current categories we have don't make sense for these keywords?

natebosch avatar Jan 07 '22 18:01 natebosch

I'm not convinced that these changes are any better or worse than what we have.

I would be OK with splitting a couple of these into more fine-grained categories and linking them back to their current category, then you could add some personal highlight definitions linking them differently.

Is there a more high level description you could give us about why you feel like the current categories we have don't make sense for these keywords?

Because in vscode, and treesitter, class type and "class" are different , and late and int is different. When I use this one ,They are all the same color. So I just want to make they are different.

Decodetalkers avatar Jan 08 '22 08:01 Decodetalkers

+1, class should have a unique color. We use class a lot in Flutter projects, because "everything is a widget".

imambungo avatar Feb 02 '22 17:02 imambungo

Closing this, as it is a few years old now. Feel free to reopen in case you still want to land it!

mosuem avatar Mar 12 '24 08:03 mosuem