numirias / semshi

🌈 Semantic Highlighting for Python in Neovim
1.02k stars 33 forks source link

Wierd coloring bug #81

Closed InCogNiTo124 closed 3 years ago

InCogNiTo124 commented 4 years ago

This is from my lab asignment for uni course: Screenshot_20200604_000443 We can see that the cursor is right next to the min_freq variable, which is, in fact, a constructor argument with a default value. But so are max_size, special and others. Yet, those are colored blue and this one is colored pinkish Screenshot_20200604_000503 Here we see that it's correctly recognized as the constructor argument, and should be colored blue.

InCogNiTo124 commented 3 years ago

nvm figured it out

wookayin commented 2 years ago

Those variables in a list comprehension are "closures" and therefore are colored in magenta.