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 }}
Repository navigation
Highlight PEP 810 soft keyword lazy only with lazy import / lazy from #276
In all other positions it remains a normal identifier (e.g. lazy = 1, def lazy(): ..., from lazy import x).
VS Code / VSCodium themes such as Dark Modern already color keyword.control.import.* (purple). The bundled MagicPython grammar (extensions/python/syntaxes/MagicPython.tmLanguage.json) does not yet scope lazy in those positions, so soft-keyword uses stay unhighlighted while import / from are highlighted.
Requested change
Do not add lazy to the general keyword list.
Optionally capture lazy only when it immediately precedes import or from, with a scope such as keyword.control.import.lazy.python (same approach as Sublime Text’s Python.sublime-syntaximport-statements).
Example (MagicPython #import / source YAML shape):
Activity