Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 7da8723

Browse files
committed
docs(README): specify minimum required version for loading external grammars
1 parent 95fa385 commit 7da8723

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ try (final var parser = new TSParser()) {
139139

140140
### Load grammars at runtime
141141

142+
> android-tree-sitter `v3.1.0` or newer is required for this method.
143+
142144
`TSLanguage` provides `loadLanguage(String, String)` method which can be used to load the grammars at runtime. This method uses `dlopen` to load the shared library, get the language instance and return its pointer. Use this method CAREFULLY.
143145

144146
The language instances created using this method **MUST** be closed using `TSLanguage.close()`. Calling the `close` method ensures that the underlying `dlopen`'ed library handle is closed using `dlclose`.

0 commit comments

Comments
 (0)