This commit is contained in:
Benjamin Gray
2019-06-20 14:29:01 +10:00
parent 4cc1afbb68
commit 2cc3bff1be

View File

@@ -129,9 +129,7 @@ module.exports = class TreeSitterGrammar {
}
tokenizeLines(text, compatibilityMode = true) {
return text
.split('\n')
.map(line => this.tokenizeLine(line, null, false));
return text.split('\n').map(line => this.tokenizeLine(line, null, false));
}
tokenizeLine(line, ruleStack, firstLine) {