/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/null-grammar.js
42 строки
803 B
Rafael Oleza
Reformat all JS files using prettier
31 май 2019, 19:33
31 май 2019, 19:33
7f3f040
Код
Авторство
О чём код?
const { Disposable } = require('event-kit'); module.exports = { name: 'Null Grammar', scopeName: 'text.plain.null-grammar', scopeForId(id) { if (id === -1 || id === -2) { return this.scopeName; } else { return null; } }, startIdForScope(scopeName) { if (scopeName === this.scopeName) { return -1; } else { return null; } }, endIdForScope(scopeName) { if (scopeName === this.scopeName) { return -2; } else { return null; } }, tokenizeLine(text) { return { tags: [ this.startIdForScope(this.scopeName), text.length, this.endIdForScope(this.scopeName) ], ruleStack: null }; }, onDidUpdate(callback) { return new Disposable(noop); } }; function noop() {}