numirias / semshi

🌈 Semantic Highlighting for Python in Neovim
1.03k stars 34 forks source link

fix python comprehension bug #130

Open jbiosca78 opened 2 months ago

jbiosca78 commented 2 months ago

when editing a python file with comprehension:

a=["yes","yeah","no"] b=[x for x in a if "y" in x]

semshi explodes:

File "/home/jbiosca/.local/share/nvim/lazy/semshi/rplugin/python3/semshi/visitor.py", line 111, in visit current_table = self._table_stack.pop() ^^^^^^^^^^^^^^^^^^^^^^^ IndexError: pop from empty list stack traceback: [C]: in function '_with' /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>

DevprojectEkla commented 1 month ago

Thanks man that worked for me !