Add specs, clean up whitespace.

This commit is contained in:
Ashi Krishnan
2018-07-20 18:37:41 -04:00
parent 6fe8b54350
commit 32c4624d95

View File

@@ -355,7 +355,7 @@ class TreeSitterLanguageMode {
const searchEndIndex = Math.max(0, endIndex - 1)
const matches = matcherForSelector(selector)
let smallestNode
this._forEachTreeWithRange(range, tree => {
let node = tree.rootNode.descendantForIndex(startIndex, searchEndIndex)