# file      : libbuild2/test/script/parser+pre-parse.test.testscript
# license   : MIT; see accompanying LICENSE file

: attribute
:
{{
  : name
  :
  $* <<EOI 2>>EOE != 0
  x = [foo]
  EOI
  testscript:1:5: error: unknown value attribute foo
  EOE

  : name-value
  :
  $* <<EOI 2>>EOE != 0
  x = [foo=bar]
  EOI
  testscript:1:5: error: unknown value attribute foo=bar
  EOE
}}

: syntax-1
:
{{
  test.options += -v 1

  : attribute
  :
  {{
    : name
    :
    $* <<EOI 2>>EOE != 0
    x = [foo]
    EOI
    testscript:1:5: error: unknown value attribute foo
    EOE

    : name-value
    :
    $* <<EOI 2>>EOE != 0
    x = [foo=bar]
    EOI
    testscript:1:5: error: unknown value attribute foo=bar
    EOE
  }}
}}
