You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Using a variable as a default in a function definition causes inconsistent highlighting #278
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Using a variable as a default in a function definition causes inconsistent highlighting of variable name. Specifically, the first letter or the variable will not be highlighted.
Steps to Reproduce
Open new file
Set language to Python
Enter def test(test_var = variable):
Expected behavior:variable should be highlighted completely.
Actual behavior:ariable is highlighted while v is not.
Sorry for the delay @TheElementalOfCreation - we're transitioning over to supporting the Tree-sitter grammars only for built-in languages, does this still reproduce with Tree-sitter enabled?
Activity
TheElementalOfDestruction commentedon Oct 3, 2018
Package: language-python 0.51.4
TheElementalOfDestruction commentedon Oct 30, 2018
Still exists in 0.51.6
TheElementalOfDestruction commentedon Nov 1, 2018
Here is a screenshot showing the problem along with the associated styles and stuff that create the problem:
TheElementalOfDestruction commentedon Nov 23, 2018
Hopefully I can get someone to look at this soon
rsese commentedon Dec 19, 2018
Sorry for the delay @TheElementalOfCreation - we're transitioning over to supporting the Tree-sitter grammars only for built-in languages, does this still reproduce with Tree-sitter enabled?
TheElementalOfDestruction commentedon Dec 19, 2018
Tree sitter seems to fix it, but at the same time it breaks a lot of other stuff. The "other stuff" was already discussed in another issue though.
TheElementalOfDestruction commentedon Dec 19, 2018
#281 is the issue I was referring to