Before you open an issue on the python-language package, first check to see if it is a syntax issue or a coloring issue. You can check to see what scopes a particular position is marked with by:
- Open the Developer Tools
View > Developer > Toggle Developer Tools
- Switch to the Console tab
- Place your cursor at the position for which you want a scope check
- Execute the
editor:log-cursor-scope command either from the Command Palette or keybinding (Cmd+Alt+P on OS X)
When I place the cursor after the “i” but before the “n” in the
in keyword on the first line, the scope returned is:
["source.python", "keyword.operator.logical.python"]. So the python-language package is correctly recognizing the keyword as a keyword … just your syntax theme isn’t doing anything with it.
Here’s how the same code looks under my ya-railscasts-syntax package*:
* Not designed for public consumption. The Author reserves the right to make sweeping changes with no notice whatsoever. Use at your own risk. Wait 30 minutes before swimming. Do not look into laser with remaining good eye.