aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/err/0023_mismatched_paren.rast
blob: 5ffefd74290fba04506ad79984f4704ccae13540 (plain)
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
SOURCE_FILE@0..94
  FN@0..55
    FN_KW@0..2 "fn"
    WHITESPACE@2..3 " "
    NAME@3..7
      IDENT@3..7 "main"
    PARAM_LIST@7..9
      L_PAREN@7..8 "("
      R_PAREN@8..9 ")"
    WHITESPACE@9..10 " "
    BLOCK_EXPR@10..55
      L_CURLY@10..11 "{"
      WHITESPACE@11..16 "\n    "
      MACRO_CALL@16..49
        PATH@16..19
          PATH_SEGMENT@16..19
            NAME_REF@16..19
              IDENT@16..19 "foo"
        BANG@19..20 "!"
        WHITESPACE@20..21 " "
        TOKEN_TREE@21..49
          L_PAREN@21..22 "("
          WHITESPACE@22..31 "\n        "
          IDENT@31..34 "bar"
          COMMA@34..35 ","
          WHITESPACE@35..36 " "
          STRING@36..41 "\"baz\""
          COMMA@41..42 ","
          WHITESPACE@42..43 " "
          INT_NUMBER@43..44 "1"
          COMMA@44..45 ","
          WHITESPACE@45..46 " "
          FLOAT_NUMBER@46..49 "2.0"
      WHITESPACE@49..54 "\n    "
      R_CURLY@54..55 "}"
  WHITESPACE@55..56 " "
  COMMENT@56..91 "//~ ERROR incorrect c ..."
  WHITESPACE@91..92 "\n"
  ERROR@92..93
    R_CURLY@92..93 "}"
  WHITESPACE@93..94 "\n"
error 49..49: unmatched `}`
error 92..92: unmatched `}`