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
This is meant to be a tracking issue for taking injections into account for all tree-sitter features. There are three separate APIs we need to use injections robustly:
Run queries across injection layers. Highlights do this correctly but indent and textobject queries currently run only against the root layer. Run textobject queries across injections #9320 will add the necessary API here which indents can build off of.
The changes build on one another somewhat, so we will need to wait until the changes for the first API and the third API are merged in order to fix indentation.
The text was updated successfully, but these errors were encountered:
This is meant to be a tracking issue for taking injections into account for all tree-sitter features. There are three separate APIs we need to use injections robustly:
tree_sitter::Tree
of the layer the input positions/bytes are within. Callers currently useSyntax::tree
, so they only operate on the root. This is a little broad but Select subtree within injections in:tree-sitter-subtree
#9309 initially added the function to make this possible, Respect injections when using the syntax tree's root node #9424 and Cross injection layers in tree-sitter motions #5176 improve the situation, and ultimately this will be fixed once we update the indentation system to respect injection layers. ThenSyntax::tree
should be removed.Feature-wise:
:reflow
text-widthA-p
/A-o
/A-i
/A-n
(Cross injection layers in tree-sitter motions #5176):tree-sitter-subtree
(Select subtree within injections in:tree-sitter-subtree
#9309):tree-sitter-highlight-name
(Respect injections when using the syntax tree's root node #9424)move_parent_node_start
/move_parent_node_end
(Respect injections when using the syntax tree's root node #9424)The changes build on one another somewhat, so we will need to wait until the changes for the first API and the third API are merged in order to fix indentation.
The text was updated successfully, but these errors were encountered: