tree-sitter implementation for the confindent configuration language

initial, incomplete ruleset

+10 -2
+10 -2
grammar.js
··· 11 11 name: "confindent", 12 12 13 13 rules: { 14 - // TODO: add the actual grammar rules 15 - source_file: $ => "hello" 14 + // TODO: add external scanner for proper child support (dedents...) 15 + source_file: $ => repeat($._definition), 16 + 17 + definition: $ => seq($.key, $.value), 18 + 19 + key: $ => /[^ \t]+/, 20 + 21 + value: $ => optional($._simple_value), 22 + 23 + _simple_value: $ => /[^\n]+/, 16 24 } 17 25 });