just text

This commit is contained in:
Ethan Johnson
2019-11-26 14:56:34 -06:00
parent 88ad0b1eb0
commit 9d9c2ee2fd

View File

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