PythonImproved icon indicating copy to clipboard operation
PythonImproved copied to clipboard

from and as keywords are always matched as in `from ... import ... as ...`

Open FichteFoll opened this issue 11 years ago • 1 comments

I only noticed this because my color scheme apparently defines a different color for keyword.control.import.

The issue is that the keywords from and as are always matched as the above, even though there are other statements where they are used:

2014-09-03_05 53 55

Not a huge issue, but wanted to report it anyway. Should be that hard to fix either.

See also: https://github.com/SublimeText/Issues/issues/459

FichteFoll avatar Sep 03 '14 04:09 FichteFoll

Same issue with any('*' in p for p in includes). The second in is highlighted as a logical operator but it's in fact a keyword.

I don't think regular ins are allowed in the right side of for since it must probably be a namelist, so that shouldn't be too hard.

FichteFoll avatar Sep 22 '14 23:09 FichteFoll