simplify object elements

This commit is contained in:
mhoffm
2021-06-18 07:20:55 +02:00
parent f4b4b4f026
commit b793cd7c37
5 changed files with 3653 additions and 3709 deletions

View File

@@ -16,8 +16,6 @@ module.exports = grammar({
name: 'hcl',
conflicts: $ => [
[$.body],
[$.object_elem, $.variable_expr],
[$.attr_splat],
[$.full_splat],
// string literals are just quoted template without template stuff
@@ -136,7 +134,7 @@ module.exports = grammar({
_object_end: $ => '}',
object_elem: $ => seq(
choice($.identifier, $.expression),
$.expression,
choice('=', ':'),
$.expression,
),