tangled
alpha
login
or
join now
nove.dev
/
tree-sitter-confindent
1
fork
atom
tree-sitter implementation for the confindent configuration language
1
fork
atom
overview
issues
pulls
pipelines
initial, incomplete ruleset
nove.dev
4 months ago
a50422f7
4f158f45
+10
-2
1 changed file
expand all
collapse all
unified
split
grammar.js
+10
-2
grammar.js
···
11
11
name: "confindent",
12
12
13
13
rules: {
14
14
-
// TODO: add the actual grammar rules
15
15
-
source_file: $ => "hello"
14
14
+
// TODO: add external scanner for proper child support (dedents...)
15
15
+
source_file: $ => repeat($._definition),
16
16
+
17
17
+
definition: $ => seq($.key, $.value),
18
18
+
19
19
+
key: $ => /[^ \t]+/,
20
20
+
21
21
+
value: $ => optional($._simple_value),
22
22
+
23
23
+
_simple_value: $ => /[^\n]+/,
16
24
}
17
25
});