This commit is contained in:
Ethan Johnson
2020-06-16 09:59:29 -05:00
parent eca8bb615f
commit 33cefdf8cf
2 changed files with 6 additions and 3 deletions

View File

@@ -1294,7 +1294,10 @@ class LayerHighlightIterator {
const scopeName = applyLeafRules(value, this.treeCursor);
const node = this.treeCursor.currentNode;
if (!node.childCount) {
return this.languageLayer.languageMode.grammar.idForScope(scopeName, node.text);
return this.languageLayer.languageMode.grammar.idForScope(
scopeName,
node.text
);
} else if (scopeName) {
return this.languageLayer.languageMode.grammar.idForScope(scopeName);
}