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 }}
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
Add a method TSQuery#getCaptureQuantifierForId(int patternId, int captureId)
Implementation
getCaptureQuantifierForId (untested)
TSQuantifier.java
publicenumTSQuantifier {
TSQuantifierZero, // must match the array initialization valueTSQuantifierZeroOrOne,
TSQuantifierZeroOrMore,
TSQuantifierOne,
TSQuantifierOneOrMore
}
I already have the constructor for Query down. Later I'll try to implement the missing methods. For now the only missing function is the TSQuantifiers. When this works out, Query could be used to implement syntax highlighting for all tree-sitter grammars using the queries/ directory. As is now, TSQuery is a wrapper around the API and TSQuerydoes not directly support predicates like #match?
As is now, TSQuery is a wrapper around the API and TSQuery does not directly support predicates like #match?
As written in the tree-sitter docs, predicates are not directly handled by the tree sitter library and as android-tree-sitter only provides Java bindings for the library, I think it will be better if the code editor implementation handles predicates.
I am trying to port the rust bindings for the
Query
including predicates) to kotlin. Whilst doing this I noticed that not all functions have bindings.What is missing:
ts_query_capture_quantifier_for_id
TSQuantifier
-enumTSQuery#getCaptureQuantifierForId(int patternId, int captureId)
Implementation
getCaptureQuantifierForId
(untested)TSQuantifier.java
TSQuery.java
ts_query.cc
The text was updated successfully, but these errors were encountered: