Skip to content

Commit

Permalink
Merge pull request #129 from rout39574/asr_newlines
Browse files Browse the repository at this point in the history
Make provision for block on next line.
  • Loading branch information
IButskhrikidze authored Apr 28, 2023
2 parents 252ebaf + f77c9eb commit 13eabb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcl2/hcl2.lark
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
start : body
body : (new_line_or_comment? (attribute | block))* new_line_or_comment?
attribute : identifier "=" expression
block : identifier (identifier | STRING_LIT)* "{" body "}"
block : identifier (identifier | STRING_LIT)* new_line_or_comment? "{" body "}"
new_line_and_or_comma: new_line_or_comment | "," | "," new_line_or_comment
new_line_or_comment: ( /\n/ | /#.*\n/ | /\/\/.*\n/ )+

Expand Down

0 comments on commit 13eabb6

Please sign in to comment.