mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
just text
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user