bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

WIP #269

Closed PierreR closed 5 years ago

PierreR commented 5 years ago

Related to #201

PierreR commented 5 years ago

@bartavelle I currently don't see why

$a, $b = {
  c => 1,
  d => $x
}

works fine but this one is failing :

$a = $b = {
  c => {
     d => 1
   }
 }
 1) Parser, Data types, Lexer, Valid lexer, should parse tests/Parser/lexer/varassignment.pp
       the parser is expected to succeed, but it failed with:
         23:9:
            |
         23 | $a = $b = {
            |         ^
         unexpected '='
         expecting "!=", "!~", "<<", "<=", "==", "=~", ">=", ">>", "and", "in", "or", '*', '+', '-', '.', '/', '<', '>', '?', '[', Statement, or end of input