We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ad0b1 commit 9d9c2eeCopy full SHA for 9d9c2ee
src/tree-sitter-language-mode.js
@@ -1294,7 +1294,7 @@ class LayerHighlightIterator {
1294
const scopeName = applyLeafRules(value, this.treeCursor);
1295
const node = this.treeCursor.currentNode;
1296
if (!node.childCount) {
1297
- return this.languageLayer.languageMode.grammar.idForScope(scopeName, node);
+ return this.languageLayer.languageMode.grammar.idForScope(scopeName, node.text);
1298
} else if (scopeName) {
1299
return this.languageLayer.languageMode.grammar.idForScope(scopeName);
1300
}
0 commit comments