Skip to content

Commit

Permalink
coverShallowerScopes shouldn't affect “sibling” injections…
Browse files Browse the repository at this point in the history
…only injections with a shallower depth.
  • Loading branch information
savetheclocktower committed Sep 8, 2024
1 parent 265d7e0 commit fbdf18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm-tree-sitter-language-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ class LayerHighlightIterator {
if (!this.coverShallowerScopes) { return false; }

// …and this iterator is deeper than the other…
if (iterator.depth > this.depth) { return false; }
if (iterator.depth >= this.depth) { return false; }

// …and one of this iterator's content ranges actually includes this
// position. (With caveats!)
Expand Down

0 comments on commit fbdf18a

Please sign in to comment.