hcl/zcl/zclsyntax
Martin Atkins 755fe38505 zclsyntax: peeker pretends single-line comments are newlines
When we're skipping comments but retaining newlines, we need to do some
slight-of-hand because single-line comment tokens contain the newline
that terminates them (for simpler handling of lead doc comments) but our
parsing can be newline-sensitive.

To allow for this, as a special case we transform single-line comment
tokens into newlines when in this situation, thus allowing parser code
to just worry about the newlines and skip over the comments.
2017-06-09 07:19:25 -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_ops.go zclsyntax: separate tokens for assign = and equality test == 2017-06-04 16:00:40 -07:00
expression_template_test.go zclsyntax: template interpolation trimming 2017-06-01 08:43:59 -07:00
expression_template.go zclsyntax: basic parsing and evaluation of string templates 2017-06-01 08:01:12 -07:00
expression_test.go zclsyntax: ScopeTraversalExpr.Value implementation, and tests 2017-06-05 08:02:54 -07:00
expression_vars_gen.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
expression_vars.go zclsyntax: parsing of the index operator 2017-06-05 07:09:04 -07:00
expression.go zclsyntax: ScopeTraversalExpr.Value implementation, and tests 2017-06-05 08:02:54 -07:00
file.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
generate.go zclsyntax: run stringer after other generators 2017-06-05 07:04:26 -07:00
navigation.go zclsyntax: Implement the ContextString interface on our Nav 2017-06-04 09:52:16 -07:00
node.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
parser_test.go zclsyntax: peeker pretends single-line comments are newlines 2017-06-09 07:19:25 -07:00
parser.go zclsyntax: peeker pretends single-line comments are newlines 2017-06-09 07:19:25 -07:00
peeker_test.go zclsyntax: "peeker" helper 2017-05-29 18:09:58 -07:00
peeker.go zclsyntax: peeker pretends single-line comments are newlines 2017-06-09 07:19:25 -07:00
public.go zclsyntax: Implement the ContextString interface on our Nav 2017-06-04 09:52:16 -07:00
scan_tokens_test.go zclsyntax: scan correctly closing ~} markers 2017-06-01 08:36:48 -07:00
scan_tokens.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
scan_tokens.rl zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
structure_test.go zclsyntax: Body.Content and Body.PartialContent 2017-06-03 09:04:16 -07:00
structure.go Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
token_type_string.go zclsyntax: separate tokens for assign = and equality test == 2017-06-04 16:00:40 -07:00
token.go zclsyntax: run stringer after other generators 2017-06-05 07:04:26 -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