module.exports = grammar({ name: 'pinky', rules: { // TODO: add the actual grammar rules source_file: $ => repeat($._block), _block: $ => choice( $.wiki_link ), wiki_link: $ => seq( '[[', $.link_text, ']]', ), link_text: $ => /[^\[\]]+/ } });