Skip to content

Conversation

@deathaxe
Copy link
Member

This PR turns functions from sublime_lib.syntax module into aliases of sublime API calls and prints deprecation warnings when being called.

ST4 provides compatible API calls, which can be used as drop-in replacement.

This change assumes SyntaxInfo members are accessed in sane ways, which don't cause trouble by sublime.Syntax being a normal class.

This change fixes a compatibility issue with python 3.13, as plistlib removed readPlistFromBytes function.

This PR turns functions from sublime_lib.syntax module into aliases
of sublime API calls and prints deprecation warnings when being called.

ST4 provides compatible API calls, which can be used as drop-in replacement.

This change assumes SyntaxInfo members are accessed in sane ways, which
don't cause trouble by sublime.Syntax being a normal class.

This change fixes a compatibility issue with python 3.13, as plistlib
removed `readPlistFromBytes` function.
As SyntaxInfo is not exported, and #132 mentions returning `sublime.Syntax`
directly, the type alias for it is removed.
@deathaxe deathaxe mentioned this pull request Jan 11, 2026
Plump print as warnings.deprecated is not supported by python 3.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants