diff options
Diffstat (limited to 'src/yellow')
-rw-r--r-- | src/yellow/syntax.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yellow/syntax.rs b/src/yellow/syntax.rs index 65ce647c7..58e8ab9b6 100644 --- a/src/yellow/syntax.rs +++ b/src/yellow/syntax.rs | |||
@@ -109,7 +109,7 @@ impl<R: TreeRoot> SyntaxNode<R> { | |||
109 | let red = self.red(); | 109 | let red = self.red(); |
110 | let parent = self.parent()?; | 110 | let parent = self.parent()?; |
111 | let next_sibling_idx = red.index_in_parent()? + 1; | 111 | let next_sibling_idx = red.index_in_parent()? + 1; |
112 | if next_sibling_idx == red.n_children() { | 112 | if next_sibling_idx == parent.red().n_children() { |
113 | return None; | 113 | return None; |
114 | } | 114 | } |
115 | Some(SyntaxNode { | 115 | Some(SyntaxNode { |