v3.1.0
android-tree-sitter
v3.1.0 (2023-06-18)
Fixed
-
fix: use language name and pointer to efficiently remove entries in TSLanguageCache.remove (Akash Yadav)
-
fix: remove cache entries in TSLanguageCache.closeExternal (Akash Yadav)
-
fix: only close external languages in TSLanguageCache.closeAll (Akash Yadav)
-
fix: remove externally loaded languages from cache once closed (Akash Yadav)
-
fix: use TSLanguageCache return instance of TSLanguage in TSParser and TSTree (Akash Yadav)
-
fix: replace usage of deprecated TSLanguage*.newInstance() with TSLanguage*.getInstance() (Akash Yadav)
-
fix: error_offset and error_type is not set to TSQuery (Akash Yadav)
Added
-
feat: add TSLanguage.isExternal() to check for external languages (Akash Yadav)
-
feat: add TSLanguageCache.closeAll() to close all TSLanguage instances (Akash Yadav)
-
feat: use TSLanguageCache in TSLanguage.loadLanguage (Akash Yadav)
-
feat: add convenience method to load TSLanguage using nativeLibDir from Context (Akash Yadav)
-
feat: check access before accessing native objects (Akash Yadav)
-
feat: add support for loading external grammars (Akash Yadav)