File: single_oneline_invalid.t

package info (click to toggle)
golang-github-hashicorp-hcl-v2 2.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,120 kB
  • sloc: ruby: 205; makefile: 72; python: 43; sh: 11
file content (67 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diagnostics {
  error {
    # Message like "Only one argument is allowed in a single-line block definition"
    from {
      line   = 1
      column = 14
      byte   = 13
    }
    to {
      line   = 1
      column = 15
      byte   = 14
    }
  }
  error {
    # Message like "The closing brace for a single-line block definition must be on the same line"
    from {
      line   = 2
      column = 14
      byte   = 40
    }
    to {
      line   = 3
      column = 1
      byte   = 41
    }
  }
  error {
    # Message like "The closing brace for a single-line block definition must be on the same line"
    from {
      line   = 4
      column = 14
      byte   = 56
    }
    to {
      line   = 5
      column = 1
      byte   = 57
    }
  }
  error {
    # Message like "The closing brace for a single-line block definition must be on the same line"
    from {
      line   = 6
      column = 14
      byte   = 84
    }
    to {
      line   = 7
      column = 1
      byte   = 85
    }
  }
  error {
    # Message like "A single-line block definition cannot contain another block definition"
    from {
      line   = 9
      column = 5
      byte   = 103
    }
    to {
      line   = 9
      column = 8
      byte   = 106
    }
  }
}