/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/language-rust-bundled/lib/main.js
14 строк
326 B
Max Brunsfeld
Add `includeChildren` injection point API, use it for rust injections
18 июн 2019, 02:54
18 июн 2019, 02:54
7bfd33c
Код
Авторство
О чём код?
exports.activate = function() { for (const nodeType of ['macro_invocation', 'macro_rule']) { atom.grammars.addInjectionPoint('source.rust', { type: nodeType, language() { return 'rust'; }, content(node) { return node.lastChild; }, includeChildren: true }); } };