more real world exampls; fix scanner when scanning empty character in lexer

This commit is contained in:
mhoffm
2021-06-21 19:40:27 +02:00
parent 3bc4153bc2
commit a7f23cc579
2020 changed files with 64141 additions and 10630 deletions

View File

@@ -37,6 +37,8 @@ module.exports = grammar({
choice(
$.attribute,
$.block,
// not to spec but handles .tfvars
$.object,
),
),
@@ -168,7 +170,7 @@ module.exports = grammar({
attr_splat: $ => prec.right(seq(
'.*',
repeat($.get_attr),
repeat(choice($.get_attr, $.index)),
)),
full_splat: $ => prec.right(seq(