hcl/zcl/zclsyntax
Martin Atkins db5167e3d8 zclsyntax: recoverAfterBodyItem implementation
This recovery method attempts to place the peeker directly after the
newline indicating the end of the current body item. It does this by
counting open and close bracketing constructs and then returning when
a newline is encountered with no bracketing constructs open.

It's designed for use in the "header" part of a body item, with no
bracketing constructs open yet. It _might_ work in other situations, but
is likely to end up choosing the wrong end point if used in the middle
of a bracketed expression that itself contains newlines.
2017-05-30 18:42:45 -07:00
..
didyoumean_test.go zclsyntax: "Did you mean ...?" helper function 2017-05-25 07:14:29 -07:00
didyoumean.go zclsyntax: "Did you mean ...?" helper function 2017-05-25 07:14:29 -07:00
doc.go zclsyntax: Start to stub out the zclsyntax package 2017-05-23 08:05:44 -07:00
expression_test.go Update cty references to its new home in the zclconf github account 2017-05-27 17:35:44 -07:00
expression_vars_gen.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
expression_vars.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
expression.go Update cty references to its new home in the zclconf github account 2017-05-27 17:35:44 -07:00
file.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
generate.go zclsyntax: identifiers in the scanner 2017-05-28 09:16:53 -07:00
node.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
parser_test.go zclsyntax: recoverAfterBodyItem implementation 2017-05-30 18:42:45 -07:00
parser.go zclsyntax: recoverAfterBodyItem implementation 2017-05-30 18:42:45 -07:00
peeker_test.go zclsyntax: "peeker" helper 2017-05-29 18:09:58 -07:00
peeker.go zclsyntax: peeker methods to get next and previous token ranges 2017-05-29 19:01:37 -07:00
public.go zclparse: ParseZCL and ParseZCLFile methods 2017-05-30 08:03:38 -07:00
scan_tokens_test.go zclsyntax: scanning of bare (top-level) templates 2017-05-29 09:42:20 -07:00
scan_tokens.go zclsyntax: scanning of bare (top-level) templates 2017-05-29 09:42:20 -07:00
scan_tokens.rl zclwrite: convert zclsyntax tokens into zclwrite tokens 2017-05-29 16:59:20 -07:00
structure.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
token_type_string.go zclsyntax: scanning of comments 2017-05-29 09:13:35 -07:00
token.go zclsyntax: initial pass at body parsing 2017-05-29 19:28:10 -07:00
unicode2ragel.rb zclsyntax: identifiers in the scanner 2017-05-28 09:16:53 -07:00
unicode_derived.rl zclsyntax: identifiers in the scanner 2017-05-28 09:16:53 -07:00
variables.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
walk.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00